Additions:
HideVehicle,ShowVehicle,IsVehicleHidden.SetPlayerSyncVehicleIdandUpdatePlayerSyncDatacan also optionally set the main player structure fields.SetPickupPos,SetPickupModelandSetPickupTypeallow skipping updating the pickup to players.ShowPickupForPlayer,HidePickupForPlayerandSetPickupForPlayer.OnPickupStreamIn/Out. SupportsShowPickupForPlayerandHidePickupForPlayerinside.
Changes:
IsBuildingRemovedForPlayerchecks for proper containment of the whole sphere instead of just of overlapping the center.SetPlayerSyncVehiclePositionalso resets the internalbHasSetVehiclePosflag to enable syncing the vehicle data.GetWeaponSlotandGetPlayerSyncWeaponnow return negative integers on invalid values.
Fixes:
- The array of used vehicle models is now correctly written to players on init.
SetPickupVirtualWorldhides the pickup in the old world correctly.- The "visible" flag is reset when a new player textdraw is created, fixing
IsPlayerTextDrawVisible.