Additions:
HideVehicle
,ShowVehicle
,IsVehicleHidden
.SetPlayerSyncVehicleId
andUpdatePlayerSyncData
can also optionally set the main player structure fields.SetPickupPos
,SetPickupModel
andSetPickupType
allow skipping updating the pickup to players.ShowPickupForPlayer
,HidePickupForPlayer
andSetPickupForPlayer
.OnPickupStreamIn/Out
. SupportsShowPickupForPlayer
andHidePickupForPlayer
inside.
Changes:
IsBuildingRemovedForPlayer
checks for proper containment of the whole sphere instead of just of overlapping the center.SetPlayerSyncVehiclePosition
also resets the internalbHasSetVehiclePos
flag to enable syncing the vehicle data.GetWeaponSlot
andGetPlayerSyncWeapon
now return negative integers on invalid values.
Fixes:
- The array of used vehicle models is now correctly written to players on init.
SetPickupVirtualWorld
hides the pickup in the old world correctly.- The "visible" flag is reset when a new player textdraw is created, fixing
IsPlayerTextDrawVisible
.