Real Wallet / Guides
Languages
Every text players read (notifications, the tag, the key binding names) is in locales/. Real Wallet comes in 14
languages, with the same codes as ox_lib:
| Code | Language | Code | Language |
|---|---|---|---|
en |
English | it |
Italian |
ar |
Arabic | nl |
Dutch |
cs |
Czech | pl |
Polish |
da |
Danish | pt-BR |
Portuguese (Brazil) |
de |
German | ru |
Russian |
es-ES |
Spanish | sv |
Swedish |
fr |
French | tr |
Turkish |
Picking the language
Lua
Config.Locale = 'en'
- A code from the table, e.g.
'de'. 'auto': the language you set for ox_lib inserver.cfg(setr ox:locale de).- Case does not matter, and a language alone finds its file:
'pt'usespt-BR,'es'useses-ES. - A code with no file prints
Config.Locale xx: no such file in locales/ - English is usedand uses English. - Any text a language file does not have shows in English.
Changing a text
Open the language's file in locales/ and change the text after the =. Keep every %s and %d: they are filled in
with a name, a card or an amount.
Lua
cash_counted = 'You count $%s in cash.',
Adding a language
- Copy
locales/en.luatolocales/<code>.lua, for examplelocales/fi.lua. - Change
Locales.enat the top toLocales.fi(for a code with a dash, useLocales['pt-PT']). - Translate the texts.
- Set
Config.Locale = 'fi'and restart.
Files in locales/ are loaded automatically (locales/*.lua in fxmanifest.lua).
Card designs and card names are not in locales/: the words on the cards are in Config.CardText, and each card's
name is its label in Config.Cards.
Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.