# Jota Dev Pause Menu

<figure><img src="/files/u3bzznaqlzxNMTzfwAOP" alt=""><figcaption></figcaption></figure>

How to start the script for its correct operation:

**Put in your server.cfg**

```markdown
# JotaDev Pausemenu
ensure jc_pausemenu
```

***

**Commands**

* Open ad manager:  `/announces`
* Create an ad for the pause menu: `/createannounce`
* Open Pause Menu:  `/pausemenu`  (ESCAPE)

**Script Settings:**

{% tabs %}
{% tab title="Setting" %}
{% code expandable="true" %}

```lua
Config = {}

Config.Framework = 'auto'  -- 'esx', 'qb', 'auto' or 'standalone'

--[[  
Configure your language using the following:
    'es' -> Spanish
    'en' -> English
    'fr' -> French
    'de' -> German
    'it' -> Italian
    'pt' -> Portuguese
]]
Config.Locale = 'en' 

Config.GeneralSettings = {
    openCommand = 'pausemenu', -- Command to open pausemenu
    keyBoard = 'ESCAPE', -- Key to open the pause menu, by default Esc
    deadOpen = false, -- Do you want dead players to be able to open the pause menu? You can set it to true
    maxClientes = 64 -- Set the maximum number of players that your server can hold
}

Config.Header = {
    links = { -- Configure your links so that when someone clicks on them, they are redirected
        web = "https://store.jotadev.site/",
        discord = "https://discord.com/invite/EDuZKM7Zuv",
        twitter = "https://twitter.com/yourserver",
        tiktok = "https://www.tiktok.com/@scriptsfivem2?is_from_webapp=1&sender_device=pc"
    },

    buttons = { -- Configure whether you want the shop or battle pass buttons to be visible or not
        shop = true,
        battlePass = true
    }
}

Config.Roulette = {
    enable = true, -- Enable or disable the use of the roulette wheel. If this option is disabled, you must enable Config.ServerRules to display your server rules
    price = 0, -- Price to spin the daily roulette wheel
    cooldown = 86400,
    items = { -- Here you will find the items that the roulette wheel gives away; if you want more information about this, refer to the documentation
        {
            id = "20_coins",
            label = "20 Coins",
            image = "coins.png",
            type = 'coins',
            ammount = 20,
        },
        {
            id = "money_50k",
            label = "50 K Cash",
            image = "money.png",
            type = 'money',
            ammount = 20,
        },
        {
            id = "pistol_1",
            label = "X1 Pistol",
            image = "pistol.png",
            type = 'weapon_pistol',
            ammount = 1,
        },
        {
            id = "armour_1",
            label = "Armour",
            image = "armour.png",
            type = 'armour',
            ammount = 1,
        },
        {
            id = "10_coins",
            label = "10 Coins",
            image = "coins.png",
            type = 'coins',
            ammount = 10,
        },
        {
            id = "casino_chips_50",
            label = "50 Casino Chips",
            image = "casino_chips.png",
            type = 'casino_chips',
            ammount = 50,
        },
        {
            id = "laptop_1",
            label = "Laptop",
            image = "laptop.png",
            type = 'laptop',
            ammount = 1,
        },
        {
            id = "smg_1",
            label = "X1 SMG",
            image = "smg.png",
            type = 'weapon_smg',
            ammount = 1,
        }
    }
}

Config.ServerRules = {
    enable = false,
    title = "Server Rules",
    rules = {
        "Respect all players and staff at all times",
        "No cheating, exploits, hacks or third-party software",
        "No toxic behavior, harassment or discrimination",
        "Use common sense and roleplay realistically",
        "Powergaming is strictly forbidden",
        "Metagaming is strictly forbidden",
        "No combat logging or disconnecting to avoid RP",
        "FearRP must be respected at all times",
        "No random deathmatch (RDM)",
        "No vehicle deathmatch (VDM)",
        "No revenge killing",
        "Do not force roleplay situations unrealistically",
        "Value your life at all times",
        "No bug abuse or glitch exploitation",
        "Use /me and /do correctly for roleplay actions",
        "No trolling or intentionally ruining roleplay scenes",
        "Robberies and kidnappings must follow server rules",
        "No impersonating staff members",
        "No advertising other servers or communities",
        "Respect cooldowns for crimes and activities",
        "No AFK farming or money exploits",
        "Roleplay injuries and consequences properly",
        "No unrealistic vehicle usage",
        "No unrealistic weapon usage",
        "Follow New Life Rule after death",
        "No stream sniping or external communication abuse",
        "Do not break character in roleplay situations",
        "Respect safe zones and their restrictions",
        "No griefing or provoking without RP reason",
        "Staff decisions are final"
    }

}

Config.CommandAnnounce = {
    commandName = 'createannounce', -- Command to create ads
    commandNameList = 'announces', -- Command to view and delete ads
    
    permissions = {
        useFrameworkGroups = true, -- Use framework permissions to access the admin menu
        useLicenses = false, -- Use the identifiers to access the admin menu
    },

    groups = {-- esx, qb, or qbx groups
        esx = {
            admin = true,
            superadmin = true
        },
        qb = {
            admin = true,
            god = true
        }
    },

    licenses = {
        "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
}

```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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://jota-dev-documentation.gitbook.io/jota-dev/scripts/jota-dev-pause-menu.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.
