From 474c49a2a6c466b8351a7d10c1c4fcbaff3a3436 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:22:50 +1100 Subject: [PATCH] Create callbacks.md --- docs/ox_core/Player/Client/callbacks.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/ox_core/Player/Client/callbacks.md diff --git a/docs/ox_core/Player/Client/callbacks.md b/docs/ox_core/Player/Client/callbacks.md new file mode 100644 index 00000000..4b6de8ea --- /dev/null +++ b/docs/ox_core/Player/Client/callbacks.md @@ -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. +