HasLicense
This exports checks if a player has a license
exports.bcs_licensemanager:HasLicense(target, license)
Parameters
Params | Data Type | Description |
---|---|---|
target | number | The player server id |
license | string | License name (not label) |
Example
local have = exports.bcs_licensemanager:HasLicense(source, 'weapon')
if have then
print('The player has weapon license!')
else
print('The player does not have the weapon license')
end