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 = {
truck_already_spawned = "You have already spawned a garbage truck.",
menu_back = "Back",
menu_spawn_truck = "Spawn Truck",
loading_truck = "Loading truck...",
loading_failed = "Loading truck model failed.",
loading_success = "Truck loaded succesfully",
area_busy = "The spawn zone is currently busy.",
no_outfit_available = "There is no outfit available for your ped model.",
work_outfit_set = "You have changed into your work clothes.",
normal_outfit_set = "You have changed into your casual clothes.",
no_truck_spawned = "You need to spawn a garbage truck before starting a route.",
invalid_multiplayer_truck = "Your currently spawned garbage truck doesn't have enough space for multiplayer.",
route_started_driver_sp = "Your garbage route has started. Drive to %s to perform your first pickup.",
route_started_driver_mp = "Your garbage route has started. Drive to %s to have your coworkers perform the pickup. Ensure all passengers are part of the garbage job.",
route_pickup_driver = "You have completed a pickup on your garbage route. Drive to %s to perform your next pickup.",
pickup_point_sp = "Pick up the garbage from the collection point and throw it into the back of your truck.",
pickup_point_mp = "Wait for your co-workers to pick up the garbage from the collection point before continuing.",
pickup_complete = "Garbage pickup complete.",
route_complete = "Garbage route complete. Return to the station to receive your reward.",
gathering_garbage = "Gathering Garbage",
empty_truck_to_complete = "Garbage truck must be emptied of passengers to complete the route.",
job_complete = "Garbage run complete.",
}
Last updated