addLicense
Client​
TriggerEvent('LicenseManager:addLicense', license, creator)
Server​
TriggerClientEvent('LicenseManager:addLicense', source, license, creator)
Parameters​
Params | Data Type | Description |
---|---|---|
license | string | The license name |
creator (optional) | string | Creator to be recorded in the license_history table |
This event will trigger a license creation that will get the player mugshot.
It takes a license type as the argument. Make sure the license type is
available in the config/licenses.lua
. This event will create a license
for the player itself.