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 = {
    demerit_added = "You have gained %i demerits for your %s license.\rYou now have %i demerits, and will lose your license if you incur %i more demerits.",
    demerit_removed = "You have regained %i demerits for your %s license.\rYou now have %i demerits.",
    license_lost = "You have lost %i demerits for your %s license.\rYou now have %i demerits, and have lost your license.",
    license_reinstated = "You have had your %s license reinstated."
}

Last updated