mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
Update methods.md
This commit is contained in:
1 parent
0520db6cce
commit
5a076887fc
1 file changed
+24
@@ -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
|
||||
|
||||
Reference in new issue
Block a user