STG ScriptsDocumentation
Radial Menu

Configuration

Every option in STG Radial Menu config.lua, from the open key and hold mode to menu size, sound, language and colors.

All settings live in stg-radialmenu/config.lua. The file stays editable in the escrow version. Restart the resource after a change.

Language

Config.Language = "en"

Available: en, de, fr, es, pt, nl, it, pl, zh, ar, ja, sv. To change a text, edit the matching file in stg-radialmenu/locales/. The menu labels and descriptions themselves are written in Config.Menu, so translate them there.

Framework

Config.Framework = "auto"

Prop

Type

Settings

Config.Settings = {
    size = 1.0,
    sound = {
        enable = true,
        volume = 0.5,
    }
}

Prop

Type

To use your own click, replace stg-radialmenu/html/sound/sound.ogg with another .ogg file of the same name.

Opening the menu

Config.Open = {
    holdbutton = true,
    can_walk = true,
    key = "x",
}

Prop

Type

Which keys work depends on holdbutton:

Use a letter key or a function key. Supported: every letter except I, J and O, and F1 to F10 except F4. The key is fixed for every player and cannot be changed in the game settings.

Any keyboard key works. The key is registered as Open Radial Menu in the FiveM key bindings, so players can change it in Settings, Key Bindings, FiveM.

FiveM saves this binding per player the first time they join. If you change key later, players who already joined keep their old key until they change it in the key bindings themselves.

After an action is picked, the menu closes and cannot be opened again for 0.7 seconds.

Config.Menu = {
    {
        id = 'citizen',
        label = 'Citizen',
        description = 'Common civilian actions and quick interactions',
        icon = 'fa-solid fa-user',
        submenu = { ... }
    },
    -- ...
}

Every slice of the menu, its submenus, job filters and actions are set in Config.Menu. The format, every option, the built in clothing and door actions and the exports for other scripts are explained on Menu items.

Colors

The menu colors are set in stg-radialmenu/html/css/config.css:

:root {
    --main-color: #F39A9C;
    --main-color-2: #f39a9a14;
    --main-color-3: #513c3c;
}
VariableUsed for
--main-colorOutline and icon of the slice under the cursor, the center icon and title, the page buttons on hover
--main-color-2Background of the Next Page and Back buttons on hover, keep it mostly transparent
--main-color-3Fill of the slice under the cursor

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page