mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
Create callbacks.md
This commit is contained in:
1 parent
261dd882fa
commit
474c49a2a6
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
title: Callbacks
|
||||||
|
---
|
||||||
|
|
||||||
|
### ox:getStatus
|
||||||
|
|
||||||
|
Triggered after a player has selected a character.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
lib.callback.await('ox:getStatus', delay, targetId, statusName)
|
||||||
|
```
|
||||||
|
|
||||||
|
- delay: `number`
|
||||||
|
- Prevents the callback from triggering for the time given in ms.
|
||||||
|
- targetId: `number`
|
||||||
|
- The server id for the player to get statuses for.
|
||||||
|
- statusName?: `string`
|
||||||
|
- The name of the status (i.e. hunger). Can be omitted to return all statuses.
|
||||||
|
|
||||||
Reference in new issue
Block a user