Skip to main content

HasLicense

This exports checks if a player has a license

exports.bcs_licensemanager:HasLicense(target, license)

Parameters​

ParamsData TypeDescription
targetnumberThe player server id
licensestringLicense 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