Kartik Scripts

Language

Every piece of text a player sees, notifications, menus, the tablet, the death screen, item labels in the UI, comes from one file.

locales/en.json

Translating

  1. Copy locales/en.json to a new file, for example locales/fr.json.
  2. Translate the values on the right. Never change the keys on the left.
  3. Set your locale with the standard ox_lib convar in server.cfg:
setr ox_locale fr
  1. Restart the resource.

Keep the {placeholders} in braces exactly as they are. They are replaced with live values like names, amounts and body parts.

Example:

"treatment_applied": "Applied {treatment} to the {zone}",

becomes

"treatment_applied": "{treatment} appliqué sur {zone}",

What is not in the locale file

TextWhere to change it
Item labels in the inventoryYour inventory's own item file
Treatment, medication and disease labelsshared/config/treatments.lua, medications.lua, diseases.lua, the label field
Hospital namesThe hospital creator in /emsadmin
Report template textThe tablet → Report templates
Insurance plan namesThe tablet → Insurance plans

locales/ is outside the escrow, so you can edit it freely and it survives updates as long as you keep a copy.

On this page