For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to change locale

HUD strings (NUI + client keybind labels) load from JSON under locales/.

1

Pick a language

Available out of the box:

File
Language

locales/en.json

English

locales/pl.json

Polish

2

Set Config.Locale

In config/MainConfig.lua:

Config.Locale = 'pl'

Use the file name without .json.

3

Restart the resource

ensure op-hud

Or restart the server. Players already in settings should reopen the menu to see updated strings.

Adding your own language

  1. Copy locales/en.json to e.g. locales/de.json

  2. Translate values (keep keys identical)

  3. Set Config.Locale = 'de'

Last updated