ox_core event descriptions

This commit is contained in:
Linden committed 2022-11-27 03:37:56 +11:00
1 parent c3e5018602
commit e2486a4800
2 files changed
+54 -10

No files matched your search

+20 -4
View File
@@ -2,14 +2,30 @@
title: Events
---
```lua
RegisterNetEvent('ox:playerLoaded', function(source, data, coords) end)
```
## Client events
### ox:playerLoaded
Triggered once the player has selected a character and spawned.
```lua
RegisterNetEvent('ox:playerLogout', function() end)
AddEventHandler('ox:playerLoaded', function(data) end)
```
### ox:playerLogout
Triggered when the player enters character selection if they were previously playing a character.
```lua
AddEventHandler('ox:playerLogout', function() end)
```
## Networked events
### ox:setGroup
Triggered when a player's grade in a group is modified on the server with `player.setGroup`.
```lua
RegisterNetEvent('ox:setGroup', function(source, group, grade) end)
```