Custom Language Setup

All of our scripts come with multiple pre-configured languages out of the box. However, you can easily add your own custom translation by utilizing the lang directory included in the resource.


🌐 How to Add a Custom Language

1

Create a Language File

  1. Open your server files and navigate to the script's language folder (e.g., [script_name] > lang).

  2. Create a new file named other.lua (or simply duplicate an existing file like en.lua and rename it).

2

Translate the Strings

Open the newly created other.lua file in your code editor. You will see a table containing all the UI text strings. Translate the values on the right side of the equals sign to your desired language.

-- Example structure in lang/other.lua
Lang = {
    spawn_title = "Kendi Diliniz",
    last_location = "Son Konum",
    confirm_spawn = "Burada Doğ",
    -- Continue translating the remaining lines...
}
3

Update Your Configuration

Navigate back to your main configuration file (Customize.lua or similar). Change the Locale parameter to 'other' so the script reads from your new file.

Customize = {
    ---Localization language
    ---@type 'en'|'de'|'bg'|'es'|'fr'|'it'|'pt'|'tr'|'other'
    Locale = 'other',
    
    -- Rest of your config...
}
4

Restart the Resource

Save all your files. Run the following command in your server console (or restart your server) to apply the custom language to the user interface:

ensure [script_name]

Last updated

Was this helpful?