Labels

data/labels.lua

This file defines the labels that will be used by all notifications and generated UIs.

ti_utils will automatically pull your locale defined in either ESX or QB-Core.

Structure

local labels = {
  ["locale_tag"] = {
    ["label_name"] = "Label"
  }
}

Examples

An example for the English ("en") translation:

labels.en = {  
  generic_error = "Something went wrong.",
  not_enough_money = "Not enough money.",
}

An example for the French ("fr") translation:

labels.en = {  
  generic_error = "Quelque chose s'est mal passé.",
  not_enough_money = "Pas assez d'argent.",
}

Defaults

labels.en = {
    level_up = "Level up! You are now level %i.",
    skill_level_up = "Skill level up! Your %s skill is now level %i.",
    action_failed = "%s failed.",
    action_succeeded = "%s succeeded.",
}

Last updated