🎉 Character is released. Read more →
Paid Scripts
License Manager
Exports
server
Getlicenselist

GetLicenseList

This exports retrieves all available licenses from the config, including their labels, prices, validity, and requirements

exports.bcs_licensemanager:GetLicenseList(cb)

Parameters

ParamsData TypeDescription
cb (optional)functionCallback 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