RSG References
🎮Client Function Reference
Learn about and how to use common core client functions!!
RSGCore.Functions.GetPlayerData
- Perhaps the most used function in the framework. This function returns the players data of the current source which, since its used client side, is automatically the client or player. It can be used with modifiers on the end starting with a ”.” (period)
RSGCore.Functions.GetCoords
- This function operates very similarly to how the native GetEntityCoords does, but it returns the heading as well
RSGCore.Functions.HasItem
- Returns whether a player has a certain item
RSGCore.Functions.TriggerCaback
- Function used to cal from the client to the server anbd receive a value back
RSGCore.Functions.GetVehicles
- Returns a vehice game pool (for backwards compatibility) - Not worth using
RSGCore.Function.GetCoreObject
- Returns the core object of the game
RSGCore.Function.GetPlayers
- Returns a table of all players in the game - not worth using
RSGCore.Function.GetPeds
- Returns a model hash filtered ped game pool
RSGCore.Function.GetClosestPed
- Returns the closest ped to the player’s position
RSGCore.Functions.GetClosestVehicle
- Returns the closest vehicle to the player
RSGCore.Functions.GetClosestObject
- Returns the closest player to the client
RSGCore.Functions.GetPlayersFromCoords
- Returns a list of players within a certain radius from the given coordinates
RSGCore.Functions.SpawnVehicle
- Spawns a vehicle at the given coordinates with the given model and color
RSGCore.Functions.DeleteVehicle
- Deletes a vehicle at the given entity ID