Page cover

How to change the language?

We use the locale system from ox_lib. So if you want to change the language which the script uses, you just gotta change the ox_lib language once. For this add the following to your server.cfg before starting ox_lib.

setr ox:locale de #fr, en or any other language

So, we use json files for our locales. Here is an example:

{
    "level_up_notify": "You are now level %s.",
    "data_saved": "Data saved manually!",
    "level_info": "You are level %s."
}

If you want to change the message you just change the value (right side). You have to keep %s, those are placeholders which the script later replaces.

Last updated