From 261dd882fa743cd0441140bdcc68b034f9eb24a9 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:13:11 +1100 Subject: [PATCH] Update methods.md --- docs/ox_core/Player/Server/methods.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/ox_core/Player/Server/methods.md b/docs/ox_core/Player/Server/methods.md index 5726f204..3179ca0d 100644 --- a/docs/ox_core/Player/Server/methods.md +++ b/docs/ox_core/Player/Server/methods.md @@ -7,8 +7,6 @@ import TabItem from '@theme/TabItem'; These functions are inherited from the [Player class](../Server/). - - ## player.set Update the player's metadata, optionally syncing it with the client. @@ -104,6 +102,9 @@ Set the current value for a status (i.e. hunger, thirst). player.setStatus(name, value) ``` +- name: string +- value: number + ## player.addStatus Add the given amount to the total value for a status (i.e. hunger, thirst). @@ -112,6 +113,9 @@ Add the given amount to the total value for a status (i.e. hunger, thirst). player.addStatus(name, value) ``` +- name: string +- value: number + ## player.removeStatus Remove the given amount from the total value for a status (i.e. hunger, thirst). @@ -120,6 +124,9 @@ Remove the given amount from the total value for a status (i.e. hunger, thirst). player.removeStatus(name, value) ``` +- name: string +- value: number + - filter: `string | string[] | { [string]: number }` ## player.getPlayersInScope