RSGCore.Functions.GetCoords
- Get the coords of a passed entity
RSGCore.Functions.GetIdentifier
- Get the identifier of a passed entity
RSGCore.Functions.GetSource
- Gets a players server id (source). Returns 0 if no player is found.
RSGCore.Functions.GetPlayer
- Get player with given server id (source)
RSGCore.Functions.GetPlayerByCitizenId
- Get player by citizen id
RSGCore.Functions.GetPlayers
- Get all players. Returns the server ids of all players.
RSGCore.Functions.GetRSGPlayers
- Will return an array of RSG Player class instances unlike the GetPlayers() wrapper which only returns IDs
RSGCore.Functions.CreateCallBack
- Create Server Callback.
RSGCore.Functions.CreateUseableItem
- Create a usable item
RSGCore.Functions.CanUseItem
- Check if a player can use an item
RSGCore.Functions.UseItem
- Use an item
RSGCore.Functions.GetOfflinePlayerByCitizenId
- Get offline player data by citizen id (pulls from database)
RSGCore.Functions.GetPlayerByLicense
- Get player by license (checks online players first, then database)
RSGCore.Functions.GetPlayerByAccount
- Get player by account number
RSGCore.Functions.GetPlayerByCharInfo
- Get player by any character info property
RSGCore.Functions.GetPlayersOnDuty
- Get all players on duty for a specific job
RSGCore.Functions.GetDutyCount
- Get the count of players on duty for a specific job
RSGCore.Functions.GetClosestPlayer
- Get the closest player to a source player or coordinates
RSGCore.Functions.SetPlayerBucket
- Set a playerโs routing bucket (for instancing)
RSGCore.Functions.SetEntityBucket
- Set an entityโs routing bucket
RSGCore.Functions.GetPlayersInBucket
- Get all players in a specific routing bucket
RSGCore.Functions.SpawnVehicle
- Server-side vehicle spawning
RSGCore.Functions.Kick
- Kick a player from the server
RSGCore.Functions.IsWhitelisted
- Check if a player is whitelisted
RSGCore.Functions.AddPermission
- Add a permission to a player
RSGCore.Functions.RemovePermission
- Remove a permission from a player
RSGCore.Functions.HasPermission
- Check if a player has a specific permission
RSGCore.Functions.GetPermission
- Get all permissions for a player
RSGCore.Functions.IsPlayerBanned
- Check if a player is banned
RSGCore.Functions.IsLicenseInUse
- Check if a license is currently in use (duplicate check)