Reference
Languages
Every text the pack shows comes from html/locales.js (open on the escrowed version). All 23 languages ship complete (1200+ texts each, the F7 and admin panels included): English, Turkish, German, French, Spanish, Portuguese (Brazil), Italian, Dutch, Polish, Russian, Romanian, Czech, Ukrainian, Swedish, Danish, Japanese, Korean, Chinese (Simplified), Arabic, Hungarian, Greek, Finnish and Norwegian. All but English and Turkish were machine translated: have a native speaker read the ones you rely on. python tools/loc_audit.py shows the coverage; a language you have not finished can carry partial: true in its _meta, and missing texts then show in English. Each player picks their language in F7 โ General or with the flag on the quick actions; it applies at once and is remembered on their PC. Config.DefaultLocale is the language of players who never picked one.
Adding a language
- Open
html/locales.jsand copy the wholeen: { ... }block. - Rename the copy (
de,fr,es,pt-BR...) and give it a name and a flag:
de: { _meta: { name: 'Deutsch', english: 'German', flag: 'de' }, panel_title: 'UI-Pack Einstellungen', // ... },- Translate the texts. Keep the placeholders exactly as they are:
%{name},%{n},%{page}are filled in by the pack, and a text without them loses the value. - Restart the resource. The language is in the list right away.
A key you leave out falls back to English, so a half-done translation never shows an empty label.
Texts from your own scripts: @key
Lua cannot know a player's language, so the pack lets you send a key instead of a text. Start the text with @ and the player's screen puts it in their language:
exports['uniqers-uipack']:Notify({ kind = 'success', text = '@my_paid' }) -- with values: '@key|name=value|other=value'exports['uniqers-uipack']:Notify({ text = '@my_paid_amount|amount=$500' })// html/locales.jsen: { my_paid: 'You got paid', my_paid_amount: 'You got paid %{amount}' },tr: { my_paid: 'รdeme aldฤฑn', my_paid_amount: '%{amount} รถdeme aldฤฑn' },A value may itself be a key: '@my_found|what=@my_wallet'. Plain text (no @) is shown as it came, for everyone.
@key works in notifications (title and message), banners and the red alert, draw text, draw info, text UI, 3D texts, the hint line and the middle card, the progress bar label, radial menu and target labels, 3D prompt labels and options, player requests, and the self wheel (shared/qbradial_config.lua ships with @qbr_t_* keys). For dialogs and menus, pass the text itself.
Texts the game draws
The target name tag (the name and the small line above it) is drawn with the game's own text, not by the page. The page hands Lua the dictionary of the player's language when it loads and again when they switch, so these follow the language too. RadialConfig.PedTarget.DefaultLabel = '@tg_citizen' is a key for that reason; write plain text there to show the same word to everyone.
Config texts
Labels you write in shared/*.lua (radial entries, prompt options, ready theme names) are yours: write plain text for one language, or @key and add the key to every language in html/locales.js. Ready theme names take one text per language:
{ id = 'myserver', name = { en = 'My Server', tr = 'Sunucum', de = 'Mein Server' }, colors = { accent = '#7C5CFF' } }Keys GTA shows in its own settings
The names of the key bindings in Settings โ Key Bindings โ FiveM (Open UI Pack Settings, Open Radial Menu ...) are given to the game once, when the resource starts, and the game shows them as they are. They are in English for everyone.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord