Update methods.md

This commit is contained in:
Linden authored and GitHub committed 2022-11-29 17:09:50 +11:00
1 parent 0520db6cce
commit 5a076887fc
1 file changed
+24
+24
View File
@@ -96,6 +96,30 @@ The filter can be a string, array, or object where key is the group, and value i
player.hasGroup(filter)
```
## player.setStatus
Set the current value for a status (i.e. hunger, thirst).
```lua
player.setStatus(name, value)
```
## player.addStatus
Add the given amount to the total value for a status (i.e. hunger, thirst).
```lua
player.addStatus(name, value)
```
## player.removeStatus
Remove the given amount from the total value for a status (i.e. hunger, thirst).
```lua
player.removeStatus(name, value)
```
- filter: `string | string[] | { [string]: number }`
## player.getPlayersInScope