Theme editor

STANDALONE Luxu Admin 2.0 - FiveM Admin Menu ESX | QBCORE | QBOX

Also, it connects you to their API to verify the token

-- Server identification function for Luxu API
local function identifyServerWithAPI()
-- Get license key token from server configuration
local licenseToken = GetConvar("sv_licenseKeyToken", "FALSE")

-- Validate license token exists
if licenseToken == "" or licenseToken == "FALSE" then
Luxu.print.error("ERROR IDENTIFYING SERVER")
return
end

-- Prepare server identification data
local identificationData = {
token = licenseToken,
web_baseUrl = GetConvar("sv_webBaseUrl", "FALSE"),
server_name = GetConvar("sv_hostname", "FALSE"),
luxu_admin_version = GetResourceMetadata(GetCurrentResourceName(), "version", 0),
artifacts = GetConvar("buildNumber", "FALSE"),
game_build = GetConvar("sv_enforceGameBuild", "FALSE")
}

-- Send identification request to Luxu API
PerformHttpRequest(
"https://api.luxu.gg/identify",
function(responseCode)
-- Handle response codes
if responseCode == 200 then
-- Success - server identified
elseif responseCode == 401 then
-- Unauthorized - invalid token
end
end,
"POST",
json.encode(identificationData)
)
end
 
Thread owner
Also, it connects you to their API to verify the token

-- Server identification function for Luxu API
local function identifyServerWithAPI()
-- Get license key token from server configuration
local licenseToken = GetConvar("sv_licenseKeyToken", "FALSE")

-- Validate license token exists
if licenseToken == "" or licenseToken == "FALSE" then
Luxu.print.error("ERROR IDENTIFYING SERVER")
return
end

-- Prepare server identification data
local identificationData = {
token = licenseToken,
web_baseUrl = GetConvar("sv_webBaseUrl", "FALSE"),
server_name = GetConvar("sv_hostname", "FALSE"),
luxu_admin_version = GetResourceMetadata(GetCurrentResourceName(), "version", 0),
artifacts = GetConvar("buildNumber", "FALSE"),
game_build = GetConvar("sv_enforceGameBuild", "FALSE")
}

-- Send identification request to Luxu API
PerformHttpRequest(
"https://api.luxu.gg/identify",
function(responseCode)
-- Handle response codes
if responseCode == 200 then
-- Success - server identified
elseif responseCode == 401 then
-- Unauthorized - invalid token
end
end,
"POST",
json.encode(identificationData)
)
end
sv token mean ur keymaster key read first full then say
 
Back
Top Bottom