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.