mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
ox_core event descriptions
This commit is contained in:
1 parent
c3e5018602
commit
e2486a4800
2 files changed
+54
-10
No files matched your search
@@ -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)
|
||||
```
|
||||
Reference in new issue
Block a user