Identix
Browse AddonsDownload RLIB
  • Introduction
  • Showcase
  • Changelog
    • 🟧2.6.0.0
    • 🟧2.5.2.0
    • 🟧2.5.1.0
    • 🟧2.5.0.0
  • FAQ
    • ◾Addon Won't Show
    • ◾Change Currencies
    • ◾Change Themes
    • ◾Disabling Names
    • ◾Incompatible Addons
    • ◾Modified Script
    • ◾Refunds
    • ◾Script Errors
    • ◾When Are Updates?
  • ❱ Setup
    • ◾Install
    • ◾Verify
    • ◾Workshop
  • ❱ Configuration
    • ◾Env
    • ◾Fonts
    • ◾Languages
    • ◾Database
    • ◾Settings
      • ◾Non-RP Gamemodes
  • ❱ First Use
    • ◾Binds
    • ◾Permissions
      • SAM
      • ServerGuard
      • ULX
      • xAdmin
  • ❱ Developers
    • ◾Hooks
      • 🔗identix_fonts_register
      • 🔗identix_pl_authenticate
      • 🔗identix_pl_name_set
      • 🔗identix_pl_name_set_post
      • 🔗identix_pl_name_rs
      • 🔗identix_pl_name_rs_post
      • 🔗identix_pl_profile_rate
      • 🔗identix_rnet_register
Powered by GitBook
On this page
  • ◾ Location
  • ◾ Add Language
  • ◾ Set Default
  • ◾ Set Language
  1. ❱ Configuration

Languages

This section explains how to add your own language

◾ Location

All languages included with script are located in lua\modules\identix\lang

◾ Add Language

  • Copy lua\modules\identix\lang\en.lua file

  • Rename copied en.lua file to your own language

    • Example: lua\modules\identix\lang\ru.lua ( russian )

  • Open the new language file in a text editor.

  • Locate the line:

    • mod.language[ 'en' ]

  • Change the line to your new language:

    • mod.language[ 'ru' ]

  • Translate all of the strings to your own language.

◾ Set Default

  • Open folder lua\modules\identix\lang\

  • Find the filename for the language you want to make as your default

  • Open lua\modules\identix\cfg\sh_cfg.lua

  • Locate the setting cfg.lang

  • Change 'en' to your own language's filename (without the .lua at the end)

cfg.lang = 'ru' -- russian
cfg.lang = 'es' -- spanish
cfg.lang = 'fr' -- french
  • Restart your server if changes do not get applied immediately.

◾ Set Language

You can switch languages in-game on-the-fly by typing !lang in chat.

The languages in the list are a compiled set from all the addons you own running rlib. If you own multiple scripts, but only have French translations for one; then the one addon will be translated to French and the others will default to English.

PreviousFontsNextDatabase

Last updated 3 years ago

◾