IsLicenseExpired
This exports checks for the players license expiry
exports.bcs_licensemanager:IsLicenseExpired(data)
Parameters​
Params | Data Type | Description |
---|---|---|
data | number string object | The card id or the object data that contains the expiry property |
Example​
local expired = exports.bcs_licensemanager:IsLicenseExpired('521361')
if expired then
print('The player license has expired!')
else
print('The player license has not expired yet')
end
local expired2 = exports.bcs_licensemanager:IsLicenseExpired({
...
expiry = '04/07/2023'
})
if expired2 then
print('The player license has expired!')
else
print('The player license has not expired yet')
end