Lua SDK
FiveM / RedM (prefer BFF for auth) · LibreAuth native client · Protocol v2 available (Enterprise)
Lua
FiveM / RedM (prefer BFF for auth)
Setup Guide
Use libreauth_v2.lua · host crypto + aead_open hook · ForceAdopt · prefer BFF
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
lua/libreauth.lua - Ed25519 key: from
init→ Response Signing - Test: Live API · Init docs
Install / Dependencies
Terminal
-- Prefer BFF for login
-- v2: libreauth_v2.lua + host crypto hooks
Code Example
Lua
local LibreAuthV2 = require 'libreauth_v2'
local auth = LibreAuthV2.new({ name='AppName', owner_id='OWNER_ID_10', url='https://host/api/v2/' })
auth:init()
Protocol v2 (Enterprise)
INFO
Requires Enterprise plan. Endpoint
https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.Source: lua/libreauth_v2.lua
Lua · v2
local LibreAuthV2 = require 'libreauth_v2'
local auth = LibreAuthV2.new({ name='AppName', owner_id='OWNER_ID_10', url='https://host/api/v2/' })
auth:init()
More Links
- ← All Client SDKs
- 1.x source: View libreauth.lua
- Protocol v2: View libreauth_v2.lua · docs
- Interactive API docs
- Response Signing