revokeLicense
Client
TriggerServerEvent('LicenseManager:revokeLicense', owner, license, data)
Parameters
Params | Data Type | Description |
---|---|---|
owner | string | The player identifier |
license | string | The license name |
data (optional) | object | The license data object |
Alternatively we can still use default esx_license:removeLicense
.
TriggerServerEvent('esx_license:removeLicense', target, license, src)
Parameters
Params | Data Type | Description |
---|---|---|
owner | string | The player identifier |
license | string | The license name |
src (optional) | number | The player server id |
The target needs to be the target player's server id. The license is the license type,
must exist in config/licenses.lua
.