๐ฎ Client Event Reference
Learn about and how to use common core client events!
RSGCore:Client:OnPlayerLoaded
- Handles the player loading in after character selection
This event can be used as an event handler to trigger code because it signifies the player has successfully loaded into the server!
RSGCore:Client:OnPlayerUnload
- Handles the player login out to character selection
This event can be used as an event handler to trigger code because it signifies the player has successfully unloaded or logged out of the server!
RSGCore:Client:PvpHasToggled
On player load this event checks is triggered after checking the rsg-core config to see if PVP should be enabled or disabled
RSGCore:Command:SpawnVehicle
Arguments | Type | Required | Default |
---|---|---|---|
cart model | string | yes | none |
Client example
Server example
RSGCore:Command:DeleteVehicle
Arguments | Type | Required | Default |
---|---|---|---|
none | none | no | none |
Client example
Server example
RSGCore:Player:SetPlayerData
This event can be used as an event handler to trigger code because it indicates that the players data has changed!
RSGCore:Client:UseItem
Arguments | Type | Required | Default |
---|---|---|---|
item name | string | yes | none |
Client example (must have the item in your inventory)
Server example (must have the item in your inventory)
RSGCore:Client:UpdateObject
This event must be used as a handler when using Shared Exports because it refreshes the core object in your resource