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
@@ -13,4 +13,15 @@ lib.callback.await('ox:getStatus', delay, targetId, statusName)
|
||||
- The server id for the player to get statuses for.
|
||||
- statusName?: `string`
|
||||
- The name of the status (i.e. hunger). Can be omitted to return all statuses.
|
||||
|
||||
|
||||
### ox:getLicense
|
||||
|
||||
```lua
|
||||
lib.callback.await('ox:getLicense', delay, licenseName, targetId)
|
||||
```
|
||||
|
||||
- delay: `number`
|
||||
- licenseName: `string`
|
||||
- The name of the license to get data for. Can be omitted to return all licenses.
|
||||
- targetId?: `number`
|
||||
- The server id to get license data for, defaulting to the current player.
|
||||
@@ -32,8 +32,26 @@ AddEventHandler('ox:statusTick', function(statuses) end)
|
||||
|
||||
### ox:setGroup
|
||||
|
||||
Triggered when a player's grade in a group is modified on the server with `player.setGroup`.
|
||||
Triggered when the player's grade in a group is modified on the server with `player.setGroup`.
|
||||
|
||||
```lua
|
||||
RegisterNetEvent('ox:setGroup', function(source, group, grade) end)
|
||||
```
|
||||
|
||||
|
||||
|
||||
### ox:licenseAdded
|
||||
|
||||
Triggered when the player has been granted a license.
|
||||
|
||||
```lua
|
||||
RegisterNetEvent('ox:licenseAdded', function(name) end)
|
||||
```
|
||||
|
||||
### ox:licenseAdded
|
||||
|
||||
Triggered when the player's license is revoked.
|
||||
|
||||
```lua
|
||||
RegisterNetEvent('ox:licenseRemoved', function(name) end)
|
||||
```
|
||||
Reference in new issue
Block a user