> For the complete documentation index, see [llms.txt](https://ruxo.gitbook.io/ruxo-shop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruxo.gitbook.io/ruxo-shop/fivem-scripts/ruxo-admin-menu.md).

# Ruxo Admin Menu

```
/ ^4________  ___  ___     ___    ___ ________          
^4|\   __  \|\  \|\  \   |\  \  /  /|\   __  \        
^4\ \  \|\  \ \  \\\  \  \ \  \/  / | \  \|\  \       
^4 \ \   _  _\ \  \\\  \  \ \    / / \ \  \\\  \      
^4  \ \  \\  \\ \  \\\  \  /     \/   \ \  \\\  \     
^4   \ \__\\ _\\ \_______\/  /\   \    \ \_______\    
^4    \|__|\|__|\|_______/__/ /\ __\    \|_______|    
```

```markdown
# Table of Contents

1. [Introduction](#introduction)
2. [How to Install](#how-to-install)
    - [Download](#download)
    - [Installation Steps](#installation-steps)
3. [Dependencies](#dependencies)
```

{% hint style="info" %}
**Download:** [Ruxo Shop](https://ruxo-shop.tebex.io/package/5851825)
{% endhint %}

## How to Install

Like any other script, Insert the menu inside the RESOURCE server folder, and add ruxo\_menu on the server config file!

<figure><img src="/files/iUvukGX8fjUmJc04DCjc" alt=""><figcaption><p>Ruxo Admin Menu</p></figcaption></figure>

## Dependencies

* ESX
* ESX Context

{% embed url="<https://www.youtube.com/watch?t=19s&v=QS2af7djtg4>" %}
Video Preview
{% endembed %}

## Key Commands

Numpad 8 to open the menu, or use `/ruxomenu` you can edit default commands in config file, or change keybinds settings inside the game.

Each staff can change the keys from game commands settings.

## SQL

```lua
ESX.RegisterServerCallback('RXO:Job', function(source, cb)
	
	local job = MySQL.Sync.fetchAll('SELECT * FROM jobs') 

	cb(job)
end)

ESX.RegisterServerCallback('RXO:Job_grade', function(source, cb)
	
	local jobGrade = MySQL.Sync.fetchAll('SELECT * FROM job_grades') 

	cb(jobGrade)
end)
```

If your database have different job table you can change the SQL query inside the server.lua file<br>

## Admin Control

In config file you can control your admin settings:

<mark style="color:orange;">CASE</mark> AdminControl = [<mark style="color:green;">true</mark>](#user-content-fn-1)[^1]

You MUST add your discord and steam discord id in the config server file

```lua
BypassAdmin = {
	"steam:110789014871fc9f", 
	"discord:849279969461577739",
	--this is an example
},
```

{% hint style="success" %}
Admin control with steam id from config it's a safe practice, for example a cheater with group admin or founder will never get access to this menu
{% endhint %}

<mark style="color:orange;">CASE</mark> AdminControl = <mark style="color:red;">false</mark>

The menu will check your server groups (mod,admin,superadmin.cofounder,founder) you can edit in client side what commands can be done for each group.

## Vehicles

The menu can get all vehicles in server, basic + custom, or you can manage them manually from config, to do that enable **GetVehicleFromConfig**

```lua
GetVehicleFromConfig = true,
```

{% hint style="success" %}
Leave **GetVehicleFromConfig false to get all game vehicles without adding them manullay in config**
{% endhint %}

Inside the config file you can find two different lists of vehicles:

**ListedVehicle** is a static list with all base GTA vehicles

```lua
ListedVehicle = {
		"adder",
		"Airbus",
		"Airtug",
		...	 
    },
```

**ModVehicle** is a list with your imported vehicles:&#x20;

```lua
ModVehicle = {
		'370z',
		"rs7",
		'a8audi',
		'x5e53',
		'boss429',
		's63w222',
		'teslax',
		...
	},
```

## Translations

Translations available in: EN,IT,FR,DE,ES.

Select your locale:

```lua
    Local = "en", -- it,es,fr,en,de..
```

You can add more translations adding a block of code like that, change labels:

```lua
TranslateEN = {
		fix_vehicle = "Repair Vehicle",
		trainer = "Trainer",
		list_player = "Player List",
		list_vehicles = "Vehicle List",
		list_resource = "Resource List",
		list_items = "Item List",
		clean = "Clean Area",
		jobs = "Job List",
		custom_vehicles = "Custom Vehicles",
		search = "Search",
		select_grade = "Select Grade",
		inv = "Invisible",
		god_mode = "God Mode",
		revive = "Revive",
		stop_res = "Stop Resources",
		search_it = "Search Item",
		search_car = "Search Car",
		qnt = "Quantity",
		done = "Done",
		not_in = "You are not in a vehicle",
		cant = "You are not authorized",
		msg = "Message sent",
		area = "Area Cleaned",
		job_set = "Job set",
		blip_on = "Blips Activated",
		blip_off = "Blips Deactivated",
		veh = "Vehicles",
		stop = "Stop Resources",
		del_veh = "Delete Vehicle",
		del_ped = "Delete Ped",
		del_prop = "Delete Prop",
		range = "Select Range",
	},
```

## Discord Logs

You can log everithing you need to discord, controll what your stuff does, when and how

Discord webhooks are easy to manage, you can find some pre-configured logs inside config file:

```lua
--Open Menu Request log
	WebhookRuxo= "",
	--Open Resource List log
	WebhookRuxoRes= "",
	--Give Item log
	WebhookRuxoIT= "",
	--Open Veh List log
	WebhookRuxoVEH= "",
	--SetJOB log
	WebhookRuxoJOB= "",
```

## Support

For any problem join our Discord Community:

{% content-ref url="/pages/e58lwPfWuNyRRzPTvcYd" %}
[Support](/ruxo-shop/overview/support.md)
{% endcontent-ref %}

[^1]: Admins will not be checked with groups
