LIFETIME SLOTS $100 for everything fivem related on website and future models
View documentation articles and categories here!
The license system for the store simply requires you to make an HTTP GET request to the License System URL.
URL: https://example.com/api/v1/license/check/PRODUCT_ID
Here is a few examples:
const axios = require('axios');
const config = require('./config.js');
let productId = '1691715034397WfzQwnxNWz29p4'; // Product Unique ID (NOT OWNED ITEM ID)
let licenseURL = `https://huracan.solutions/api/v1/license/check/${config.licenseKey}`; // License API URL
licenseCheck(); // Runs the license check function
async function licenseCheck() {
let licenseCheck = await axios({
method: 'get',
url: licenseURL,
headers: {
Accept: 'application/json, text/plain, */*',
'User-Agent': '*',
'productid': productId, // Product Unique ID
}
});
if(licenseCheck.data.authorized) {
console.log('License Passed!')
} else {
console.log('License Failed!');
console.log(licenseCheck.data?.reason); // log failed reason
process.exit(1); // Crash node application
};
};
local productId = 'PRODUCT_ID';
local licenseKey = 'ABC_123';
PerformHttpRequest('https://huracan.solutions/api/v1/license/check/' .. licenseKey, function(errorCode, resultData, resultHeaders)
local data = json.decode(resultData)
if data['authorized'] then
print('^2Authorisation completed!^7')
else
print('^1Authorisation failed!^7')
os.exit(0)
end
end, 'GET', '', {
['Accept'] = 'application/json, text/plain, */*',
['User-Agent'] = '*',
['productid'] = productId
});