Configuration
Every config.lua option in Eleven Radial: framework, language, key, pages, default slots, the full list of 67 icons and 12 colours, plus the exports.
Everything you can adjust lives in config.lua and the files in locales/. The rest of the code is encrypted. After a change, restart the resource or the server to apply it.
General options
| Key | Default | What it does |
|---|---|---|
Config.Framework | 'auto' | Your server's framework. 'auto' checks in this order: qbx_core → qb-core → es_extended → standalone. You can also force 'qbox', 'qbcore', 'esx' or 'standalone' |
Config.Locale | 'en' | Language of the UI and of the default slot names. Any file in locales/ works ('en', 'es') |
Config.Key | 'TAB' | Default key to open the wheel (e.g. 'TAB', 'F3', 'Z'). Players can rebind it in their FiveM settings |
Config.AllowEditing | true | true: every player edits their own wheel. false: everyone uses Config.DefaultItems and there's no editor |
Config.EditorControl | 22 | GTA control that opens the editor while the wheel is open. 22 = SPACE |
Config.Pages | 3 | Pages of 8 slices, from 1 to 5 |
Config.DefaultItems | 24 actions | The slots every character starts with (8 per page) |
Open key
Config.Key is only the default key. Players can rebind it in Settings → Key Bindings → FiveM, where it shows up with the ui.keymap text of the chosen language ("Open radial wheel"). Changing Config.Key won't override a key a player has already rebound.
Editor key
Config.EditorControl isn't a key name but a GTA control index (list in the FiveM docs). While the wheel is open, that control is blocked for the game, so SPACE never makes the character jump.
Pages
Players switch pages with the mouse wheel. If you change Config.Pages, what they already saved is kept: new pages start with the slots from Config.DefaultItems, and pages you remove are dropped.
Default slots
Config.DefaultItems is the starting list, in order: the first 8 are page 1, the next 8 page 2, and so on. Gaps you leave start empty, and anything beyond Config.Pages × 8 is ignored.
Important
With Config.AllowEditing = true, this list is only a starting point. It's copied to each character the first time they open the wheel; changing it later doesn't affect anyone who already has a saved wheel. To send a player back to the defaults, use the ResetPlayer export. With Config.AllowEditing = false, changes apply to everyone straight away.
Slot fields
| Field | What it is |
|---|---|
labelKey | Translated name, looked up in locales/<lang>.json → defaults |
label | Plain text name. Use it instead of labelKey if you don't need translations |
command | What runs on release. '/e wave' runs the command e wave |
icon | Optional. An id from the icon list. Leave it out and one is picked from the command |
color | Optional. One of the 12 colours. Leave it out for blue |
Config.DefaultItems = {
-- Page 1
{ labelKey = 'handsup', command = '/e handsup', icon = 'icon-hand', color = '#F87171' },
-- Plain text name, no translation:
{ label = 'Lock car', command = '/lock', icon = 'icon-key', color = '#FBBF24' },
-- …
}
What ships in the package
The commands follow the rpemotes style (/e <emote>). If your server uses a different emote menu, change them.
| # | Name | labelKey | Command | Icon | Colour |
|---|---|---|---|---|---|
| 1.1 | Hands up | handsup | /e handsup | icon-hand | #F87171 (Red) |
| 1.2 | Surrender | surrender | /e surrender | icon-alert-triangle | #FBBF24 (Amber) |
| 1.3 | Sit | sit | /e sit | icon-user | #38BDF8 (Blue) |
| 1.4 | Point | point | /e point | icon-navigation | #38BDF8 (Blue) |
| 1.5 | Wave | wave | /e wave | icon-smile | #4ADE80 (Green) |
| 1.6 | Phone | phone | /e phone | icon-phone | #22D3EE (Cyan) |
| 1.7 | Smoke | smoke | /e smoke2 | icon-cigarette | #A78BFA (Violet) |
| 1.8 | Emotes | emotes | /emotemenu | icon-play-circle | #818CF8 (Indigo) |
| 2.1 | Cross arms | crossarms | /e crossarms | icon-user | #38BDF8 (Blue) |
| 2.2 | Lean | lean | /e lean | icon-home | #38BDF8 (Blue) |
| 2.3 | Kneel | kneel | /e kneel2 | icon-hand | #FBBF24 (Amber) |
| 2.4 | Thumbs up | thumbsup | /e thumbsup | icon-thumbs-up | #4ADE80 (Green) |
| 2.5 | No | no | /e no | icon-x-circle | #F87171 (Red) |
| 2.6 | Shrug | shrug | /e shrug | icon-info | #CBD5E1 (Grey) |
| 2.7 | Facepalm | facepalm | /e facepalm | icon-smile | #FB923C (Orange) |
| 2.8 | Clap | clap | /e clap | icon-award | #4ADE80 (Green) |
| 3.1 | Dance | dance | /e dance | icon-music | #F472B6 (Pink) |
| 3.2 | Clipboard | clipboard | /e clipboard | icon-clipboard | #CBD5E1 (Grey) |
| 3.3 | Camera | camera | /e camera | icon-camera | #A78BFA (Violet) |
| 3.4 | Check watch | checkwatch | /e checkwatch | icon-watch | #2DD4BF (Teal) |
| 3.5 | Salute | salute | /e salute | icon-shield | #22D3EE (Cyan) |
| 3.6 | Think | think | /e think | icon-activity | #FBBF24 (Amber) |
| 3.7 | Sleep | sleep | /e sleep | icon-moon | #A3E635 (Lime) |
| 3.8 | Cheer | cheer | /e cheer | icon-star | #818CF8 (Indigo) |
Icons
There are 67 icons. Use their id in icon (in Config.DefaultItems or in SetContext). In the in-game editor they're grouped like this and can be searched by name.
If a slot has no icon, one is picked automatically from the command:
| Command starts with | Automatic icon |
|---|---|
/e | icon-play-circle |
/me or /do | icon-activity |
/ (anything else) | icon-terminal |
| No slash | icon-message-square |
An id that doesn't exist won't leave the slice blank: the automatic icon is used instead.
Actions (12)
| Icon | Name in the picker |
|---|---|
icon-play-circle | Animation |
icon-activity | Roleplay |
icon-terminal | Command |
icon-message-square | Chat |
icon-send | Send |
icon-zap | Bolt |
icon-target | Target |
icon-crosshair | Crosshair |
icon-refresh-cw | Reload |
icon-power | Power |
icon-mic | Microphone |
icon-radio | Radio |
Gestures (10)
| Icon | Name in the picker |
|---|---|
icon-smile | Smile |
icon-thumbs-up | Thumbs up |
icon-hand | Hand |
icon-heart | Heart |
icon-user | Person |
icon-users | Group |
icon-eye | Eye |
icon-award | Medal |
icon-star | Star |
icon-flag | Flag |
Objects (16)
| Icon | Name in the picker |
|---|---|
icon-coffee | Coffee |
icon-cigarette | Cigarette |
icon-camera | Camera |
icon-book | Book |
icon-clipboard | Clipboard |
icon-briefcase | Briefcase |
icon-key | Key |
icon-package | Package |
icon-shopping-bag | Bag |
icon-gift | Gift |
icon-music | Music |
icon-headphones | Headphones |
icon-film | Film |
icon-scissors | Scissors |
icon-watch | Watch |
icon-droplet | Drop |
Work (10)
| Icon | Name in the picker |
|---|---|
icon-shield | Shield |
icon-medical | Medic |
icon-tool | Tool |
icon-car | Car |
icon-truck | Truck |
icon-anchor | Anchor |
icon-dollar-sign | Money |
icon-credit-card | Card |
icon-clock | Clock |
icon-calendar | Calendar |
Places (8)
| Icon | Name in the picker |
|---|---|
icon-home | House |
icon-map-pin | Location |
icon-navigation | Navigate |
icon-compass | Compass |
icon-sun | Sun |
icon-moon | Moon |
icon-cloud | Cloud |
icon-wifi | Wifi |
System (11)
| Icon | Name in the picker |
|---|---|
icon-settings | Settings |
icon-bell | Alert bell |
icon-phone | Phone |
icon-search | Search |
icon-hash | Hash |
icon-info | Info |
icon-alert-triangle | Warning |
icon-check-circle | Accept |
icon-x-circle | Cancel |
icon-plus-circle | Add |
icon-bookmark | Bookmark |
Colours
The palette is closed so every slice reads well on the wheel's dark background. Use the value exactly as written in color. Any other colour is discarded.
| Hex | Name |
|---|---|
#38BDF8 | Blue |
#22D3EE | Cyan |
#2DD4BF | Teal |
#4ADE80 | Green |
#A3E635 | Lime |
#FBBF24 | Amber |
#FB923C | Orange |
#F87171 | Red |
#F472B6 | Pink |
#A78BFA | Violet |
#818CF8 | Indigo |
#CBD5E1 | Grey |
Languages
The texts live in locales/en.json and locales/es.json. Each file has these sections:
| Section | What it holds |
|---|---|
ui | Editor and wheel texts. {key} becomes the key and {n} the page or slot number |
groups | Names of the icon groups in the picker |
icons | For each icon: display name and search keywords |
colors | Display name of each colour |
defaults | Names of the default slots (the ones labelKey uses) |
To add a language:
- Copy
locales/en.jsonunder the language code, for examplelocales/fr.json. - Translate the texts. Don't change the keys (
icon-…,#38BDF8,handsup…), only the values. - Set
Config.Locale = 'fr'.
Tip
If a language file has a JSON error (a stray comma, say), the resource doesn't crash: it falls back to English and prints a warning in the server console.
Other frameworks
Only needed if your framework isn't Qbox, QBCore or ESX. Without it, the wheel runs in standalone mode: one wheel per Rockstar license, shared between all of the player's characters.
| Key | Default | Side | What it does |
|---|---|---|---|
Config.GetIdentifier | nil | Server | Function that returns a unique, stable id for the player's character. Return nil while no character is loaded. When set, it replaces the built-in detection |
Config.LoadEvents | {} | Client | Events your framework fires when a character loads. Added to the built-in ones |
Config.UnloadEvents | {} | Client | Events it fires when a character is unloaded |
Config.GetIdentifier = function(source)
return exports['my-framework']:GetCharacterId(source)
end
Config.LoadEvents = { 'my-framework:characterLoaded' }
Config.UnloadEvents = { 'my-framework:characterUnloaded' }
Exports
Client: context wheels
They replace the player's wheel while a situation lasts (inside a house, on duty, in a vehicle…). They aren't saved, don't touch the player's own wheel and can't be edited with SPACE. If the wheel is open, it redraws immediately.
exports['eleven-radial']:SetContext({
{ id = '1', label = 'Lock', command = '/lock', icon = 'icon-key' },
{ id = '2', label = 'Exit', command = '/leave', icon = 'icon-home' },
})
-- Back to the player's normal wheel
exports['eleven-radial']:ClearContext()
| Export | Parameters | What it does |
|---|---|---|
SetContext(list) | List of { id, label, command, icon? } | Turns on the context wheel. With 3 actions it draws 3 large slices; with more than 8 it splits them into pages. An empty list works like ClearContext |
ClearContext() | — | Goes back to the player's normal wheel |
Note
Context actions don't take a color: they use the default colour.
Full per-job examples (Qbox, QBCore, ESX) and an in-vehicle one in Per-job wheels.
Server
| Export | What it does |
|---|---|
RefreshPlayer(source) | Reloads an online player's wheel |
ResetPlayer(source) | Deletes an online player's saved wheel, sending them back to Config.DefaultItems |
exports['eleven-radial']:ResetPlayer(source)
ResetPlayer returns false if the player has no character loaded, and true otherwise.