YSF 2.1
Additions:
- Passive mode, controlled by the
PassiveModeconfig option. Disables all hooks and spontaneous manipulation of server's memory, as well as natives that rely on that. If you want to load a script that uses these natives, use Native Fallback. SetPlayerSyncPos,SetPlayerSyncVelocity,SetPlayerSyncRotationQuat,SetPlayerSyncVehicleSeat,SetPlayerSyncTrainSpeedfor setting additional update packet fields.SetPickupPos,SetPickupModel,SetPickupType,SetPickupVirtualWorld, allowing pickup changes without id changes.- Single cell-returning
GetPlayerRawIp(faster thanGetPlayerIpfor storage and comparison).
Changes:
- Added
booltags to some functions. - Added default values for config options.
Fixes:
- Prevent crashes when a to-be-hooked function is not found.
- Properly initialize per-player gangzones.
- Remove the skin restrictions for
SetPlayerSkinForPlayer. - Player list queries are ignored for more than 100 players, fixing returning garbage data to the client.
SetPlayerObjectMaterialandSetPlayerObjectMaterialTextproperly react toStorePlayerObjectsMaterial.- Fixed missing trampoline crash on some platforms.
- Fixed hook address for
ToggleChatTextReplacementon R2-2.