mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
ox_core licenses
This commit is contained in:
1 parent
3556a4a55a
commit
962442b53c
4 files changed
+88
-5
No files matched your search
@@ -94,6 +94,8 @@ The filter can be a string, array, or object where key is the group, and value i
|
||||
player.hasGroup(filter)
|
||||
```
|
||||
|
||||
- filter: `string | string[] | { [string]: number }`
|
||||
|
||||
## player.setStatus
|
||||
|
||||
Set the current value for a status (i.e. hunger, thirst).
|
||||
@@ -127,7 +129,43 @@ player.removeStatus(name, value)
|
||||
- name: string
|
||||
- value: number
|
||||
|
||||
- filter: `string | string[] | { [string]: number }`
|
||||
## player.getLicenses
|
||||
|
||||
Get all licenses for the player.
|
||||
|
||||
```lua
|
||||
player.getLicenses()
|
||||
```
|
||||
|
||||
## player.getLicense
|
||||
|
||||
Get the license of the given name for the player, as an object containing license information.
|
||||
|
||||
```lua
|
||||
player.getLicense(name)
|
||||
```
|
||||
|
||||
- name: string
|
||||
|
||||
## player.addLicense
|
||||
|
||||
Grants a license to the player and triggers 'ox:licenseAdded' on the server and client.
|
||||
|
||||
```lua
|
||||
player.addLicense(name)
|
||||
```
|
||||
|
||||
- name: string
|
||||
|
||||
## player.removeLicense
|
||||
|
||||
Revokes a license from the player and triggers 'ox:licenseRemoved' on the server and client.
|
||||
|
||||
```lua
|
||||
player.removeLicense(name)
|
||||
```
|
||||
|
||||
- name: string
|
||||
|
||||
## player.getPlayersInScope
|
||||
|
||||
|
||||
Reference in new issue
Block a user