Skip to main content

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

RSGCore.Functions.GetPlate

  • Get the license plate of a vehicle

RSGCore.Functions.GetVehicleLabel

  • Get the display label/name of a vehicle

RSGCore.Functions.GetVehicleProperties

  • Get all properties of a vehicle (used for saving vehicle data)

RSGCore.Functions.SetVehicleProperties

  • Set all properties of a vehicle (used for loading saved vehicle data)

RSGCore.Functions.LookAtEntity

  • Make the player ped look at an entity

RSGCore.Functions.PlayAnim

  • Play an animation on the player (deprecated - use ox_lib)

RSGCore.Functions.IsWearingGloves

  • Check if the player is wearing gloves

RSGCore.Functions.GetObjects

  • Get all objects in the game world

RSGCore.Functions.GetClosestPlayer

  • Get the closest player to the local player or coordinates

RSGCore.Functions.GetPeds

  • Get all peds in the game world with optional ignore list

RSGCore.Functions.GetClosestPed

  • Get the closest ped to player or coordinates

RSGCore.Functions.GetClosestObject

  • Get the closest object to player or coordinates

RSGCore.Functions.SpawnClear

  • Check if an area is clear of vehicles for spawning

RSGCore.Functions.GetCardinalDirection

  • Get the cardinal direction an entity is facing

RSGCore.Functions.GetStreetNametAtCoords

  • Get street names at coordinates

RSGCore.Functions.GetZoneAtCoords

  • Get the zone/area name at coordinates

RSGCore.Functions.GetCurrentTime

  • Get the current in-game time

RSGCore.Functions.GetGroundZCoord

  • Get the ground Z coordinate at given coordinates