Installation
Step 1: Web Panel Setup
- Upload Files
- Upload the contents of
Web UIto your web server - Ensure the
uploadsfolder is writable (chmod 755 or 775)
- Upload the contents of
- Run Installer
- Navigate to
https://your-domain.com/install/install.php - Enter your license key
- Configure database connection
- Set up Discord OAuth2 (see Discord Setup below)
- Enter your Super Admin Discord Role ID
- Save the API Token shown at the end
- Navigate to
- Delete Install Folder
- After installation, delete the
/installfolder for security
- After installation, delete the
Step 2: Discord Application Setup
- Go to Discord Developer Portal
- Click New Application and give it a name
- Go to OAuth2 → General
- Copy the Client ID and Client Secret
- Add a redirect URI:
https://your-panel-url.com/callback - Go to Bot → Click Add Bot
- Copy the Bot Token
- Enable Server Members Intent under Privileged Gateway Intents
- Invite the bot to your Discord server with these permissions:
- Read Messages/View Channels
- Send Messages (for logging)
Step 3: FiveM Resource Setup
-
Copy Resource
- Copy the
LonexStafffolder to your server’sresourcesfolder
- Copy the
-
Configure
- Open
LonexStaff/config.lua - Set your panel URL and API token:
- Open
-
Add to Server Config
- Add to your
server.cfg:
- Add to your
-
Restart Server
- Restart your FiveM server
Configuration
Web Panel Settings
Access Settings in the web panel to configure:| Setting | Description |
|---|---|
| Server Name | Your server’s display name |
| Timezone | Timezone for displaying dates |
| Discord Bot Token | For role verification and logging |
| Discord Guild ID | Your Discord server ID |
| Trust Score | Configure deduction/addition values |
| Warning Points | Enable automatic escalation |
FiveM Config Options
Editconfig.lua:
Staff Commands
| Command | Description |
|---|---|
/staffduty | Toggle staff duty mode |
/staffmenu | Open the staff menu |
/staffrefresh | Reload permissions from panel |
/report [id] [reason] | Report a player (for players) |
/calladmin [message] | Call for staff assistance |
In-Game Staff Menu
Press F3 (while on duty) to open the staff menu:- Players Tab - View online players, take actions
- Reports Tab - View and manage player reports
- Calls Tab - View and respond to admin calls
- Tools Tab - Quick actions (heal, vehicle spawn, noclip)
Available Actions
| Action | Description |
|---|---|
| Freeze | Freeze/unfreeze a player |
| Warn | Issue a warning |
| Kick | Kick from server |
| Temp Ban | Temporary ban (configurable duration) |
| Ban | Permanent ban |
| Go To | Teleport to player |
| Bring | Teleport player to you |
| Spectate | Watch a player (press E to exit) |
| Heal Self | Restore your health |
| Spawn Vehicle | Spawn a vehicle |
Role Permissions
Configure roles in Settings → Roles:Panel Permissions
panel.access- Access the web panelpanel.view_players- View player listpanel.view_staff- View staff listpanel.view_logs- View audit logspanel.manage_roles- Create/edit rolespanel.manage_settings- Edit settings
Action Permissions
actions.freeze- Freeze playersactions.warn- Issue warningsactions.kick- Kick playersactions.tempban- Temporary bansactions.permban- Permanent bansactions.unban- Lift bansactions.teleport- Teleport actionsactions.noclip- Use noclipactions.spectate- Spectate playersactions.heal- Heal selfactions.vehicle- Spawn vehiclesactions.announcement- Server announcements
View Permissions
view.identifiers- View player identifiersview.ip_addresses- View IP addressesview.hardware_tokens- View hardware tokens
Discord Logging
Configure logging channels in Settings → Discord:| Event Type | Description |
|---|---|
| player_ban | Ban notifications |
| player_kick | Kick notifications |
| player_warn | Warning notifications |
| player_unban | Unban notifications |
| staff_action | General staff actions |
| report_created | New reports |
| report_resolved | Resolved reports |
Troubleshooting
Panel won’t load
- Check PHP version (8.1+ required)
- Verify
.htaccessis working (Apache) - Check file permissions on
uploadsfolder
API connection failed
- Verify
Config.PanelURLhas no trailing slash - Check
Config.APITokenmatches panel - Ensure your server can reach the panel URL
- Check for CloudFlare/WAF blocking API requests
Discord login not working
- Verify redirect URI matches exactly
- Check Client ID and Secret are correct
- Ensure bot is in your Discord server
Players not showing
- Wait for players to connect (data syncs on join)
- Check server console for API errors
- Verify database connection
Staff menu not opening
- Ensure you’re on duty (
/staffduty) - Check you have a role with panel access
- Use
/staffrefreshto reload permissions
Support
For support, please contact us through:- Documentation: https://docs.lonexlabs.com/lonexstaff
- Discord: https://discord.gg/lonexlabs

