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 = {
    menu_submit = "Submit",
    menu_shape = "Shape",
    menu_material = "Material",
    menu_depth = "Depth",
    menu_width = "Width",
    menu_height = "Height",
    menu_header_machining = "Machining",
    menu_header_machining_queue = "Machining Queue",
    menu_header_fabricate = "Fabricate",
    menu_header_fabricate_queue = "Fabricate Queue",
    menu_description_h_w_d = "H: %.3f, W: %.3f, D: %.3f",
    billet_aluminium = "Aluminium",
    billet_aluminum = "Aluminum",
    billet_titanium = "Titanium",
    billet_steel = "Steel",
    billet_iron = "Iron",
    sphere = "Sphere",
    cuboid = "Cuboid",
    cylinder = "Cylinder",
    remaining = "Remaining",
    success = "Success",
    generic_error = "Something went wrong.",
    material_item_not_found = "Material item not found: %s",
    missing_items = "You don't have the items required to craft this recipe.",
    fabricate = "Fabricate",
    back = "Back",
}

Last updated