Skip to content

YSF 2.0

Compare
Choose a tag to compare
@IS4Code IS4Code released this 24 May 13:28
· 81 commits to master since this release

Additions:

  • GroupPlayerObjects in YSF.cfg to affect IDs of newly created per-player objects. If possible, a new per-player object will prefer slots already used for per-player objects by other players. Very useful when global and per-player objects are used together.
  • SetPlayerConnectMode and GetPlayerConnectMode to control players' connection state. Set to DISCONNECT_ASAP to force reconnect.
  • ToggleCloseConnectionFix to disable code that causes "Connection closed." for reconnecting players.
  • GetPlayerSyncWeapon for obtaining player's weapon when GetPlayerWeapon doesn't work.
  • ToggleChatTextReplacement to disable replacing possible unwanted characters in incoming chat messages by # (%, color and key codes).
  • SendPlayerClientGameInit for re-sending client initialization data and allowing changing some parameters (same as in OnPlayerClientGameInit).

Changes:

  • respawntime in SetVehicleSpawnInfo now takes seconds instead of milliseconds, consistent with other respawn delay changing functions.

Fixes:

  • HideNewObject corrected.
  • GangZoneGetPos works with UsePerPlayerGangZones 0.
  • Fixed a crash with StorePlayerObjectsMaterial 1.
  • Fixed a RespawnVehicle crash on 0.3.7-R2-2.
  • Malformed packets are ignored in order not to cause crashes.