Theme editor

  • If you experience issues login with Discord, reset your password and wait 3 minutes for the email!

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
 
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
so what? you can just return true from that function? that would make sense if the server was encrypted. the API doesn't return anything besides a boolean
 
I'd like to use it on my test server, so if you could please fix what ever errors in qb core framework console then send it to me please? I'll own you one back
 
Back
Top Bottom