Create callbacks.md

This commit is contained in:
Linden authored and GitHub committed 2022-11-29 17:22:50 +11:00
1 parent 261dd882fa
commit 474c49a2a6
1 file changed
+19
+19
View File
@@ -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.