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 = {
    broken = "This RC vehicle is broken.",
    repaired = "Your %s has been repaired.",
    recharged = "Your %s has been recharged.",
    none_found = "No RC vehicles found to %s.",
    invalid = "This RC vehicle has invalid metadata.",
    charge_warning = "You are running out of battery.",
    distance_warning = "You are travelling too far from the receiver.",
    lost_signal = "You lost the signal to your RC vehicle.",
    lost_charge = "Your RC vehicle ran out of battery.",
    battery = "Battery",
    signal = "Signal",
    health = "Health",
    exit = "Exit",
    camera = "Camera",
}

Last updated