AKL DOCUMENTATION
  • 👋Introduction
  • GUSTI RESOURCES
    • ⛏️gusti-minerjob
      • Setup
      • Update
    • 🚙gusti-membershipvehicle
    • 🍗gusti-butcherjob
    • 📣gusti-iosnotify
      • Setup
      • Usage
    • 🌐gusti-status server web
      • Setup
    • ⏳gusti-loadscreen
      • Setup
      • Building
    • 💎gusti-vipmenu
      • Setup
    • 🛠️gusti-welderloot
      • Common Issues
      • Setup
    • 🏃‍♂️gusti-boostsprint
      • Setup
    • 🚀gusti-boostfps
    • 📹gusti-cctv
      • Setup
    • 📅gusti-datetime
      • Setup
    • ☢️gusti-radzone
      • Setup
    • 🔫gusti-hidereticle
    • 🚗gusti-givevehicle
      • Setup
      • Usage
    • 💥gusti-duarmemek
      • Setup
      • Usage
  • 🛡️gusti-vipsystem
    • Setup
    • Usage
  • CODE SNIPPETS
    • Fix Animasi
    • Fix Spam Punch
    • Boost Fps
    • Disable Ambient
    • Send Webhook Messages
    • Spawns GTA V Online Train On Fivem
    • Removing / Adding Limit Map
    • Blacklist Name
    • Item Probability
    • Anti Duplicate Vehicle
    • How To Unbind Keys
Powered by GitBook
On this page
  • Locales
  • TranslateCap
  1. GUSTI RESOURCES
  2. gusti-welderloot

Common Issues

Locales

If you try to change locale to en/id and nothing changes

open server.cfg

## ESX Translation convar (edit to change the language of ESX)
setr esx:locale "en"

deactivate setr esx:locale "en"

## ESX Translation convar (edit to change the language of ESX)
# setr esx:locale "en"

TranslateCap

open es_extended/locale.lua and replace your code with below code

Locales = {}

function Translate(str, ...)  -- Translate string
    if Locales[Config.Locale] then
        if Locales[Config.Locale][str] then
            return string.format(Locales[Config.Locale][str], ...)
        elseif Config.Locale ~= 'en' and Locales['en'] and Locales['en'][str] then
            return string.format(Locales['en'][str], ...)
        else
            return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist'
        end
    elseif Config.Locale ~= 'en' and Locales['en'] and Locales['en'][str] then
            return string.format(Locales['en'][str], ...)
    else
        return 'Locale [' .. Config.Locale .. '] does not exist'
    end
end

function TranslateCap(str, ...) -- Translate string first char uppercase
    return _(str, ...):gsub("^%l", string.upper)
end

_ = Translate
_U = TranslateCap
Previousgusti-welderlootNextSetup

Last updated 1 year ago

🛠️