server.lua).
RegisterPlayer(source, data)
Registers or updates a player’s data in the script’s system. Call this function when a player connects or when you need to force an update of their information.other-resource/server.lua
GetConfig()
Returns the script’s complete configuration table as defined inconfig.lua. Useful for reading script settings from an external resource without duplicating configuration values.
other-resource/server.lua
SetPlayerData(source, key, value)
Sets the value of a specific field in the data stored by the script for a player. You can use this function to write custom fields or update existing values in real time.true if the field was updated correctly; false if the player does not exist or there was an error.other-resource/server.lua
GetPlayerData(source)
Returns the data stored on the server for a specific player. Returnsnil if the player is not registered or is not connected.
other-resource/server.lua
HasPermission(source, level)
Checks whether a player has a specific permission level according to the script’s permission configuration. Use this function before executing restricted actions to make sure the player is authorized.other-resource/server.lua
To see the available server-side events, visit the server events reference.
