Skip to main content

addLicense

Client​

TriggerEvent('LicenseManager:addLicense', license, creator)

Server​

TriggerClientEvent('LicenseManager:addLicense', source, license, creator)

Parameters​

ParamsData TypeDescription
licensestringThe license name
creator (optional)stringCreator 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.