From c3e5018602b560b61e950ffe3d1494208d72a23b Mon Sep 17 00:00:00 2001
From: Linden <65407488+thelindat@users.noreply.github.com>
Date: Sun, 27 Nov 2022 03:02:51 +1100
Subject: [PATCH] update ox_core player methods
---
docs/ox_core/Player/Server/methods.md | 63 +++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/docs/ox_core/Player/Server/methods.md b/docs/ox_core/Player/Server/methods.md
index 0716d229..36606e06 100644
--- a/docs/ox_core/Player/Server/methods.md
+++ b/docs/ox_core/Player/Server/methods.md
@@ -120,6 +120,48 @@ player.setGroup(group, grade);
+## player.getGroup
+
+Returns the player's current grade for a given group.
+
+
+
+
+```lua
+local grade = player.getGroup()
+```
+
+
+
+
+```ts
+const grade = player.getGroup();
+```
+
+
+
+
+## player.getGroup
+
+Returns an object of all groups the player is in, with the current grade as the value.
+
+
+
+
+```lua
+local groups = player.getGroups()
+```
+
+
+
+
+```ts
+const groups = player.getGroups();
+```
+
+
+
+
## player.hasGroup
Check if the player is a member of a given group, and returns the matching group name and grade.
@@ -144,6 +186,27 @@ const [group, grade] = player.hasGroup(filter);
+## player.getPlayersInScope
+
+Return an array of all player id's inside the player's scope.
+
+
+
+
+```lua
+local inScope = player.getPlayersInScope()
+```
+
+
+
+
+```ts
+const inScope = player.getPlayersInScope();
+```
+
+
+
+
## player.isPlayerInScope
Check if the given source is inside the player's scope.