# Configuration

## 1. Setup

***

### Open your config.lua

#### [Perrmisions list](https://byte-scripts.gitbook.io/docs/assets/byte-admin/perrmisions)

<pre class="language-lua"><code class="lang-lua"><strong>Config = {}
</strong>

Config.language = "pl" -- change language (pl,eng,de,fr)


Config.command = { -- set keybind or command

    admin_menu = false, -- keybind
    admin_menu_comm = "admin",

    reaport_menu = true, -- command
    reaport_menu_comm = "reaport",

}

Config.keys = { -- keybinds

    admin_menu = "F9",
    reaport_menu = "F10"

}

Config.max_users = 120 -- server max users

Config.time12 = false -- true = 12h / false = 24h

Config.revive_event = "esx_ambulancejob:revive" -- your client site revive event

Config.sc_webhook = "" -- discord webhook to send player screenshot

Config.permissions = "esx"   -- select permission system: esx | discord 

Config.play_time_interval = 5 -- minutes to update player playtime

Config.play_time_update_on_quit = true -- true = update on quit | false = update on interval

Config.permissions_list = { -- discord = role id | esx = group name



    --[[ ['1168149143005433906'] = {
            category = {"on_players", "stats", "reaport", "bans"},
            main_options = {"spawn_car", "repair_car", "gamemode", "set_ped", "display_nick", "display_coords", "teleport_on_waypoint", "teleport_on_coords", "invisible", "noclip", "revive", "set_announcment"},
            reaport_options = {"manage", "status", "return"},
            player_options = {"kick","ban","revive","freeze","teleport_to_me","teleport_to","spectate","inventory","screenshot","set_job","set_money", "give_item"},
            bans_options = {"unban", "change_date"}
        }, ]]

    admin = { -- permission for esx admin group

        category = {"on_players", "stats", "reaport", "off_players", "bans"}, -- acces to category
        main_options = {"spawn_car", "repair_car", "gamemode", "set_ped", "display_nick", "display_coords", "teleport_on_waypoint", "teleport_on_coords", "invisible", "noclip", "revive", "set_announcment"}, -- options for administrator
        reaport_options = {"manage", "status", "return"}, -- option to manage reports
        player_options = {}, -- option to manage players
        bans_options = {"unban", "change_date"} -- option to manage bans

    }


}

Config.stats = {
    job = {"police", "ambulance"}, -- name of jobs to statistics
    weapon = {"weapon_pistol","weapon_appistol"} -- name of weapon to statistics
}

Config.db_sync_player = 5 -- The number of players after which the script will save data to statistics
</code></pre>

### Open your config\_discord.lua

```lua
Config_discord = {}

Config_discord.token = "" -- insert your discord bot token | REQUIRED
Config_discord.guildid = "" -- if you use discord perrmisions insert your discord server id
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://byte-scripts.gitbook.io/docs/assets/byte-admin/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
