Languages
FR Hub ships with 5 official languages:
| Code | Language |
|---|---|
es | Spanish (default) |
en | English |
pt | Português |
fr | Français |
de | Deutsch |
All visible HUD text is translated:
- Ring and speedometer labels.
- Seatbelt messages (warning, ejection).
- Settings panel texts (
/hub). - Command notifications for
/hudand/hub. - Minimap tooltips (street, zone, time, compass).
How to change the server language
Edit config.lua:
Config.Locale = 'en' -- es | en | pt | fr | de
Then restart the resource:
restart fr_hub
The change affects all players. If a player has set a personal language from the /hub panel, their individual preference takes priority over the server setting.
Per-player language
Each player can change the language from the /hub panel → Settings tab. The selection is saved with KVP and persists across sessions.
Adding a custom language
FR Hub translations are embedded directly in config.lua inside the Config.Strings block. There is no separate locales/ folder.
To add Italian (it), for example:
1. Open config.lua and add a new block inside Config.Strings:
Config.Strings = {
es = { ... },
en = { ... },
-- ... other existing languages ...
it = {
hud_on = 'HUD attivato',
hud_off = 'HUD disattivato',
seatbelt_on = 'Cintura allacciata',
seatbelt_off = 'Cintura slacciata',
limiter_on = 'Limitatore a %s %s',
limiter_off = 'Limitatore disattivato',
limiter_slow = 'Accelera prima di attivare il limitatore',
},
}
2. Set the new language as the server language:
Config.Locale = 'it'
3. Restart the resource:
restart fr_hub
Since translations live inside config.lua, they won't be overwritten by updates as long as you keep your own config.lua.