YSF 2.1
Additions:
- Passive mode, controlled by the
PassiveMode
config 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
,SetPlayerSyncTrainSpeed
for setting additional update packet fields.SetPickupPos
,SetPickupModel
,SetPickupType
,SetPickupVirtualWorld
, allowing pickup changes without id changes.- Single cell-returning
GetPlayerRawIp
(faster thanGetPlayerIp
for storage and comparison).
Changes:
- Added
bool
tags 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.
SetPlayerObjectMaterial
andSetPlayerObjectMaterialText
properly react toStorePlayerObjectsMaterial
.- Fixed missing trampoline crash on some platforms.
- Fixed hook address for
ToggleChatTextReplacement
on R2-2.