GetLicenseList
This exports retrieves all available licenses from the config, including their labels, prices, validity, and requirements
exports.bcs_licensemanager:GetLicenseList(cb)
Parameters
Params | Data Type | Description |
---|---|---|
cb (optional) | function | Callback function return data |
Example
local licenses = exports.bcs_licensemanager:GetLicenseList()
for k, v in pairs(licenses) do
print(k, v)
end
-- Or
exports.bcs_licensemanager:GetLicenseList(function(licenses)
for k, v in pairs(licenses) do
print(k, v)
end
end)
Last updated on