RSG References
๐ฅ๏ธ Server Function Reference
Learn about and how to use common core server functions!
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