License Verification (FiveM)
Public endpoint used by FiveM resources at runtime. No API key required. IP is detected automatically from the request.
GET
/api/verify/:fileCode
None (Public)
-- Used inside FiveM resources — no API key needed
PerformHttpRequest("http://vf1.host/api/verify/123456", function (err, text, head)
if text == "Valid" then
print("^2License OK")
else
print("^1" .. tostring(text))
end
end, 'GET', '')
Verify + Fetch Script Code
When a path query parameter is provided and the license is valid, returns the obfuscated script code for that file path.
GET
/api/verify/:fileCode?path=
None (Public)
GET http://vf1.host/api/verify/123456?path=server/main.lua
Valid license → returns script code (text)
Invalid → "Sorry, ..." error message
Responses:
• "Valid" — license active, no path requested
• "Sorry, Invalid license" — file code not found
• "Sorry, IP address required" — IP detection failed
• "Sorry, License not found..." — no active license for this IP
• "Sorry, License expired" — license expired
IP Detection
The verify endpoint reads the server IP from proxy headers or the direct connection. No manual IP parameter is needed.
Detection order:
1. X-Forwarded-For (first IP, for Cloudflare/proxy)
2. X-Real-IP
3. Direct connection IP
The IP in your license must match the IP detected at runtime.