Skip to content

YSF 2.2

Latest
Compare
Choose a tag to compare
@IS4Code IS4Code released this 19 Sep 11:24
· 30 commits to master since this release

Additions:

  • HideVehicle, ShowVehicle, IsVehicleHidden.
  • SetPlayerSyncVehicleId and UpdatePlayerSyncData can also optionally set the main player structure fields.
  • SetPickupPos, SetPickupModel and SetPickupType allow skipping updating the pickup to players.
  • ShowPickupForPlayer, HidePickupForPlayer and SetPickupForPlayer.
  • OnPickupStreamIn/Out. Supports ShowPickupForPlayer and HidePickupForPlayer inside.

Changes:

  • IsBuildingRemovedForPlayer checks for proper containment of the whole sphere instead of just of overlapping the center.
  • SetPlayerSyncVehiclePosition also resets the internal bHasSetVehiclePos flag to enable syncing the vehicle data.
  • GetWeaponSlot and GetPlayerSyncWeapon 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.