π§Installation
Learn how to install LuxuAdmin
1. Install Depencies
LuxuModules (Found in your Keymaster) Installation
ox_lib (requires v3.10.0+) (Download only the release version. β not the source code β)
Your FiveM Server needs to be version 6464+ Windows: https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/ Linux: https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/
2. Install LuxuAdmin
Download and Extract LuxuAdmin from keymaster your resources folder.
Execute the SQL inside the SQL folder in your database.
Open discord.lua and change the discord channel webhook.
Open Config and check if you need to change anything.
Before you start LuxuAdmin, open the config.lua
and change the default Open Menu keybinding, by default it's set to F6.
P.S. Once the admin menu is started, all players online, will get this key, you defined, registered to their FiveM. Players need to individualy go to the PAUSE MENU -> GTA Settings -> Keybindings -> FiveM -> And search for LuxuAdmin
If you own LuxuDiscordBot
LuxuAdmin/config.lua
Add the scripts to server.cfg Please respect the resources orderπ (framework starts first)
3. Setup Permissions (DON'T SKIP THIS)
In order to have acces to the admin menu you need to give yourself permission.
Add this to your server.cfg
Menu Access
There are 2 ways to configure permissions.
Using
Config.IdentifiersAlwaysAllowed
, this will allow you to add a list of identifiers with full access to the menu.Using
ace permissions
, this will allow you to add permissions to specific ace groups. (recommended)If you are not familiar with ace permissions, you can learn more here
π΅ Method 1 - Config.IdentifiersAlwaysAllowed
This method will only allow you to give full access to individual players. Finding your identifier
Example usage:
Using this, will ignore any ace group for that specific license player.
Use this only for trusted admins.
π΅ Method 2 - Ace permissions | Learn more
Ace permissions are the recommended way to configure permissions. They allow you to give access to specific features to specific ace groups.
Most of the time you will want your ace permissions stored inside server.cfg.
Generate your permissions with this tool
server.cfg | Examples
Common Problems β
Weather βοΈ not working and errors in the console.
Easy: You are probably an ESX user, so please join our discord server and check the LuxuAdmin snippets channel to download a modified weather script for your server.
Experienced: If you want to adapt your own, please check LuxuModules sv_utils.lua or server.lua and search for the Time and Weather functions
I don't see players in the menu!
Please check if you have correctly chosen the framework in LuxuModules, the only options are 'esx' or 'qb' .
If you use an old version of ESX make sure to change the LuxuModules Config
Advanced configuration βοΈ
Teleport to interiors
You can add more interiors on nui/interiors.json
Add more vehicles, Peds, Weapons and Ammo
Open LuxuAdmin/shared and there you will see a few files. Peds - pedhashes.lua Vehicles - vheicles.lua Weapons - weapons.lua Ammo - ammo.lua You can add more options to these files, just make sure you follow the same syntax.
Custom Buttons β
This was meant for Experience Developers only.
You can add custom buttons with custom logic to the script.
Open custom_functions folder inside LuxuAdmin, and there you will have client.lua and server.lua
Define a new button
categories: 'players' | 'master'
Create a NUI callback with the event from above π for when the player clicks the button. π In this example I am checking if the player has permission to use this button π ( 'luxuadmin.custombutton' , you change the permission name for whatever you want)
That's it! Now you can add whatever logic you want. ( You can create server events in the server.lua)
Information about the script
Tp to coords πΊοΈ
This allows you to teleport a player to the specified coords.
The script can read a few diferent syntaxes:
Vector3(x,y,z) - e.g: Vector3(12424,6464,-23)
(x:x,y:y,z:z) - e.g: (x:424,y:636:z:-231)
(x=x,y=y,z=z) - e.g: (x=424,y=636=z=-231)
Last updated