From dd20de8441dfba531a8b332be5194d14e0fe822b Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:40:13 +0200 Subject: [PATCH] refactor: (esx_mechanicjob): refactor esx_mechanicjob --- .../[esx_addons]/esx_mechanicjob/README.md | 2 +- .../esx_mechanicjob/client/main.lua | 816 ++++++++---------- .../[esx_addons]/esx_mechanicjob/config.lua | 86 +- .../esx_mechanicjob/esx_mechanicjob.sql | 32 + .../esx_mechanicjob/fxmanifest.lua | 46 +- .../esx_mechanicjob/locales/de.lua | 170 ++-- .../esx_mechanicjob/locales/en.lua | 170 ++-- .../esx_mechanicjob/locales/es.lua | 170 ++-- .../esx_mechanicjob/locales/fi.lua | 168 ++-- .../esx_mechanicjob/locales/fr.lua | 170 ++-- .../esx_mechanicjob/locales/hu.lua | 172 ++-- .../esx_mechanicjob/locales/it.lua | 170 ++-- .../esx_mechanicjob/locales/nl.lua | 168 ++-- .../esx_mechanicjob/locales/pl.lua | 168 ++-- .../esx_mechanicjob/locales/sr.lua | 170 ++-- .../en_esx_mecanojob.sql} | 0 .../esx_mechanicjob/server/main.lua | 206 ++--- 17 files changed, 1398 insertions(+), 1486 deletions(-) create mode 100644 server-data/resources/[esx_addons]/esx_mechanicjob/esx_mechanicjob.sql rename server-data/resources/[esx_addons]/esx_mechanicjob/{esx_mecanojob.sql => localization/en_esx_mecanojob.sql} (100%) diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/README.md b/server-data/resources/[esx_addons]/esx_mechanicjob/README.md index cf4d2e07c..0fe86cd9a 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/README.md +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/README.md @@ -17,4 +17,4 @@ You are not authorized to sell this software (this is free project). This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. +You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/client/main.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/client/main.lua index 07a6cc9e5..6edbb1c2e 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/client/main.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/client/main.lua @@ -1,19 +1,14 @@ local HasAlreadyEnteredMarker, LastZone = false, nil -local CurrentAction, CurrentActionMsg, CurrentActionData = nil, "", {} +local CurrentAction, CurrentActionMsg, CurrentActionData = nil, '', {} local CurrentlyTowedVehicle, Blips, NPCOnJob, NPCTargetTowable, NPCTargetTowableZone = nil, {}, false, nil, nil -local NPCHasSpawnedTowable, NPCLastCancel, NPCHasBeenNextToTowable, NPCTargetDeleterZone = - false, GetGameTimer() - 5 * 60000, false, false +local NPCHasSpawnedTowable, NPCLastCancel, NPCHasBeenNextToTowable, NPCTargetDeleterZone = false, GetGameTimer() - 5 * 60000, false, false local isDead, isBusy = false, false function SelectRandomTowable() - local index = GetRandomIntInRange(1, #Config.Towables) - - for k, v in pairs(Config.Zones) do - if - v.Pos.x == Config.Towables[index].x - and v.Pos.y == Config.Towables[index].y - and v.Pos.z == Config.Towables[index].z - then + local index = GetRandomIntInRange(1, #Config.Towables) + + for k,v in pairs(Config.Zones) do + if v.Pos.x == Config.Towables[index].x and v.Pos.y == Config.Towables[index].y and v.Pos.z == Config.Towables[index].z then return k end end @@ -25,33 +20,33 @@ function StartNPCJob() NPCTargetTowableZone = SelectRandomTowable() local zone = Config.Zones[NPCTargetTowableZone] - Blips["NPCTargetTowableZone"] = AddBlipForCoord(zone.Pos.x, zone.Pos.y, zone.Pos.z) - SetBlipRoute(Blips["NPCTargetTowableZone"], true) + Blips['NPCTargetTowableZone'] = AddBlipForCoord(zone.Pos.x, zone.Pos.y, zone.Pos.z) + SetBlipRoute(Blips['NPCTargetTowableZone'], true) - ESX.ShowNotification(_U("drive_to_indicated")) + ESX.ShowNotification(TranslateCap('drive_to_indicated')) end function StopNPCJob(cancel) - if Blips["NPCTargetTowableZone"] then - RemoveBlip(Blips["NPCTargetTowableZone"]) - Blips["NPCTargetTowableZone"] = nil + if Blips['NPCTargetTowableZone'] then + RemoveBlip(Blips['NPCTargetTowableZone']) + Blips['NPCTargetTowableZone'] = nil end - if Blips["NPCDelivery"] then - RemoveBlip(Blips["NPCDelivery"]) - Blips["NPCDelivery"] = nil + if Blips['NPCDelivery'] then + RemoveBlip(Blips['NPCDelivery']) + Blips['NPCDelivery'] = nil end Config.Zones.VehicleDelivery.Type = -1 NPCOnJob = false - NPCTargetTowable = nil + NPCTargetTowable = nil NPCTargetTowableZone = nil NPCHasSpawnedTowable = false NPCHasBeenNextToTowable = false if cancel then - ESX.ShowNotification(_U("mission_canceled"), "error") + ESX.ShowNotification(TranslateCap('mission_canceled'), "error") else --TriggerServerEvent('esx_mechanicjob:onNPCJobCompleted') end @@ -59,254 +54,209 @@ end function OpenMechanicActionsMenu() local elements = { - { unselectable = true, icon = "fas fa-gear", title = _U("mechanic") }, - { icon = "fas fa-car", title = _U("vehicle_list"), value = "vehicle_list" }, - { icon = "fas fa-shirt", title = _U("work_wear"), value = "cloakroom" }, - { icon = "fas fa-shirt", title = _U("civ_wear"), value = "cloakroom2" }, - { icon = "fas fa-box", title = _U("deposit_stock"), value = "put_stock" }, - { icon = "fas fa-box", title = _U("withdraw_stock"), value = "get_stock" }, + {unselectable = true, icon = "fas fa-gear", title = TranslateCap('mechanic')}, + {icon = "fas fa-car", title = TranslateCap('vehicle_list'), value = 'vehicle_list'}, + {icon = "fas fa-shirt", title = TranslateCap('work_wear'), value = 'cloakroom'}, + {icon = "fas fa-shirt", title = TranslateCap('civ_wear'), value = 'cloakroom2'}, + {icon = "fas fa-box", title = TranslateCap('deposit_stock'), value = 'put_stock'}, + {icon = "fas fa-box", title = TranslateCap('withdraw_stock'), value = 'get_stock'} } - if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name == "boss" then - elements[#elements + 1] = { - icon = "fas fa-boss", - title = _U("boss_actions"), - value = "boss_actions", + if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name == 'boss' then + elements[#elements+1] = { + icon = 'fas fa-boss', + title = TranslateCap('boss_actions'), + value = 'boss_actions' } end - ESX.OpenContext("right", elements, function(menu, element) - if element.value == "vehicle_list" then + ESX.OpenContext("right", elements, function(menu,element) + if element.value == 'vehicle_list' then if Config.EnableSocietyOwnedVehicles then local elements2 = { - { unselectable = true, icon = "fas fa-car", title = _U("service_vehicle") }, + {unselectable = true, icon = "fas fa-car", title = TranslateCap('service_vehicle')} } - ESX.TriggerServerCallback("esx_society:getVehiclesInGarage", function(vehicles) - for i = 1, #vehicles, 1 do - elements2[#elements2 + 1] = { - icon = "fas fa-car", - title = GetDisplayNameFromVehicleModel(vehicles[i].model) - .. " [" - .. vehicles[i].plate - .. "]", - value = vehicles[i], + ESX.TriggerServerCallback('esx_society:getVehiclesInGarage', function(vehicles) + for i=1, #vehicles, 1 do + elements2[#elements2+1] = { + icon = 'fas fa-car', + title = GetDisplayNameFromVehicleModel(vehicles[i].model) .. ' [' .. vehicles[i].plate .. ']', + value = vehicles[i] } end - ESX.OpenContext("right", elements2, function(menu2, element2) + ESX.OpenContext("right", elements2, function(menu2,element2) ESX.CloseContext() local vehicleProps = element2.value - ESX.Game.SpawnVehicle( - vehicleProps.model, - Config.Zones.VehicleSpawnPoint.Pos, - 270.0, - function(vehicle) - ESX.Game.SetVehicleProperties(vehicle, vehicleProps) - local playerPed = PlayerPedId() - TaskWarpPedIntoVehicle(playerPed, vehicle, -1) - end - ) + ESX.Game.SpawnVehicle(vehicleProps.model, Config.Zones.VehicleSpawnPoint.Pos, 270.0, function(vehicle) + ESX.Game.SetVehicleProperties(vehicle, vehicleProps) + local playerPed = PlayerPedId() + TaskWarpPedIntoVehicle(playerPed, vehicle, -1) + end) - TriggerServerEvent("esx_society:removeVehicleFromGarage", "mechanic", vehicleProps) + TriggerServerEvent('esx_society:removeVehicleFromGarage', 'mechanic', vehicleProps) end) - end, "mechanic") + end, 'mechanic') else local elements2 = { - { unselectable = true, icon = "fas fa-car", title = _U("service_vehicle") }, - { icon = "fas fa-truck", title = _U("flat_bed"), value = "flatbed" }, - { icon = "fas fa-truck", title = _U("tow_truck"), value = "towtruck2" }, + {unselectable = true, icon = "fas fa-car", title = TranslateCap('service_vehicle')}, + {icon = "fas fa-truck", title = TranslateCap('flat_bed'), value = 'flatbed'}, + {icon = "fas fa-truck", title = TranslateCap('tow_truck'), value = 'towtruck2'} } - if - Config.EnablePlayerManagement - and ESX.PlayerData.job - and ( - ESX.PlayerData.job.grade_name == "boss" - or ESX.PlayerData.job.grade_name == "chief" - or ESX.PlayerData.job.grade_name == "experimente" - ) - then - elements2[#elements2 + 1] = { - icon = "fas fa-truck", - title = "Slamvan", - value = "slamvan3", + if Config.EnablePlayerManagement and ESX.PlayerData.job and (ESX.PlayerData.job.grade_name == 'boss' or ESX.PlayerData.job.grade_name == 'chief' or ESX.PlayerData.job.grade_name == 'experimente') then + elements2[#elements2+1] = { + icon = 'fas fa-truck', + title = 'Slamvan', + value = 'slamvan3' } end - ESX.OpenContext("right", elements2, function(menu2, element2) + ESX.OpenContext("right", elements2, function(menu2,element2) if Config.MaxInService == -1 then ESX.CloseContext() - ESX.Game.SpawnVehicle( - element2.value, - Config.Zones.VehicleSpawnPoint.Pos, - 90.0, - function(vehicle) - local playerPed = PlayerPedId() - TaskWarpPedIntoVehicle(playerPed, vehicle, -1) - end - ) + ESX.Game.SpawnVehicle(element2.value, Config.Zones.VehicleSpawnPoint.Pos, 90.0, function(vehicle) + local playerPed = PlayerPedId() + TaskWarpPedIntoVehicle(playerPed, vehicle, -1) + end) else - ESX.TriggerServerCallback( - "esx_service:enableService", - function(canTakeService, maxInService, inServiceCount) - if canTakeService then - ESX.CloseContext() - ESX.Game.SpawnVehicle( - element2.value, - Config.Zones.VehicleSpawnPoint.Pos, - 90.0, - function(vehicle) - local playerPed = PlayerPedId() - TaskWarpPedIntoVehicle(playerPed, vehicle, -1) - end - ) - else - ESX.ShowNotification(_U("service_full") .. inServiceCount .. "/" .. maxInService) - end - end, - "mechanic" - ) + ESX.TriggerServerCallback('esx_service:enableService', function(canTakeService, maxInService, inServiceCount) + if canTakeService then + ESX.CloseContext() + ESX.Game.SpawnVehicle(element2.value, Config.Zones.VehicleSpawnPoint.Pos, 90.0, function(vehicle) + local playerPed = PlayerPedId() + TaskWarpPedIntoVehicle(playerPed, vehicle, -1) + end) + else + ESX.ShowNotification(TranslateCap('service_full') .. inServiceCount .. '/' .. maxInService) + end + end, 'mechanic') end end) end - elseif element.value == "cloakroom" then + elseif element.value == 'cloakroom' then ESX.CloseContext() - ESX.TriggerServerCallback("esx_skin:getPlayerSkin", function(skin, jobSkin) + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin) if skin.sex == 0 then - TriggerEvent("skinchanger:loadClothes", skin, jobSkin.skin_male) + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_male) else - TriggerEvent("skinchanger:loadClothes", skin, jobSkin.skin_female) + TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_female) end end) - elseif element.value == "cloakroom2" then + elseif element.value == 'cloakroom2' then ESX.CloseContext() - ESX.TriggerServerCallback("esx_skin:getPlayerSkin", function(skin, jobSkin) - TriggerEvent("skinchanger:loadSkin", skin) + ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin) + TriggerEvent('skinchanger:loadSkin', skin) end) - elseif Config.OxInventory and (element.value == "put_stock" or element.value == "get_stock") then - exports.ox_inventory:openInventory("stash", "society_mechanic") + elseif Config.OxInventory and (element.value == 'put_stock' or element.value == 'get_stock') then + exports.ox_inventory:openInventory('stash', 'society_mechanic') return ESX.CloseContext() - elseif element.value == "put_stock" then + elseif element.value == 'put_stock' then OpenPutStocksMenu() - elseif element.value == "get_stock" then + elseif element.value == 'get_stock' then OpenGetStocksMenu() - elseif element.value == "boss_actions" then - TriggerEvent("esx_society:openBossMenu", "mechanic", function(data, menu) - ESX.CloseContext() + elseif element.value == 'boss_actions' then + TriggerEvent('esx_society:openBossMenu', 'mechanic', function(data, menu) + ESX.CloseContext() end) end end, function(menu) - CurrentAction = "mechanic_actions_menu" - CurrentActionMsg = _U("open_actions") + CurrentAction = 'mechanic_actions_menu' + CurrentActionMsg = TranslateCap('open_actions') CurrentActionData = {} end) end function OpenMechanicHarvestMenu() - if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= "recrue" then + if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= 'recrue' then local elements = { - { unselectable = true, icon = "fas fa-gear", title = "Mechanic Harvest Menu" }, - { icon = "fas fa-gear", title = _U("gas_can"), value = "gaz_bottle" }, - { icon = "fas fa-gear", title = _U("repair_tools"), value = "fix_tool" }, - { icon = "fas fa-gear", title = _U("body_work_tools"), value = "caro_tool" }, + {unselectable = true, icon = "fas fa-gear", title = "Mechanic Harvest Menu"}, + {icon = "fas fa-gear", title = TranslateCap('gas_can'), value = 'gaz_bottle'}, + {icon = "fas fa-gear", title = TranslateCap('repair_tools'), value = 'fix_tool'}, + {icon = "fas fa-gear", title = TranslateCap('body_work_tools'), value = 'caro_tool'} } - ESX.OpenContext("right", elements, function(menu, element) - if element.value == "gaz_bottle" then - TriggerServerEvent("esx_mechanicjob:startHarvest") - elseif element.value == "fix_tool" then - TriggerServerEvent("esx_mechanicjob:startHarvest2") - elseif element.value == "caro_tool" then - TriggerServerEvent("esx_mechanicjob:startHarvest3") + ESX.OpenContext("right", elements, function(menu,element) + if element.value == 'gaz_bottle' then + TriggerServerEvent('esx_mechanicjob:startHarvest') + elseif element.value == 'fix_tool' then + TriggerServerEvent('esx_mechanicjob:startHarvest2') + elseif element.value == 'caro_tool' then + TriggerServerEvent('esx_mechanicjob:startHarvest3') end end, function(menu) - CurrentAction = "mechanic_harvest_menu" - CurrentActionMsg = _U("harvest_menu") + CurrentAction = 'mechanic_harvest_menu' + CurrentActionMsg = TranslateCap('harvest_menu') CurrentActionData = {} end) else - ESX.ShowNotification(_U("not_experienced_enough")) + ESX.ShowNotification(TranslateCap('not_experienced_enough')) end end function OpenMechanicCraftMenu() - if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= "recrue" then + if Config.EnablePlayerManagement and ESX.PlayerData.job and ESX.PlayerData.job.grade_name ~= 'recrue' then local elements = { - { unselectable = true, icon = "fas fa-gear", title = "Mechanic Craft Menu" }, - { icon = "fas fa-gear", title = _U("blowtorch"), value = "blow_pipe" }, - { icon = "fas fa-gear", title = _U("repair_kit"), value = "fix_kit" }, - { icon = "fas fa-gear", title = _U("body_kit"), value = "caro_kit" }, + {unselectable = true, icon = "fas fa-gear", title = "Mechanic Craft Menu"}, + {icon = "fas fa-gear", title = TranslateCap('blowtorch'), value = 'blow_pipe'}, + {icon = "fas fa-gear", title = TranslateCap('repair_kit'), value = 'fix_kit'}, + {icon = "fas fa-gear", title = TranslateCap('body_kit'), value = 'caro_kit'} } - ESX.OpenContext("right", elements, function(menu, element) - if element.value == "blow_pipe" then - TriggerServerEvent("esx_mechanicjob:startCraft") - elseif element.value == "fix_kit" then - TriggerServerEvent("esx_mechanicjob:startCraft2") - elseif element.value == "caro_kit" then - TriggerServerEvent("esx_mechanicjob:startCraft3") + ESX.OpenContext("right", elements, function(menu,element) + if element.value == 'blow_pipe' then + TriggerServerEvent('esx_mechanicjob:startCraft') + elseif element.value == 'fix_kit' then + TriggerServerEvent('esx_mechanicjob:startCraft2') + elseif element.value == 'caro_kit' then + TriggerServerEvent('esx_mechanicjob:startCraft3') end end, function(menu) - CurrentAction = "mechanic_craft_menu" - CurrentActionMsg = _U("craft_menu") + CurrentAction = 'mechanic_craft_menu' + CurrentActionMsg = TranslateCap('craft_menu') CurrentActionData = {} end) else - ESX.ShowNotification(_U("not_experienced_enough")) + ESX.ShowNotification(TranslateCap('not_experienced_enough')) end end function OpenMobileMechanicActionsMenu() local elements = { - { unselectable = true, icon = "fas fa-gear", title = _U("mechanic") }, - { icon = "fas fa-gear", title = _U("billing"), value = "billing" }, - { icon = "fas fa-gear", title = _U("hijack"), value = "hijack_vehicle" }, - { icon = "fas fa-gear", title = _U("repair"), value = "fix_vehicle" }, - { icon = "fas fa-gear", title = _U("clean"), value = "clean_vehicle" }, - { icon = "fas fa-gear", title = _U("imp_veh"), value = "del_vehicle" }, - { icon = "fas fa-gear", title = _U("flat_bed"), value = "dep_vehicle" }, - { icon = "fas fa-gear", title = _U("place_objects"), value = "object_spawner" }, + {unselectable = true, icon = "fas fa-gear", title = TranslateCap('mechanic')}, + {icon = "fas fa-gear", title = TranslateCap('billing'), value = 'billing'}, + {icon = "fas fa-gear", title = TranslateCap('hijack'), value = 'hijack_vehicle'}, + {icon = "fas fa-gear", title = TranslateCap('repair'), value = 'fix_vehicle'}, + {icon = "fas fa-gear", title = TranslateCap('clean'), value = 'clean_vehicle'}, + {icon = "fas fa-gear", title = TranslateCap('imp_veh'), value = 'del_vehicle'}, + {icon = "fas fa-gear", title = TranslateCap('flat_bed'), value = 'dep_vehicle'}, + {icon = "fas fa-gear", title = TranslateCap('place_objects'), value = 'object_spawner'} } - ESX.OpenContext("right", elements, function(menu, element) - if isBusy then - return - end + ESX.OpenContext("right", elements, function(menu,element) + if isBusy then return end if element.value == "billing" then local elements2 = { - { unselectable = true, icon = "fas fa-scroll", title = element.title }, - { - title = "Amount", - input = true, - inputType = "number", - inputMin = 1, - inputMax = 250000, - inputPlaceholder = "Amount to bill..", - }, - { icon = "fas fa-check-double", title = "Confirm", value = "confirm" }, + {unselectable = true, icon = "fas fa-scroll", title = element.title}, + {title = "Amount", input = true, inputType = "number", inputMin = 1, inputMax = 250000, inputPlaceholder = "Amount to bill.."}, + {icon = "fas fa-check-double", title = "Confirm", value = "confirm"} } - ESX.OpenContext("right", elements2, function(menu2, element2) + ESX.OpenContext("right", elements2, function(menu2,element2) local amount = tonumber(menu2.eles[2].inputValue) if amount == nil or amount < 0 then - ESX.ShowNotification(_U("amount_invalid"), "error") + ESX.ShowNotification(TranslateCap('amount_invalid'), "error") else local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer() if closestPlayer == -1 or closestDistance > 3.0 then - ESX.ShowNotification(_U("no_players_nearby"), "error") + ESX.ShowNotification(TranslateCap('no_players_nearby'), "error") else ESX.CloseContext() - TriggerServerEvent( - "esx_billing:sendBill", - GetPlayerServerId(closestPlayer), - "society_mechanic", - _U("mechanic"), - amount - ) + TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_mechanic', TranslateCap('mechanic'), amount) end end end) @@ -316,13 +266,13 @@ function OpenMobileMechanicActionsMenu() local coords = GetEntityCoords(playerPed) if IsPedSittingInAnyVehicle(playerPed) then - ESX.ShowNotification(_U("inside_vehicle")) + ESX.ShowNotification(TranslateCap('inside_vehicle')) return end if DoesEntityExist(vehicle) then isBusy = true - TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_WELDING", 0, true) + TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_WELDING', 0, true) CreateThread(function() Wait(10000) @@ -330,25 +280,25 @@ function OpenMobileMechanicActionsMenu() SetVehicleDoorsLockedForAllPlayers(vehicle, false) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("vehicle_unlocked")) + ESX.ShowNotification(TranslateCap('vehicle_unlocked')) isBusy = false end) else - ESX.ShowNotification(_U("no_vehicle_nearby")) + ESX.ShowNotification(TranslateCap('no_vehicle_nearby')) end elseif element.value == "fix_vehicle" then local playerPed = PlayerPedId() - local vehicle = ESX.Game.GetVehicleInDirection() - local coords = GetEntityCoords(playerPed) + local vehicle = ESX.Game.GetVehicleInDirection() + local coords = GetEntityCoords(playerPed) if IsPedSittingInAnyVehicle(playerPed) then - ESX.ShowNotification(_U("inside_vehicle")) + ESX.ShowNotification(TranslateCap('inside_vehicle')) return end if DoesEntityExist(vehicle) then isBusy = true - TaskStartScenarioInPlace(playerPed, "PROP_HUMAN_BUM_BIN", 0, true) + TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true) CreateThread(function() Wait(20000) @@ -358,36 +308,36 @@ function OpenMobileMechanicActionsMenu() SetVehicleEngineOn(vehicle, true, true) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("vehicle_repaired")) + ESX.ShowNotification(TranslateCap('vehicle_repaired')) isBusy = false end) else - ESX.ShowNotification(_U("no_vehicle_nearby")) + ESX.ShowNotification(TranslateCap('no_vehicle_nearby')) end elseif element.value == "clean_vehicle" then local playerPed = PlayerPedId() - local vehicle = ESX.Game.GetVehicleInDirection() - local coords = GetEntityCoords(playerPed) + local vehicle = ESX.Game.GetVehicleInDirection() + local coords = GetEntityCoords(playerPed) if IsPedSittingInAnyVehicle(playerPed) then - ESX.ShowNotification(_U("inside_vehicle")) + ESX.ShowNotification(TranslateCap('inside_vehicle')) return end if DoesEntityExist(vehicle) then isBusy = true - TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_MAID_CLEAN", 0, true) + TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_MAID_CLEAN', 0, true) CreateThread(function() Wait(10000) SetVehicleDirtLevel(vehicle, 0) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("vehicle_cleaned")) + ESX.ShowNotification(TranslateCap('vehicle_cleaned')) isBusy = false end) else - ESX.ShowNotification(_U("no_vehicle_nearby")) + ESX.ShowNotification(TranslateCap('no_vehicle_nearby')) end elseif element.value == "del_vehicle" then local playerPed = PlayerPedId() @@ -396,19 +346,19 @@ function OpenMobileMechanicActionsMenu() local vehicle = GetVehiclePedIsIn(playerPed, false) if GetPedInVehicleSeat(vehicle, -1) == playerPed then - ESX.ShowNotification(_U("vehicle_impounded")) + ESX.ShowNotification(TranslateCap('vehicle_impounded')) ESX.Game.DeleteVehicle(vehicle) else - ESX.ShowNotification(_U("must_seat_driver")) + ESX.ShowNotification(TranslateCap('must_seat_driver')) end else local vehicle = ESX.Game.GetVehicleInDirection() if DoesEntityExist(vehicle) then - ESX.ShowNotification(_U("vehicle_impounded")) + ESX.ShowNotification(TranslateCap('vehicle_impounded')) ESX.Game.DeleteVehicle(vehicle) else - ESX.ShowNotification(_U("must_near")) + ESX.ShowNotification(TranslateCap('must_near')) end end elseif element.value == "dep_vehicle" then @@ -425,119 +375,85 @@ function OpenMobileMechanicActionsMenu() if targetVehicle ~= 0 then if not IsPedInAnyVehicle(playerPed, true) then if vehicle ~= targetVehicle then - AttachEntityToEntity( - targetVehicle, - vehicle, - 20, - -0.5, - -5.0, - 1.0, - 0.0, - 0.0, - 0.0, - false, - false, - false, - false, - 20, - true - ) + AttachEntityToEntity(targetVehicle, vehicle, 20, -0.5, -5.0, 1.0, 0.0, 0.0, 0.0, false, false, false, false, 20, true) CurrentlyTowedVehicle = targetVehicle - ESX.ShowNotification(_U("vehicle_success_attached")) + ESX.ShowNotification(TranslateCap('vehicle_success_attached')) if NPCOnJob then if NPCTargetTowable == targetVehicle then - ESX.ShowNotification(_U("please_drop_off")) + ESX.ShowNotification(TranslateCap('please_drop_off')) Config.Zones.VehicleDelivery.Type = 1 - if Blips["NPCTargetTowableZone"] then - RemoveBlip(Blips["NPCTargetTowableZone"]) - Blips["NPCTargetTowableZone"] = nil + if Blips['NPCTargetTowableZone'] then + RemoveBlip(Blips['NPCTargetTowableZone']) + Blips['NPCTargetTowableZone'] = nil end - Blips["NPCDelivery"] = AddBlipForCoord( - Config.Zones.VehicleDelivery.Pos.x, - Config.Zones.VehicleDelivery.Pos.y, - Config.Zones.VehicleDelivery.Pos.z - ) - SetBlipRoute(Blips["NPCDelivery"], true) + Blips['NPCDelivery'] = AddBlipForCoord(Config.Zones.VehicleDelivery.Pos.x, Config.Zones.VehicleDelivery.Pos.y, Config.Zones.VehicleDelivery.Pos.z) + SetBlipRoute(Blips['NPCDelivery'], true) end end else - ESX.ShowNotification(_U("cant_attach_own_tt")) + ESX.ShowNotification(TranslateCap('cant_attach_own_tt')) end end else - ESX.ShowNotification(_U("no_veh_att")) + ESX.ShowNotification(TranslateCap('no_veh_att')) end else - AttachEntityToEntity( - CurrentlyTowedVehicle, - vehicle, - 20, - -0.5, - -12.0, - 1.0, - 0.0, - 0.0, - 0.0, - false, - false, - false, - false, - 20, - true - ) + AttachEntityToEntity(CurrentlyTowedVehicle, vehicle, 20, -0.5, -12.0, 1.0, 0.0, 0.0, 0.0, false, false, false, false, 20, true) DetachEntity(CurrentlyTowedVehicle, true, true) if NPCOnJob then if NPCTargetDeleterZone then + if CurrentlyTowedVehicle == NPCTargetTowable then ESX.Game.DeleteVehicle(NPCTargetTowable) - TriggerServerEvent("esx_mechanicjob:onNPCJobMissionCompleted") + TriggerServerEvent('esx_mechanicjob:onNPCJobMissionCompleted') StopNPCJob() NPCTargetDeleterZone = false else - ESX.ShowNotification(_U("not_right_veh")) + ESX.ShowNotification(TranslateCap('not_right_veh')) end + else - ESX.ShowNotification(_U("not_right_place")) + ESX.ShowNotification(TranslateCap('not_right_place')) end end CurrentlyTowedVehicle = nil - ESX.ShowNotification(_U("veh_det_succ")) + ESX.ShowNotification(TranslateCap('veh_det_succ')) end else - ESX.ShowNotification(_U("imp_flatbed")) + ESX.ShowNotification(TranslateCap('imp_flatbed')) end elseif element.value == "object_spawner" then local playerPed = PlayerPedId() if IsPedSittingInAnyVehicle(playerPed) then - ESX.ShowNotification(_U("inside_vehicle")) + ESX.ShowNotification(TranslateCap('inside_vehicle')) return end local elements2 = { - { unselectable = true, icon = "fas fa-object", title = _U("objects") }, - { icon = "fas fa-object", title = _U("roadcone"), value = "prop_roadcone02a" }, - { icon = "fas fa-object", title = _U("toolbox"), value = "prop_toolchest_01" }, + {unselectable= true, icon = "fas fa-object", title = TranslateCap('objects')}, + {icon = "fas fa-object", title = TranslateCap('roadcone'), value = 'prop_roadcone02a'}, + {icon = "fas fa-object", title = TranslateCap('toolbox'), value = 'prop_toolchest_01'} } - ESX.OpenContext("right", elements2, function(menuObj, elementObj) - local model = elementObj.value - local coords = GetEntityCoords(playerPed) + ESX.OpenContext("right", elements2, function(menuObj,elementObj) + local model = elementObj.value + local coords = GetEntityCoords(playerPed) local forward = GetEntityForwardVector(playerPed) local x, y, z = table.unpack(coords + forward * 1.0) - if model == "prop_roadcone02a" then + if model == 'prop_roadcone02a' then z = z - 2.0 - elseif model == "prop_toolchest_01" then + elseif model == 'prop_toolchest_01' then z = z - 2.0 end - ESX.Game.SpawnObject(model, { x = x, y = y, z = z }, function(obj) + ESX.Game.SpawnObject(model, {x = x, y = y, z = z}, function(obj) SetEntityHeading(obj, GetEntityHeading(playerPed)) PlaceObjectOnGroundProperly(obj) end) @@ -547,43 +463,36 @@ function OpenMobileMechanicActionsMenu() end function OpenGetStocksMenu() - ESX.TriggerServerCallback("esx_mechanicjob:getStockItems", function(items) + ESX.TriggerServerCallback('esx_mechanicjob:getStockItems', function(items) local elements = { - { unselectable = true, icon = "fas fa-box", title = _U("mechanic_stock") }, + {unselectable = true, icon = "fas fa-box", title = TranslateCap('mechanic_stock')} } - for i = 1, #items, 1 do - elements[#elements + 1] = { - icon = "fas fa-box", - title = "x" .. items[i].count .. " " .. items[i].label, - value = items[i].name, + for i=1, #items, 1 do + elements[#elements+1] = { + icon = 'fas fa-box', + title = 'x' .. items[i].count .. ' ' .. items[i].label, + value = items[i].name } end - ESX.OpenContext("right", elements, function(menu, element) + ESX.OpenContext("right", elements, function(menu,element) local itemName = element.value local elements2 = { - { unselectable = true, icon = "fas fa-box", title = element.title }, - { - title = "Amount", - input = true, - inputType = "number", - inputMin = 1, - inputMax = 100, - inputPlaceholder = "Amount to withdraw..", - }, - { icon = "fas fa-check-double", title = "Confirm", value = "confirm" }, + {unselectable = true, icon = "fas fa-box", title = element.title}, + {title = "Amount", input = true, inputType = "number", inputMin = 1, inputMax = 100, inputPlaceholder = "Amount to withdraw.."}, + {icon = "fas fa-check-double", title = "Confirm", value = "confirm"} } - ESX.OpenContext("right", elements2, function(menu2, element2) + ESX.OpenContext("right", elements2, function(menu2,element2) local count = tonumber(menu2.eles[2].inputValue) if count == nil then - ESX.ShowNotification(_U("invalid_quantity")) + ESX.ShowNotification(TranslateCap('invalid_quantity')) else ESX.CloseContext() - TriggerServerEvent("esx_mechanicjob:getStockItem", itemName, count) + TriggerServerEvent('esx_mechanicjob:getStockItem', itemName, count) Wait(1000) OpenGetStocksMenu() @@ -594,48 +503,41 @@ function OpenGetStocksMenu() end function OpenPutStocksMenu() - ESX.TriggerServerCallback("esx_mechanicjob:getPlayerInventory", function(inventory) + ESX.TriggerServerCallback('esx_mechanicjob:getPlayerInventory', function(inventory) local elements = { - { unselectable = true, icon = "fas fa-box", title = _U("inventory") }, + {unselectable = true, icon = "fas fa-box", title = TranslateCap('inventory')} } - for i = 1, #inventory.items, 1 do + for i=1, #inventory.items, 1 do local item = inventory.items[i] if item.count > 0 then - elements[#elements + 1] = { - icon = "fas fa-box", - title = item.label .. " x" .. item.count, - type = "item_standard", - value = item.name, + elements[#elements+1] = { + icon = 'fas fa-box', + title = item.label .. ' x' .. item.count, + type = 'item_standard', + value = item.name } end end - ESX.OpenContext("right", elements, function(menu, element) + ESX.OpenContext("right", elements, function(menu,element) local itemName = element.value local elements2 = { - { unselectable = true, icon = "fas fa-box", title = element.title }, - { - title = "Amount", - input = true, - inputType = "number", - inputMin = 1, - inputMax = 100, - inputPlaceholder = "Amount to deposit..", - }, - { icon = "fas fa-check-double", title = "Confirm", value = "confirm" }, + {unselectable = true, icon = "fas fa-box", title = element.title}, + {title = "Amount", input = true, inputType = "number", inputMin = 1, inputMax = 100, inputPlaceholder = "Amount to deposit.."}, + {icon = "fas fa-check-double", title = "Confirm", value = "confirm"} } - ESX.OpenContext("right", elements2, function(menu2, element2) + ESX.OpenContext("right", elements2, function(menu2,element2) local count = tonumber(menu2.eles[2].inputValue) if count == nil then - ESX.ShowNotification(_U("invalid_quantity")) + ESX.ShowNotification(TranslateCap('invalid_quantity')) else ESX.CloseContext() - TriggerServerEvent("esx_mechanicjob:putStockItems", itemName, count) + TriggerServerEvent('esx_mechanicjob:putStockItems', itemName, count) Wait(1000) OpenPutStocksMenu() @@ -645,8 +547,8 @@ function OpenPutStocksMenu() end) end -RegisterNetEvent("esx_mechanicjob:onHijack") -AddEventHandler("esx_mechanicjob:onHijack", function() +RegisterNetEvent('esx_mechanicjob:onHijack') +AddEventHandler('esx_mechanicjob:onHijack', function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) @@ -660,7 +562,7 @@ AddEventHandler("esx_mechanicjob:onHijack", function() end local chance = math.random(100) - local alarm = math.random(100) + local alarm = math.random(100) if DoesEntityExist(vehicle) then if alarm <= 33 then @@ -668,7 +570,7 @@ AddEventHandler("esx_mechanicjob:onHijack", function() StartVehicleAlarm(vehicle) end - TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_WELDING", 0, true) + TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_WELDING', 0, true) CreateThread(function() Wait(10000) @@ -676,9 +578,9 @@ AddEventHandler("esx_mechanicjob:onHijack", function() SetVehicleDoorsLocked(vehicle, 1) SetVehicleDoorsLockedForAllPlayers(vehicle, false) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("veh_unlocked")) + ESX.ShowNotification(TranslateCap('veh_unlocked')) else - ESX.ShowNotification(_U("hijack_failed")) + ESX.ShowNotification(TranslateCap('hijack_failed')) ClearPedTasksImmediately(playerPed) end end) @@ -686,8 +588,8 @@ AddEventHandler("esx_mechanicjob:onHijack", function() end end) -RegisterNetEvent("esx_mechanicjob:onCarokit") -AddEventHandler("esx_mechanicjob:onCarokit", function() +RegisterNetEvent('esx_mechanicjob:onCarokit') +AddEventHandler('esx_mechanicjob:onCarokit', function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) @@ -701,20 +603,20 @@ AddEventHandler("esx_mechanicjob:onCarokit", function() end if DoesEntityExist(vehicle) then - TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_HAMMERING", 0, true) + TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_HAMMERING', 0, true) CreateThread(function() Wait(10000) SetVehicleFixed(vehicle) SetVehicleDeformationFixed(vehicle) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("body_repaired")) + ESX.ShowNotification(TranslateCap('body_repaired')) end) end end end) -RegisterNetEvent("esx_mechanicjob:onFixkit") -AddEventHandler("esx_mechanicjob:onFixkit", function() +RegisterNetEvent('esx_mechanicjob:onFixkit') +AddEventHandler('esx_mechanicjob:onFixkit', function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) @@ -728,71 +630,72 @@ AddEventHandler("esx_mechanicjob:onFixkit", function() end if DoesEntityExist(vehicle) then - TaskStartScenarioInPlace(playerPed, "PROP_HUMAN_BUM_BIN", 0, true) + TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true) CreateThread(function() Wait(20000) SetVehicleFixed(vehicle) SetVehicleDeformationFixed(vehicle) SetVehicleUndriveable(vehicle, false) ClearPedTasksImmediately(playerPed) - ESX.ShowNotification(_U("veh_repaired")) + ESX.ShowNotification(TranslateCap('veh_repaired')) end) end end end) -RegisterNetEvent("esx:playerLoaded") -AddEventHandler("esx:playerLoaded", function(xPlayer) +RegisterNetEvent('esx:playerLoaded') +AddEventHandler('esx:playerLoaded', function(xPlayer) ESX.PlayerData = xPlayer ESX.PlayerLoaded = true end) -RegisterNetEvent("esx:setJob") -AddEventHandler("esx:setJob", function(job) +RegisterNetEvent('esx:setJob') +AddEventHandler('esx:setJob', function(job) ESX.PlayerData.job = job end) -AddEventHandler("esx_mechanicjob:hasEnteredMarker", function(zone) - if zone == "NPCJobTargetTowable" then - elseif zone == "VehicleDelivery" then +AddEventHandler('esx_mechanicjob:hasEnteredMarker', function(zone) + if zone == 'NPCJobTargetTowable' then + + elseif zone =='VehicleDelivery' then NPCTargetDeleterZone = true - elseif zone == "MechanicActions" then - CurrentAction = "mechanic_actions_menu" - CurrentActionMsg = _U("open_actions") + elseif zone == 'MechanicActions' then + CurrentAction = 'mechanic_actions_menu' + CurrentActionMsg = TranslateCap('open_actions') CurrentActionData = {} - elseif zone == "Garage" then - CurrentAction = "mechanic_harvest_menu" - CurrentActionMsg = _U("harvest_menu") + elseif zone == 'Garage' then + CurrentAction = 'mechanic_harvest_menu' + CurrentActionMsg = TranslateCap('harvest_menu') CurrentActionData = {} - elseif zone == "Craft" then - CurrentAction = "mechanic_craft_menu" - CurrentActionMsg = _U("craft_menu") + elseif zone == 'Craft' then + CurrentAction = 'mechanic_craft_menu' + CurrentActionMsg = TranslateCap('craft_menu') CurrentActionData = {} - elseif zone == "VehicleDeleter" then + elseif zone == 'VehicleDeleter' then local playerPed = PlayerPedId() if IsPedInAnyVehicle(playerPed, false) then - local vehicle = GetVehiclePedIsIn(playerPed, false) + local vehicle = GetVehiclePedIsIn(playerPed, false) - CurrentAction = "delete_vehicle" - CurrentActionMsg = _U("veh_stored") - CurrentActionData = { vehicle = vehicle } + CurrentAction = 'delete_vehicle' + CurrentActionMsg = TranslateCap('veh_stored') + CurrentActionData = {vehicle = vehicle} end end ESX.TextUI(CurrentActionMsg) end) -AddEventHandler("esx_mechanicjob:hasExitedMarker", function(zone) - if zone == "VehicleDelivery" then +AddEventHandler('esx_mechanicjob:hasExitedMarker', function(zone) + if zone =='VehicleDelivery' then NPCTargetDeleterZone = false - elseif zone == "Craft" then - TriggerServerEvent("esx_mechanicjob:stopCraft") - TriggerServerEvent("esx_mechanicjob:stopCraft2") - TriggerServerEvent("esx_mechanicjob:stopCraft3") - elseif zone == "Garage" then - TriggerServerEvent("esx_mechanicjob:stopHarvest") - TriggerServerEvent("esx_mechanicjob:stopHarvest2") - TriggerServerEvent("esx_mechanicjob:stopHarvest3") + elseif zone == 'Craft' then + TriggerServerEvent('esx_mechanicjob:stopCraft') + TriggerServerEvent('esx_mechanicjob:stopCraft2') + TriggerServerEvent('esx_mechanicjob:stopCraft3') + elseif zone == 'Garage' then + TriggerServerEvent('esx_mechanicjob:stopHarvest') + TriggerServerEvent('esx_mechanicjob:stopHarvest2') + TriggerServerEvent('esx_mechanicjob:stopHarvest3') end CurrentAction = nil @@ -800,33 +703,33 @@ AddEventHandler("esx_mechanicjob:hasExitedMarker", function(zone) ESX.HideUI() end) -AddEventHandler("esx_mechanicjob:hasEnteredEntityZone", function(entity) +AddEventHandler('esx_mechanicjob:hasEnteredEntityZone', function(entity) local playerPed = PlayerPedId() - if ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" and not IsPedInAnyVehicle(playerPed, false) then - CurrentAction = "remove_entity" - CurrentActionMsg = _U("press_remove_obj") - CurrentActionData = { entity = entity } + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' and not IsPedInAnyVehicle(playerPed, false) then + CurrentAction = 'remove_entity' + CurrentActionMsg = TranslateCap('press_remove_obj') + CurrentActionData = {entity = entity} ESX.TextUI(CurrentActionMsg) end end) -AddEventHandler("esx_mechanicjob:hasExitedEntityZone", function(entity) - if CurrentAction == "remove_entity" then +AddEventHandler('esx_mechanicjob:hasExitedEntityZone', function(entity) + if CurrentAction == 'remove_entity' then CurrentAction = nil end ESX.HideUI() end) -RegisterNetEvent("esx_phone:loaded") -AddEventHandler("esx_phone:loaded", function(phoneNumber, contacts) +RegisterNetEvent('esx_phone:loaded') +AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts) local specialContact = { - name = _U("mechanic"), - number = "mechanic", - base64Icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAA4BJREFUWIXtll9oU3cUx7/nJA02aSSlFouWMnXVB0ejU3wcRteHjv1puoc9rA978cUi2IqgRYWIZkMwrahUGfgkFMEZUdg6C+u21z1o3fbgqigVi7NzUtNcmsac40Npltz7S3rvUHzxQODec87vfD+/e0/O/QFv7Q0beV3QeXqmgV74/7H7fZJvuLwv8q/Xeux1gUrNBpN/nmtavdaqDqBK8VT2RDyV2VHmF1lvLERSBtCVynzYmcp+A9WqT9kcVKX4gHUehF0CEVY+1jYTTIwvt7YSIQnCTvsSUYz6gX5uDt7MP7KOKuQAgxmqQ+neUA+I1B1AiXi5X6ZAvKrabirmVYFwAMRT2RMg7F9SyKspvk73hfrtbkMPyIhA5FVqi0iBiEZMMQdAui/8E4GPv0oAJkpc6Q3+6goAAGpWBxNQmTLFmgL3jSJNgQdGv4pMts2EKm7ICJB/aG0xNdz74VEk13UYCx1/twPR8JjDT8wttyLZtkoAxSb8ZDCz0gdfKxWkFURf2v9qTYH7SK7rQIDn0P3nA0ehixvfwZwE0X9vBE/mW8piohhl1WH18UQBhYnre8N/L8b8xQvlx4ACbB4NnzaeRYDnKm0EALCMLXy84hwuTCXL/ExoB1E7qcK/8NCLIq5HcTT0i6u8TYbXUM1cAyyveVq8Xls7XhYrvY/4n3gC8C+dsmAzL1YUiyfWxvHzsy/w/dNd+KjhW2yvv/RfXr7x9QDcmo1he2RBiCCI1Q8jVj9szPNixVfgz+UiIGyDSrcoRu2J16d3I6e1VYvNSQjXpnucAcEPUOkGYZs/l4uUhowt/3kqu1UIv9n90fAY9jT3YBlbRvFTD4fw++wHjhiTRL/bG75t0jI2ITcHb5om4Xgmhv57xpGOg3d/NIqryOR7z+r+MC6qBJB/ZB2t9Om1D5lFm843G/3E3HI7Yh1xDRAfzLQr5EClBf/HBHK462TG2J0OABXeyWDPZ8VqxmBWYscpyghwtTd4EKpDTjCZdCNmzFM9k+4LHXIFACJN94Z6FiFEpKDQw9HndWsEuhnADVMhAUaYJBp9XrcGQKJ4qFE9k+6r2+MG3k5N8VQ22TVglbX2ZwOzX2VvNKr91zmY6S7N6zqZicVT2WNLyVSehESaBhxnOALfMeYX+K/S2yv7wmMAlvwyuR7FxQUyf0fgc/jztfkJr7XeGgC8BJJgWNV8ImT+AAAAAElFTkSuQmCC", + name = TranslateCap('mechanic'), + number = 'mechanic', + base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAA4BJREFUWIXtll9oU3cUx7/nJA02aSSlFouWMnXVB0ejU3wcRteHjv1puoc9rA978cUi2IqgRYWIZkMwrahUGfgkFMEZUdg6C+u21z1o3fbgqigVi7NzUtNcmsac40Npltz7S3rvUHzxQODec87vfD+/e0/O/QFv7Q0beV3QeXqmgV74/7H7fZJvuLwv8q/Xeux1gUrNBpN/nmtavdaqDqBK8VT2RDyV2VHmF1lvLERSBtCVynzYmcp+A9WqT9kcVKX4gHUehF0CEVY+1jYTTIwvt7YSIQnCTvsSUYz6gX5uDt7MP7KOKuQAgxmqQ+neUA+I1B1AiXi5X6ZAvKrabirmVYFwAMRT2RMg7F9SyKspvk73hfrtbkMPyIhA5FVqi0iBiEZMMQdAui/8E4GPv0oAJkpc6Q3+6goAAGpWBxNQmTLFmgL3jSJNgQdGv4pMts2EKm7ICJB/aG0xNdz74VEk13UYCx1/twPR8JjDT8wttyLZtkoAxSb8ZDCz0gdfKxWkFURf2v9qTYH7SK7rQIDn0P3nA0ehixvfwZwE0X9vBE/mW8piohhl1WH18UQBhYnre8N/L8b8xQvlx4ACbB4NnzaeRYDnKm0EALCMLXy84hwuTCXL/ExoB1E7qcK/8NCLIq5HcTT0i6u8TYbXUM1cAyyveVq8Xls7XhYrvY/4n3gC8C+dsmAzL1YUiyfWxvHzsy/w/dNd+KjhW2yvv/RfXr7x9QDcmo1he2RBiCCI1Q8jVj9szPNixVfgz+UiIGyDSrcoRu2J16d3I6e1VYvNSQjXpnucAcEPUOkGYZs/l4uUhowt/3kqu1UIv9n90fAY9jT3YBlbRvFTD4fw++wHjhiTRL/bG75t0jI2ITcHb5om4Xgmhv57xpGOg3d/NIqryOR7z+r+MC6qBJB/ZB2t9Om1D5lFm843G/3E3HI7Yh1xDRAfzLQr5EClBf/HBHK462TG2J0OABXeyWDPZ8VqxmBWYscpyghwtTd4EKpDTjCZdCNmzFM9k+4LHXIFACJN94Z6FiFEpKDQw9HndWsEuhnADVMhAUaYJBp9XrcGQKJ4qFE9k+6r2+MG3k5N8VQ22TVglbX2ZwOzX2VvNKr91zmY6S7N6zqZicVT2WNLyVSehESaBhxnOALfMeYX+K/S2yv7wmMAlvwyuR7FxQUyf0fgc/jztfkJr7XeGgC8BJJgWNV8ImT+AAAAAElFTkSuQmCC' } - TriggerEvent("esx_phone:addSpecialContact", specialContact.name, specialContact.number, specialContact.base64Icon) + TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon) end) -- Pop NPC mission vehicle when inside area @@ -837,10 +740,10 @@ CreateThread(function() if NPCTargetTowableZone and not NPCHasSpawnedTowable then Sleep = 0 local coords = GetEntityCoords(PlayerPedId()) - local zone = Config.Zones[NPCTargetTowableZone] + local zone = Config.Zones[NPCTargetTowableZone] if #(coords - zone.Pos) < Config.NPCSpawnDistance then - local model = Config.Vehicles[GetRandomIntInRange(1, #Config.Vehicles)] + local model = Config.Vehicles[GetRandomIntInRange(1, #Config.Vehicles)] ESX.Game.SpawnVehicle(model, zone.Pos, 0, function(vehicle) NPCTargetTowable = vehicle @@ -853,34 +756,30 @@ CreateThread(function() if NPCTargetTowableZone and NPCHasSpawnedTowable and not NPCHasBeenNextToTowable then Sleep = 500 local coords = GetEntityCoords(PlayerPedId()) - local zone = Config.Zones[NPCTargetTowableZone] + local zone = Config.Zones[NPCTargetTowableZone] if #(coords - zone.Pos) < Config.NPCNextToDistance then Sleep = 0 - ESX.ShowNotification(_U("please_tow")) + ESX.ShowNotification(TranslateCap('please_tow')) NPCHasBeenNextToTowable = true end end - Wait(Sleep) + Wait(Sleep) end end) -- Create Blips CreateThread(function() - local blip = AddBlipForCoord( - Config.Zones.MechanicActions.Pos.x, - Config.Zones.MechanicActions.Pos.y, - Config.Zones.MechanicActions.Pos.z - ) + local blip = AddBlipForCoord(Config.Zones.MechanicActions.Pos.x, Config.Zones.MechanicActions.Pos.y, Config.Zones.MechanicActions.Pos.z) - SetBlipSprite(blip, 446) + SetBlipSprite (blip, 446) SetBlipDisplay(blip, 4) - SetBlipScale(blip, 1.0) - SetBlipColour(blip, 5) + SetBlipScale (blip, 1.0) + SetBlipColour (blip, 5) SetBlipAsShortRange(blip, true) - BeginTextCommandSetBlipName("STRING") - AddTextComponentSubstringPlayerName(_U("mechanic")) + BeginTextCommandSetBlipName('STRING') + AddTextComponentSubstringPlayerName(TranslateCap('mechanic')) EndTextCommandSetBlipName(blip) end) @@ -889,44 +788,19 @@ CreateThread(function() while true do local Sleep = 2000 - if ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" then + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then Sleep = 500 local coords, letSleep = GetEntityCoords(PlayerPedId()), true - for k, v in pairs(Config.Zones) do + for k,v in pairs(Config.Zones) do if v.Type ~= -1 and #(coords - v.Pos) < Config.DrawDistance then Sleep = 0 - DrawMarker( - v.Type, - v.Pos.x, - v.Pos.y, - v.Pos.z, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - v.Size.x, - v.Size.y, - v.Size.z, - v.Color.r, - v.Color.g, - v.Color.b, - 100, - true, - true, - 2, - true, - nil, - nil, - false - ) + DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, true, true, 2, true, nil, nil, false) letSleep = false end end end - Wait(Sleep) + Wait(Sleep) end end) @@ -935,38 +809,39 @@ CreateThread(function() while true do local Sleep = 500 - if ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" then + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then + local coords = GetEntityCoords(PlayerPedId()) local isInMarker = false local currentZone = nil - for k, v in pairs(Config.Zones) do - if #(coords - v.Pos) < v.Size.x then + for k,v in pairs(Config.Zones) do + if(#(coords - v.Pos) < v.Size.x) then Sleep = 0 - isInMarker = true + isInMarker = true currentZone = k end end if (isInMarker and not HasAlreadyEnteredMarker) or (isInMarker and LastZone ~= currentZone) then HasAlreadyEnteredMarker = true - LastZone = currentZone - TriggerEvent("esx_mechanicjob:hasEnteredMarker", currentZone) + LastZone = currentZone + TriggerEvent('esx_mechanicjob:hasEnteredMarker', currentZone) end if not isInMarker and HasAlreadyEnteredMarker then HasAlreadyEnteredMarker = false - TriggerEvent("esx_mechanicjob:hasExitedMarker", LastZone) + TriggerEvent('esx_mechanicjob:hasExitedMarker', LastZone) end end - Wait(Sleep) + Wait(Sleep) end end) CreateThread(function() local trackedEntities = { - "prop_roadcone02a", - "prop_toolchest_01", + 'prop_roadcone02a', + 'prop_toolchest_01' } while true do @@ -978,28 +853,28 @@ CreateThread(function() local closestDistance = -1 local closestEntity = nil - for i = 1, #trackedEntities, 1 do + for i=1, #trackedEntities, 1 do local object = GetClosestObjectOfType(coords, 3.0, joaat(trackedEntities[i]), false, false, false) if DoesEntityExist(object) then local objCoords = GetEntityCoords(object) - local distance = #(coords - objCoords) + local distance = #(coords - objCoords) if closestDistance == -1 or closestDistance > distance then closestDistance = distance - closestEntity = object + closestEntity = object end end end if closestDistance ~= -1 and closestDistance <= 3.0 then if LastEntity ~= closestEntity then - TriggerEvent("esx_mechanicjob:hasEnteredEntityZone", closestEntity) + TriggerEvent('esx_mechanicjob:hasEnteredEntityZone', closestEntity) LastEntity = closestEntity end else if LastEntity then - TriggerEvent("esx_mechanicjob:hasExitedEntityZone", LastEntity) + TriggerEvent('esx_mechanicjob:hasExitedEntityZone', LastEntity) LastEntity = nil end end @@ -1009,72 +884,69 @@ end) -- Key Controls CreateThread(function() while true do - local sleep = 500 + local sleep = 500 if CurrentAction then sleep = 0 - if IsControlJustReleased(0, 38) and ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" then - if CurrentAction == "mechanic_actions_menu" then + if IsControlJustReleased(0, 38) and ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then + if CurrentAction == 'mechanic_actions_menu' then OpenMechanicActionsMenu() - elseif CurrentAction == "mechanic_harvest_menu" then + elseif CurrentAction == 'mechanic_harvest_menu' then OpenMechanicHarvestMenu() - elseif CurrentAction == "mechanic_craft_menu" then + elseif CurrentAction == 'mechanic_craft_menu' then OpenMechanicCraftMenu() - elseif CurrentAction == "delete_vehicle" then - if Config.EnableSocietyOwnedVehicles then - local vehicleProps = ESX.Game.GetVehicleProperties(CurrentActionData.vehicle) - TriggerServerEvent("esx_society:putVehicleInGarage", "mechanic", vehicleProps) - else - local entityModel = GetEntityModel(CurrentActionData.vehicle) + elseif CurrentAction == 'delete_vehicle' then + if Config.EnableSocietyOwnedVehicles then - if entityModel == `flatbed` or entityModel == `towtruck2` or entityModel == `slamvan3` then - TriggerServerEvent("esx_service:disableService", "mechanic") - end - end - ESX.Game.DeleteVehicle(CurrentActionData.vehicle) - elseif CurrentAction == "remove_entity" then - DeleteEntity(CurrentActionData.entity) + local vehicleProps = ESX.Game.GetVehicleProperties(CurrentActionData.vehicle) + TriggerServerEvent('esx_society:putVehicleInGarage', 'mechanic', vehicleProps) + else + local entityModel = GetEntityModel(CurrentActionData.vehicle) + + if entityModel == `flatbed` or entityModel == `towtruck2` or entityModel == `slamvan3` then + TriggerServerEvent('esx_service:disableService', 'mechanic') + end + end + ESX.Game.DeleteVehicle(CurrentActionData.vehicle) + elseif CurrentAction == 'remove_entity' then + DeleteEntity(CurrentActionData.entity) end CurrentAction = nil - end - end + end + end Wait(sleep) end end) -RegisterCommand("mechanicMenu", function() - if ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" then - OpenMobileMechanicActionsMenu() - end +RegisterCommand('mechanicMenu', function() + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then + OpenMobileMechanicActionsMenu() + end end, false) -RegisterCommand("mechanicjob", function() + + +RegisterCommand('mechanicjob', function() local playerPed = PlayerPedId() - if ESX.PlayerData.job and ESX.PlayerData.job.name == "mechanic" then - if NPCOnJob then - if GetGameTimer() - NPCLastCancel > 5 * 60000 then - StopNPCJob(true) - NPCLastCancel = GetGameTimer() - else - ESX.ShowNotification(_U("wait_five"), "error") - end - else - if - IsPedInAnyVehicle(playerPed, false) and IsVehicleModel(GetVehiclePedIsIn(playerPed, false), `flatbed`) - then - StartNPCJob() + if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then + if NPCOnJob then + if GetGameTimer() - NPCLastCancel > 5 * 60000 then + StopNPCJob(true) + NPCLastCancel = GetGameTimer() + else + ESX.ShowNotification(TranslateCap('wait_five'), "error") + end else - ESX.ShowNotification(_U("must_in_flatbed"), "error") + if IsPedInAnyVehicle(playerPed, false) and IsVehicleModel(GetVehiclePedIsIn(playerPed, false), `flatbed`) then + StartNPCJob() + else + ESX.ShowNotification(TranslateCap('must_in_flatbed'), "error") + end end end - end end, false) -RegisterKeyMapping("mechanicMenu", "Open Mechanic Menu", "keyboard", "F6") -RegisterKeyMapping("mechanicjob", "Togggle NPC Job", "keyboard", "F6") +RegisterKeyMapping('mechanicMenu', 'Open Mechanic Menu', 'keyboard', Config.Controls.mechanicMenu) +RegisterKeyMapping('mechanicjob', 'Togggle NPC Job', 'keyboard', Config.Controls.toggleNPCJob) -AddEventHandler("esx:onPlayerDeath", function(data) - isDead = true -end) -AddEventHandler("esx:onPlayerSpawn", function(spawn) - isDead = false -end) +AddEventHandler('esx:onPlayerDeath', function(data) isDead = true end) +AddEventHandler('esx:onPlayerSpawn', function(spawn) isDead = false end) diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/config.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/config.lua index e158f986d..742be5517 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/config.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/config.lua @@ -1,70 +1,74 @@ -Config = {} -Config.Locale = GetConvar("esx:locale", "en") +Config = {} +Config.Locale = GetConvar('esx:locale', 'en') -Config.DrawDistance = 10.0 -- How close you need to be in order for the markers to be drawn (in GTA units). -Config.MaxInService = -1 -Config.EnablePlayerManagement = true -- Enable society managing. +Config.Controls = { + mechanicMenu = "F6", + toggleNPCJob = "F7" +} + +Config.DrawDistance = 10.0 -- How close you need to be in order for the markers to be drawn (in GTA units). +Config.MaxInService = -1 +Config.EnablePlayerManagement = true -- Enable society managing. Config.EnableSocietyOwnedVehicles = false -Config.NPCSpawnDistance = 500.0 -Config.NPCNextToDistance = 25.0 -Config.NPCJobEarnings = { min = 15, max = 40 } +Config.NPCSpawnDistance = 500.0 +Config.NPCNextToDistance = 25.0 +Config.NPCJobEarnings = { min = 15, max = 40 } -Config.OxInventory = ESX.GetConfig().OxInventory +Config.OxInventory = ESX.GetConfig().OxInventory Config.Vehicles = { - "adder", - "asea", - "asterope", - "banshee", - "buffalo", - "sultan", - "baller3", + 'adder', + 'asea', + 'asterope', + 'banshee', + 'buffalo', + 'sultan', + 'baller3' } Config.Zones = { MechanicActions = { - Pos = vector3(-342.291, -133.370, 39.009), - Size = { x = 1.0, y = 1.0, z = 1.0 }, + Pos = vector3(-342.291, -133.370, 39.009 ), + Size = { x = 1.0, y = 1.0, z = 1.0 }, Color = { r = 50, g = 200, b = 50 }, - Type = 21, + Type = 21 }, Garage = { - Pos = vector3(-97.5, 6496.1, 31.4), - Size = { x = 1.0, y = 1.0, z = 1.0 }, + Pos = vector3(-97.5, 6496.1, 31.4 ), + Size = { x = 1.0, y = 1.0, z = 1.0 }, Color = { r = 50, g = 200, b = 50 }, - Type = 21, + Type = 21 }, - --[[Craft = { + Craft = { Pos = vector3( -323.140, -129.882, 38.999 ), Size = { x = 1.0, y = 1.0, z = 1.0 }, Color = { r = 50, g = 200, b = 50 }, Type = 21 - },]] - -- + }, VehicleSpawnPoint = { - Pos = vector3(-366.354, -110.766, 37.696), - Size = { x = 1.5, y = 1.5, z = 1.0 }, - Type = -1, + Pos = vector3(-366.354, -110.766, 37.696 ), + Size = { x = 1.5, y = 1.5, z = 1.0 }, + Type = -1 }, VehicleDeleter = { - Pos = vector3(-386.899, -105.675, 37.683), - Size = { x = 3.0, y = 3.0, z = 1.0 }, + Pos = vector3(-386.899, -105.675, 37.683 ), + Size = { x = 3.0, y = 3.0, z = 1.0 }, Color = { r = 204, g = 204, b = 0 }, - Type = 1, + Type = 1 }, VehicleDelivery = { - Pos = vector3(-382.925, -133.748, 37.685), - Size = { x = 20.0, y = 20.0, z = 3.0 }, + Pos = vector3(-382.925, -133.748, 37.685 ), + Size = { x = 20.0, y = 20.0, z = 3.0 }, Color = { r = 204, g = 204, b = 0 }, - Type = -1, - }, + Type = -1 + } } Config.Towables = { @@ -107,14 +111,14 @@ Config.Towables = { vector3(-1709.8, 55.1, 65.7), vector3(-521.9, -266.8, 34.9), vector3(-451.1, -333.5, 34.0), - vector3(322.4, -1900.5, 25.8), + vector3(322.4, -1900.5, 25.8) } -for k, v in ipairs(Config.Towables) do - Config.Zones["Towable" .. k] = { - Pos = v, - Size = { x = 1.5, y = 1.5, z = 1.0 }, +for k,v in ipairs(Config.Towables) do + Config.Zones['Towable' .. k] = { + Pos = v, + Size = { x = 1.5, y = 1.5, z = 1.0 }, Color = { r = 204, g = 204, b = 0 }, - Type = -1, + Type = -1 } end diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/esx_mechanicjob.sql b/server-data/resources/[esx_addons]/esx_mechanicjob/esx_mechanicjob.sql new file mode 100644 index 000000000..e8deb2693 --- /dev/null +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/esx_mechanicjob.sql @@ -0,0 +1,32 @@ +INSERT INTO `addon_account` (name, label, shared) VALUES + ('society_mechanic', 'Mechanic', 1) +; + +INSERT INTO `addon_inventory` (name, label, shared) VALUES + ('society_mechanic', 'Mechanic', 1) +; + +INSERT INTO `datastore` (name, label, shared) VALUES + ('society_mechanic', 'Mechanic', 1) +; + +INSERT INTO `jobs` (name, label) VALUES + ('mechanic', 'Mechanic') +; + +INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES + ('mechanic',0,'recrue','Recrue',12,'{}','{}'), + ('mechanic',1,'novice','Novice',24,'{}','{}'), + ('mechanic',2,'experimente','Experimente',36,'{}','{}'), + ('mechanic',3,'chief',"Chef d\'équipe",48,'{}','{}'), + ('mechanic',4,'boss','Patron',0,'{}','{}') +; + +INSERT INTO `items` (name, label, weight) VALUES + ('gazbottle', 'bouteille de gaz', 2), + ('fixtool', 'outils réparation', 2), + ('carotool', 'outils carosserie', 2), + ('blowpipe', 'Chalumeaux', 2), + ('fixkit', 'Kit réparation', 3), + ('carokit', 'Kit carosserie', 3) +; diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/fxmanifest.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/fxmanifest.lua index feecc78fa..b7a5535c6 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/fxmanifest.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/fxmanifest.lua @@ -1,29 +1,29 @@ -fx_version("adamant") +fx_version 'adamant' -game("gta5") +game 'gta5' -description("ESX Mechanic Job") -lua54("yes") -version("1.0.0") +description 'Allows players to RP as a mechanic (repair and modify vehicles)' +lua54 'yes' +version '1.0.1' -shared_script("@es_extended/imports.lua") +shared_script '@es_extended/imports.lua' -client_scripts({ - "@es_extended/locale.lua", - "locales/*.lua", - "config.lua", - "client/main.lua", -}) +client_scripts { + '@es_extended/locale.lua', + 'locales/*.lua', + 'config.lua', + 'client/main.lua' +} -server_scripts({ - "@es_extended/locale.lua", - "locales/*.lua", - "config.lua", - "server/main.lua", -}) +server_scripts { + '@es_extended/locale.lua', + 'locales/*.lua', + 'config.lua', + 'server/main.lua' +} -dependencies({ - "es_extended", - "esx_society", - "esx_billing", -}) +dependencies { + 'es_extended', + 'esx_society', + 'esx_billing' +} diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/de.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/de.lua index 9dd1e87ec..b21d4800a 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/de.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/de.lua @@ -1,86 +1,86 @@ -Locales["de"] = { - ["mechanic"] = "Mechaniker", - ["drive_to_indicated"] = "Fahre zum Makierten Standort", - ["mission_canceled"] = "Mission abgebrochen", - ["vehicle_list"] = "Fahrzeug Liste", - ["work_wear"] = "Arbeitskleidung", - ["civ_wear"] = "Zivilisten Kleidung", - ["deposit_stock"] = "Item einlagern", - ["withdraw_stock"] = "Item auslagern", - ["boss_actions"] = "Boss Aktionen", - ["service_vehicle"] = "Service Fahrzeug", - ["flat_bed"] = "Pritsche", - ["tow_truck"] = "Abschleppwagen", - ["service_full"] = "Service Voll: ", - ["open_actions"] = "Drücke [E] um auf das Menü zuzugreifen.", - ["harvest"] = "Ernten", - ["harvest_menu"] = "Drücke [E] um das Ernte Menü zu öffnen.", - ["not_experienced_enough"] = "Du bist zu unerfahren um dass zu machen!.", - ["gas_can"] = "Benzinkanister", - ["repair_tools"] = "Reparier Tools", - ["body_work_tools"] = "bodywork Tools", - ["blowtorch"] = "Zündkerze", - ["repair_kit"] = "Werkzeugkasten", - ["body_kit"] = "Fahrzeugkit", - ["craft"] = "Craften", - ["craft_menu"] = "Drücke [E] um das Crafting Menü zu öffnen.", - ["billing"] = "Rechnung", - ["hijack"] = "Aufbrechen", - ["repair"] = "Reparieren", - ["clean"] = "Sauber machen", - ["imp_veh"] = "Abschleppen", - ["place_objects"] = "Objekt Platzieren", - ["invoice_amount"] = "Rechnungsanzahl", - ["amount_invalid"] = "Ungültige Anzahl", - ["no_players_nearby"] = "Es gibt keine Person in der Nähe", - ["no_vehicle_nearby"] = "Es gibt kein Fahrzeug in der Nähe", - ["inside_vehicle"] = "Du kannst das nicht außerhalb eines Fahrzeugs tun!", - ["vehicle_unlocked"] = "Das Fahrzeug wurde aufgebrochen", - ["vehicle_repaired"] = "Das Fahrzeug wurde repariert", - ["vehicle_cleaned"] = "Das Fahrzeug wurde sauber gemacht", - ["vehicle_impounded"] = "Das Fahrzeug wurde abgeschleppt", - ["must_seat_driver"] = "Du musst auf dem Fahrersitz sein!", - ["must_near"] = "Du musst in der nähe eines Fahrzeugs sein, um es abzuschleppen", - ["vehicle_success_attached"] = "Fahrzeug erfolgreich aufgeladen", - ["please_drop_off"] = "Bitte lade das Fahrzeug an der Garage ab!", - ["cant_attach_own_tt"] = "Du kannst deinen eigenen Abschleppwagen nicht abschleppen!", - ["no_veh_att"] = "Es gibt kein Fahrzeug was abgeschleppt werden kann!", - ["not_right_veh"] = "Dies ist nicht das richtige Fahrzeug", - ["not_right_place"] = "Dies ist nicht die richtige Position", - ["veh_det_succ"] = "Fahrzeug erfolgreich abgeladen!", - ["imp_flatbed"] = "Aktion unmöglich! Du benötigst einen Abschleppwagen um das zu tun!", - ["objects"] = "Objekte", - ["roadcone"] = "Leitkegel", - ["toolbox"] = "Werkzeugkasten", - ["mechanic_stock"] = "Mechanikerlager", - ["quantity"] = "Anzahl", - ["invalid_quantity"] = "Ungültige Anzahl", - ["inventory"] = "Inventar", - ["veh_unlocked"] = "Fahrzeug aufgebrochen", - ["hijack_failed"] = "Aufbrechen fehlgeschlagen", - ["body_repaired"] = "Körper repariert", - ["veh_repaired"] = "Fahrzeug repariert", - ["veh_stored"] = "Drücke [E] um das Fahrzeug einzuparken.", - ["press_remove_obj"] = "Drücke [E] um das Objekt zu entfernen", - ["please_tow"] = "Bitte Schlepp das Fahrzeug ab", - ["wait_five"] = "Du musst 5 Minuten warten", - ["must_in_flatbed"] = "Du musst dafür in einem Abschleppwagen sitzen", - ["mechanic_customer"] = "Mechaniker Kunde", - ["you_do_not_room"] = "Du hast nicht genügend Platz", - ["recovery_gas_can"] = "Benzin Kanister wird abgerufen...", - ["recovery_repair_tools"] = "Reparierungstools werden abgerufen...", - ["recovery_body_tools"] = "Body Tools Abruf...", - ["not_enough_gas_can"] = "Du hast nicht genügend Benzinkanister.", - ["assembling_blowtorch"] = "Schweißbrenner wird angebracht...", - ["not_enough_repair_tools"] = "Du hast nicht genug Reparierungstools.", - ["assembling_repair_kit"] = "Zusammenbau des Reparatursatzes...", - ["not_enough_body_tools"] = "Du haben nicht genügend Bodytools.", - ["assembling_body_kit"] = "Zusammenbau des Bodykits...", - ["your_comp_earned"] = "Deine Firma verdient €", - ["you_used_blowtorch"] = "Du nutzt einen Schweißbrenner", - ["you_used_repair_kit"] = "Du nutzt ein Reparierungskit", - ["you_used_body_kit"] = "Du nutzt ein Body Kit", - ["have_withdrawn"] = "Du zahlst aus x%s %s", - ["have_deposited"] = "Du zahlst ein x%s %s", - ["player_cannot_hold"] = "Du hast nicht genügend freien Platz im Inventar!", +Locales['de'] = { + ['mechanic'] = 'Mechaniker', + ['drive_to_indicated'] = 'Fahre zum Makierten Standort', + ['mission_canceled'] = 'Mission abgebrochen', + ['vehicle_list'] = 'Fahrzeug Liste', + ['work_wear'] = 'Arbeitskleidung', + ['civ_wear'] = 'Zivilisten Kleidung', + ['deposit_stock'] = 'Item einlagern', + ['withdraw_stock'] = 'Item auslagern', + ['boss_actions'] = 'Boss Aktionen', + ['service_vehicle'] = 'Service Fahrzeug', + ['flat_bed'] = 'Pritsche', + ['tow_truck'] = 'Abschleppwagen', + ['service_full'] = 'Service Voll: ', + ['open_actions'] = 'Drücke [E] um auf das Menü zuzugreifen.', + ['harvest'] = 'Ernten', + ['harvest_menu'] = 'Drücke [E] um das Ernte Menü zu öffnen.', + ['not_experienced_enough'] = 'Du bist zu unerfahren um dass zu machen!.', + ['gas_can'] = 'Benzinkanister', + ['repair_tools'] = 'Reparier Tools', + ['body_work_tools'] = 'bodywork Tools', + ['blowtorch'] = 'Zündkerze', + ['repair_kit'] = 'Werkzeugkasten', + ['body_kit'] = 'Fahrzeugkit', + ['craft'] = 'Craften', + ['craft_menu'] = 'Drücke [E] um das Crafting Menü zu öffnen.', + ['billing'] = 'Rechnung', + ['hijack'] = 'Aufbrechen', + ['repair'] = 'Reparieren', + ['clean'] = 'Sauber machen', + ['imp_veh'] = 'Abschleppen', + ['place_objects'] = 'Objekt Platzieren', + ['invoice_amount'] = 'Rechnungsanzahl', + ['amount_invalid'] = 'Ungültige Anzahl', + ['no_players_nearby'] = 'Es gibt keine Person in der Nähe', + ['no_vehicle_nearby'] = 'Es gibt kein Fahrzeug in der Nähe', + ['inside_vehicle'] = 'Du kannst das nicht außerhalb eines Fahrzeugs tun!', + ['vehicle_unlocked'] = 'Das Fahrzeug wurde aufgebrochen', + ['vehicle_repaired'] = 'Das Fahrzeug wurde repariert', + ['vehicle_cleaned'] = 'Das Fahrzeug wurde sauber gemacht', + ['vehicle_impounded'] = 'Das Fahrzeug wurde abgeschleppt', + ['must_seat_driver'] = 'Du musst auf dem Fahrersitz sein!', + ['must_near'] = 'Du musst in der nähe eines Fahrzeugs sein, um es abzuschleppen', + ['vehicle_success_attached'] = 'Fahrzeug erfolgreich aufgeladen', + ['please_drop_off'] = 'Bitte lade das Fahrzeug an der Garage ab!', + ['cant_attach_own_tt'] = 'Du kannst deinen eigenen Abschleppwagen nicht abschleppen!', + ['no_veh_att'] = 'Es gibt kein Fahrzeug was abgeschleppt werden kann!', + ['not_right_veh'] = 'Dies ist nicht das richtige Fahrzeug', + ['not_right_place'] = 'Dies ist nicht die richtige Position', + ['veh_det_succ'] = 'Fahrzeug erfolgreich abgeladen!', + ['imp_flatbed'] = 'Aktion unmöglich! Du benötigst einen Abschleppwagen um das zu tun!', + ['objects'] = 'Objekte', + ['roadcone'] = 'Leitkegel', + ['toolbox'] = 'Werkzeugkasten', + ['mechanic_stock'] = 'Mechanikerlager', + ['quantity'] = 'Anzahl', + ['invalid_quantity'] = 'Ungültige Anzahl', + ['inventory'] = 'Inventar', + ['veh_unlocked'] = 'Fahrzeug aufgebrochen', + ['hijack_failed'] = 'Aufbrechen fehlgeschlagen', + ['body_repaired'] = 'Körper repariert', + ['veh_repaired'] = 'Fahrzeug repariert', + ['veh_stored'] = 'Drücke [E] um das Fahrzeug einzuparken.', + ['press_remove_obj'] = 'Drücke [E] um das Objekt zu entfernen', + ['please_tow'] = 'Bitte Schlepp das Fahrzeug ab', + ['wait_five'] = 'Du musst 5 Minuten warten', + ['must_in_flatbed'] = 'Du musst dafür in einem Abschleppwagen sitzen', + ['mechanic_customer'] = 'Mechaniker Kunde', + ['you_do_not_room'] = 'Du hast nicht genügend Platz', + ['recovery_gas_can'] = 'Benzin Kanister wird abgerufen...', + ['recovery_repair_tools'] = 'Reparierungstools werden abgerufen...', + ['recovery_body_tools'] = 'Body Tools Abruf...', + ['not_enough_gas_can'] = 'Du hast nicht genügend Benzinkanister.', + ['assembling_blowtorch'] = 'Schweißbrenner wird angebracht...', + ['not_enough_repair_tools'] = 'Du hast nicht genug Reparierungstools.', + ['assembling_repair_kit'] = 'Zusammenbau des Reparatursatzes...', + ['not_enough_body_tools'] = 'Du haben nicht genügend Bodytools.', + ['assembling_body_kit'] = 'Zusammenbau des Bodykits...', + ['your_comp_earned'] = 'Deine Firma verdient €', + ['you_used_blowtorch'] = 'Du nutzt einen Schweißbrenner', + ['you_used_repair_kit'] = 'Du nutzt ein Reparierungskit', + ['you_used_body_kit'] = 'Du nutzt ein Body Kit', + ['have_withdrawn'] = 'Du zahlst aus x%s %s', + ['have_deposited'] = 'Du zahlst ein x%s %s', + ['player_cannot_hold'] = 'Du hast nicht genügend freien Platz im Inventar!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/en.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/en.lua index 5279965a2..14921c470 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/en.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/en.lua @@ -1,86 +1,86 @@ -Locales["en"] = { - ["mechanic"] = "mechanic", - ["drive_to_indicated"] = "Drive to the indicated location.", - ["mission_canceled"] = "Mission canceled", - ["vehicle_list"] = "vehicle List", - ["work_wear"] = "workwear", - ["civ_wear"] = "civilian clothes", - ["deposit_stock"] = "deposit Stock", - ["withdraw_stock"] = "withdraw Stock", - ["boss_actions"] = "boss Actions", - ["service_vehicle"] = "service Vehicle", - ["flat_bed"] = "flatbed", - ["tow_truck"] = "tow Truck", - ["service_full"] = "service full: ", - ["open_actions"] = "Press [E] to access the menu.", - ["harvest"] = "harvest", - ["harvest_menu"] = "press [E] to access the harvest menu.", - ["not_experienced_enough"] = "you are not experienced enough to perform this action.", - ["gas_can"] = "gas Can", - ["repair_tools"] = "repair Tools", - ["body_work_tools"] = "bodywork Tools", - ["blowtorch"] = "blowtorch", - ["repair_kit"] = "repair Kit", - ["body_kit"] = "body Kit", - ["craft"] = "craft", - ["craft_menu"] = "press [E] to access the crafting menu.", - ["billing"] = "billing", - ["hijack"] = "hijack", - ["repair"] = "repair", - ["clean"] = "clean", - ["imp_veh"] = "impound", - ["place_objects"] = "place Objects", - ["invoice_amount"] = "invoice Amount", - ["amount_invalid"] = "invalid amount", - ["no_players_nearby"] = "there is no nearby player", - ["no_vehicle_nearby"] = "there is no nearby vehicle", - ["inside_vehicle"] = "you can't do this from inside the vehicle!", - ["vehicle_unlocked"] = "the vehicle has been unlocked", - ["vehicle_repaired"] = "the vehicle has been repaired", - ["vehicle_cleaned"] = "the vehicle has been cleaned", - ["vehicle_impounded"] = "the vehicle has been impounded", - ["must_seat_driver"] = "you must be in the driver seat!", - ["must_near"] = "you must be near a vehicle to impound it.", - ["vehicle_success_attached"] = "vehicle successfully attached", - ["please_drop_off"] = "please drop off the vehicle at the garage", - ["cant_attach_own_tt"] = "you can't attach own tow truck", - ["no_veh_att"] = "there is no vehicle to be attached", - ["not_right_veh"] = "this is not the right vehicle", - ["not_right_place"] = "this is not the right place", - ["veh_det_succ"] = "vehicle successfully dettached!", - ["imp_flatbed"] = "Action impossible! You need a Flatbed to load a vehicle", - ["objects"] = "objects", - ["roadcone"] = "roadcone", - ["toolbox"] = "toolbox", - ["mechanic_stock"] = "mechanic Stock", - ["quantity"] = "quantity", - ["invalid_quantity"] = "invalid quantity", - ["inventory"] = "inventory", - ["veh_unlocked"] = "Vehicle Unlocked", - ["hijack_failed"] = "Hijack Failed", - ["body_repaired"] = "Body repaired", - ["veh_repaired"] = "Vehicle Repaired", - ["veh_stored"] = "press [E] to store the vehicle.", - ["press_remove_obj"] = "press [E] to remove the object", - ["please_tow"] = "please tow the vehicle", - ["wait_five"] = "you must wait 5 minutes", - ["must_in_flatbed"] = "you must be in a flatbed to being the mission", - ["mechanic_customer"] = "mechanic Customer", - ["you_do_not_room"] = "You do not have more room", - ["recovery_gas_can"] = "Gas Can Retrieval...", - ["recovery_repair_tools"] = "Repair Tools Retrieval...", - ["recovery_body_tools"] = "Body Tools Retrieval...", - ["not_enough_gas_can"] = "You do not have enough gas cans.", - ["assembling_blowtorch"] = "Assembling Blowtorch...", - ["not_enough_repair_tools"] = "You do not have enough repair tools.", - ["assembling_repair_kit"] = "Assembling Repair Kit...", - ["not_enough_body_tools"] = "You do not have enough body tools.", - ["assembling_body_kit"] = "Assembling Body Kit...", - ["your_comp_earned"] = "your company has earned $", - ["you_used_blowtorch"] = "you used a blowtorch", - ["you_used_repair_kit"] = "you used a Repair Kit", - ["you_used_body_kit"] = "you used a Body Kit", - ["have_withdrawn"] = "you have withdrawn x%s %s", - ["have_deposited"] = "you have deposited x%s %s", - ["player_cannot_hold"] = "you do not have enough free space in your inventory!", +Locales['en'] = { + ['mechanic'] = 'mechanic', + ['drive_to_indicated'] = 'Drive to the indicated location.', + ['mission_canceled'] = 'Mission canceled', + ['vehicle_list'] = 'vehicle List', + ['work_wear'] = 'workwear', + ['civ_wear'] = 'civilian clothes', + ['deposit_stock'] = 'deposit Stock', + ['withdraw_stock'] = 'withdraw Stock', + ['boss_actions'] = 'boss Actions', + ['service_vehicle'] = 'service Vehicle', + ['flat_bed'] = 'flatbed', + ['tow_truck'] = 'tow Truck', + ['service_full'] = 'service full: ', + ['open_actions'] = 'Press [E] to access the menu.', + ['harvest'] = 'harvest', + ['harvest_menu'] = 'press [E] to access the harvest menu.', + ['not_experienced_enough'] = 'you are not experienced enough to perform this action.', + ['gas_can'] = 'gas Can', + ['repair_tools'] = 'repair Tools', + ['body_work_tools'] = 'bodywork Tools', + ['blowtorch'] = 'blowtorch', + ['repair_kit'] = 'repair Kit', + ['body_kit'] = 'body Kit', + ['craft'] = 'craft', + ['craft_menu'] = 'press [E] to access the crafting menu.', + ['billing'] = 'billing', + ['hijack'] = 'hijack', + ['repair'] = 'repair', + ['clean'] = 'clean', + ['imp_veh'] = 'impound', + ['place_objects'] = 'place Objects', + ['invoice_amount'] = 'invoice Amount', + ['amount_invalid'] = 'invalid amount', + ['no_players_nearby'] = 'there is no nearby player', + ['no_vehicle_nearby'] = 'there is no nearby vehicle', + ['inside_vehicle'] = 'you can\'t do this from inside the vehicle!', + ['vehicle_unlocked'] = 'the vehicle has been unlocked', + ['vehicle_repaired'] = 'the vehicle has been repaired', + ['vehicle_cleaned'] = 'the vehicle has been cleaned', + ['vehicle_impounded'] = 'the vehicle has been impounded', + ['must_seat_driver'] = 'you must be in the driver seat!', + ['must_near'] = 'you must be near a vehicle to impound it.', + ['vehicle_success_attached'] = 'vehicle successfully attached', + ['please_drop_off'] = 'please drop off the vehicle at the garage', + ['cant_attach_own_tt'] = 'you can\'t attach own tow truck', + ['no_veh_att'] = 'there is no vehicle to be attached', + ['not_right_veh'] = 'this is not the right vehicle', + ['not_right_place'] = 'this is not the right place', + ['veh_det_succ'] = 'vehicle successfully dettached!', + ['imp_flatbed'] = 'Action impossible! You need a Flatbed to load a vehicle', + ['objects'] = 'objects', + ['roadcone'] = 'roadcone', + ['toolbox'] = 'toolbox', + ['mechanic_stock'] = 'mechanic Stock', + ['quantity'] = 'quantity', + ['invalid_quantity'] = 'invalid quantity', + ['inventory'] = 'inventory', + ['veh_unlocked'] = 'Vehicle Unlocked', + ['hijack_failed'] = 'Hijack Failed', + ['body_repaired'] = 'Body repaired', + ['veh_repaired'] = 'Vehicle Repaired', + ['veh_stored'] = 'press [E] to store the vehicle.', + ['press_remove_obj'] = 'press [E] to remove the object', + ['please_tow'] = 'please tow the vehicle', + ['wait_five'] = 'you must wait 5 minutes', + ['must_in_flatbed'] = 'you must be in a flatbed to being the mission', + ['mechanic_customer'] = 'mechanic Customer', + ['you_do_not_room'] = 'You do not have more room', + ['recovery_gas_can'] = 'Gas Can Retrieval...', + ['recovery_repair_tools'] = 'Repair Tools Retrieval...', + ['recovery_body_tools'] = 'Body Tools Retrieval...', + ['not_enough_gas_can'] = 'You do not have enough gas cans.', + ['assembling_blowtorch'] = 'Assembling Blowtorch...', + ['not_enough_repair_tools'] = 'You do not have enough repair tools.', + ['assembling_repair_kit'] = 'Assembling Repair Kit...', + ['not_enough_body_tools'] = 'You do not have enough body tools.', + ['assembling_body_kit'] = 'Assembling Body Kit...', + ['your_comp_earned'] = 'your company has earned $', + ['you_used_blowtorch'] = 'you used a blowtorch', + ['you_used_repair_kit'] = 'you used a Repair Kit', + ['you_used_body_kit'] = 'you used a Body Kit', + ['have_withdrawn'] = 'you have withdrawn x%s %s', + ['have_deposited'] = 'you have deposited x%s %s', + ['player_cannot_hold'] = 'you do not have enough free space in your inventory!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/es.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/es.lua index 58629eddb..dbe223485 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/es.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/es.lua @@ -1,86 +1,86 @@ -Locales["es"] = { - ["mechanic"] = "Mecánico", - ["drive_to_indicated"] = "Conduce a la ubicación indicada.", - ["mission_canceled"] = "Misión cancelada", - ["vehicle_list"] = "Lista de vehículos", - ["work_wear"] = "Ropa de trabajo", - ["civ_wear"] = "Ropa de civil", - ["deposit_stock"] = "Depositar stock", - ["withdraw_stock"] = "Retirar stock", - ["boss_actions"] = "Acciones del jefe", - ["service_vehicle"] = "Vehículo de servicio", - ["flat_bed"] = "Plataforma", - ["tow_truck"] = "Camión de remolque", - ["service_full"] = "Servicio completo: ", - ["open_actions"] = "Presiona [E] para acceder al menú.", - ["harvest"] = "Cosecha", - ["harvest_menu"] = "Presiona [E] para acceder al menú de cosecha.", - ["not_experienced_enough"] = "Usted no está lo suficientemente experimentado para realizar esta acción.", - ["gas_can"] = "Lata de gas", - ["repair_tools"] = "Herramientas para reparar", - ["body_work_tools"] = "Herramientas de carrocería", - ["blowtorch"] = "Soplete", - ["repair_kit"] = "kit de reparación", - ["body_kit"] = "kit de carrocería", - ["craft"] = "Fabricar", - ["craft_menu"] = "Presiona [E] para acceder al menú de crafteo.", - ["billing"] = "Facturación", - ["hijack"] = "Forzar", - ["repair"] = "Reparar", - ["clean"] = "Limpiar", - ["imp_veh"] = "Incautar", - ["place_objects"] = "Colocar objetos", - ["invoice_amount"] = "Cantidad de factura", - ["amount_invalid"] = "Cantidad Inválida", - ["no_players_nearby"] = "No hay un jugador/a cercano", - ["no_vehicle_nearby"] = "No hay ningún vehículo cercano", - ["inside_vehicle"] = "¡No puedes hacer esto desde el interior del vehículo!", - ["vehicle_unlocked"] = "El vehículo ha sido desbloqueado", - ["vehicle_repaired"] = "El vehículo ha sido reparado", - ["vehicle_cleaned"] = "El vehículo ha sido limpiado", - ["vehicle_impounded"] = "El vehículo ha sido incautado", - ["must_seat_driver"] = "¡Debes estar en el asiento del conductor!", - ["must_near"] = "Usted debe estar cerca de un vehículo incautarlo.", - ["vehicle_success_attached"] = "Vehículo con éxito adjuntado", - ["please_drop_off"] = "Por favor, deje el vehículo en el garaje", - ["cant_attach_own_tt"] = "No puedes adjuntar su propia grúa", - ["no_veh_att"] = "No hay vehículo que se adjunte", - ["not_right_veh"] = "Este no es el vehículo correcto", - ["not_right_place"] = "Este no es el lugar correcto", - ["veh_det_succ"] = "Vehículo con éxito separado!", - ["imp_flatbed"] = "¡Acción imposible! Necesitas una Cama plana para cargar un vehículo", - ["objects"] = "Objetos", - ["roadcone"] = "Cono", - ["toolbox"] = "Caja de herramientas", - ["mechanic_stock"] = "Stock mecánico", - ["quantity"] = "Cantidad", - ["invalid_quantity"] = "Cantidad inválida", - ["inventory"] = "Inventario", - ["veh_unlocked"] = "Vehículo desbloqueado", - ["hijack_failed"] = "Secuestro fallido", - ["body_repaired"] = "Carrocería reparado", - ["veh_repaired"] = "Vehículo reparado", - ["veh_stored"] = "Presiona [E] para almacenar el vehículo.", - ["press_remove_obj"] = "Presiona [E] para quitar el objeto", - ["please_tow"] = "Por favor remolca el vehículo", - ["wait_five"] = "Debes esperar 5 minutos", - ["must_in_flatbed"] = "Debes estar en una plataforma para ser la misión", - ["mechanic_customer"] = "Cliente mecánico", - ["you_do_not_room"] = "No tienes mas espacio", - ["recovery_gas_can"] = "Lata de gas Recuperando...", - ["recovery_repair_tools"] = "Herramientas para reparar Recuperando...", - ["recovery_body_tools"] = "Herramientas de carrocería Recuperando...", - ["not_enough_gas_can"] = "No tienes suficiente latas de gas.", - ["assembling_blowtorch"] = "Montando Soplete...", - ["not_enough_repair_tools"] = "No tienes suficiente herramientas para reparar.", - ["assembling_repair_kit"] = "Montando Kit de reparación...", - ["not_enough_body_tools"] = "No tienes suficiente herramientas de carrocería.", - ["assembling_body_kit"] = "Montando Kit de carrocería...", - ["your_comp_earned"] = "Tu empresa ha ganado $", - ["you_used_blowtorch"] = "Usaste un soplete", - ["you_used_repair_kit"] = "Usaste un Kit de reparación", - ["you_used_body_kit"] = "Usaste un Kit de carrocería", - ["have_withdrawn"] = "Has retirado x%s %s", - ["have_deposited"] = "Has depositado x%s %s", - ["player_cannot_hold"] = "Tu no tienes suficiente espacio suficiente en tu inventario!", +Locales['es'] = { + ['mechanic'] = 'Mecánico', + ['drive_to_indicated'] = 'Conduce a la ubicación indicada.', + ['mission_canceled'] = 'Misión cancelada', + ['vehicle_list'] = 'Lista de vehículos', + ['work_wear'] = 'Ropa de trabajo', + ['civ_wear'] = 'Ropa de civil', + ['deposit_stock'] = 'Depositar stock', + ['withdraw_stock'] = 'Retirar stock', + ['boss_actions'] = 'Acciones del jefe', + ['service_vehicle'] = 'Vehículo de servicio', + ['flat_bed'] = 'Plataforma', + ['tow_truck'] = 'Camión de remolque', + ['service_full'] = 'Servicio completo: ', + ['open_actions'] = 'Presiona [E] para acceder al menú.', + ['harvest'] = 'Cosecha', + ['harvest_menu'] = 'Presiona [E] para acceder al menú de cosecha.', + ['not_experienced_enough'] = 'Usted no está lo suficientemente experimentado para realizar esta acción.', + ['gas_can'] = 'Lata de gas', + ['repair_tools'] = 'Herramientas para reparar', + ['body_work_tools'] = 'Herramientas de carrocería', + ['blowtorch'] = 'Soplete', + ['repair_kit'] = 'kit de reparación', + ['body_kit'] = 'kit de carrocería', + ['craft'] = 'Fabricar', + ['craft_menu'] = 'Presiona [E] para acceder al menú de crafteo.', + ['billing'] = 'Facturación', + ['hijack'] = 'Forzar', + ['repair'] = 'Reparar', + ['clean'] = 'Limpiar', + ['imp_veh'] = 'Incautar', + ['place_objects'] = 'Colocar objetos', + ['invoice_amount'] = 'Cantidad de factura', + ['amount_invalid'] = 'Cantidad Inválida', + ['no_players_nearby'] = 'No hay un jugador/a cercano', + ['no_vehicle_nearby'] = 'No hay ningún vehículo cercano', + ['inside_vehicle'] = '¡No puedes hacer esto desde el interior del vehículo!', + ['vehicle_unlocked'] = 'El vehículo ha sido desbloqueado', + ['vehicle_repaired'] = 'El vehículo ha sido reparado', + ['vehicle_cleaned'] = 'El vehículo ha sido limpiado', + ['vehicle_impounded'] = 'El vehículo ha sido incautado', + ['must_seat_driver'] = '¡Debes estar en el asiento del conductor!', + ['must_near'] = 'Usted debe estar cerca de un vehículo incautarlo.', + ['vehicle_success_attached'] = 'Vehículo con éxito adjuntado', + ['please_drop_off'] = 'Por favor, deje el vehículo en el garaje', + ['cant_attach_own_tt'] = 'No puedes adjuntar su propia grúa', + ['no_veh_att'] = 'No hay vehículo que se adjunte', + ['not_right_veh'] = 'Este no es el vehículo correcto', + ['not_right_place'] = 'Este no es el lugar correcto', + ['veh_det_succ'] = 'Vehículo con éxito separado!', + ['imp_flatbed'] = '¡Acción imposible! Necesitas una Cama plana para cargar un vehículo', + ['objects'] = 'Objetos', + ['roadcone'] = 'Cono', + ['toolbox'] = 'Caja de herramientas', + ['mechanic_stock'] = 'Stock mecánico', + ['quantity'] = 'Cantidad', + ['invalid_quantity'] = 'Cantidad inválida', + ['inventory'] = 'Inventario', + ['veh_unlocked'] = 'Vehículo desbloqueado', + ['hijack_failed'] = 'Secuestro fallido', + ['body_repaired'] = 'Carrocería reparado', + ['veh_repaired'] = 'Vehículo reparado', + ['veh_stored'] = 'Presiona [E] para almacenar el vehículo.', + ['press_remove_obj'] = 'Presiona [E] para quitar el objeto', + ['please_tow'] = 'Por favor remolca el vehículo', + ['wait_five'] = 'Debes esperar 5 minutos', + ['must_in_flatbed'] = 'Debes estar en una plataforma para ser la misión', + ['mechanic_customer'] = 'Cliente mecánico', + ['you_do_not_room'] = 'No tienes mas espacio', + ['recovery_gas_can'] = 'Lata de gas Recuperando...', + ['recovery_repair_tools'] = 'Herramientas para reparar Recuperando...', + ['recovery_body_tools'] = 'Herramientas de carrocería Recuperando...', + ['not_enough_gas_can'] = 'No tienes suficiente latas de gas.', + ['assembling_blowtorch'] = 'Montando Soplete...', + ['not_enough_repair_tools'] = 'No tienes suficiente herramientas para reparar.', + ['assembling_repair_kit'] = 'Montando Kit de reparación...', + ['not_enough_body_tools'] = 'No tienes suficiente herramientas de carrocería.', + ['assembling_body_kit'] = 'Montando Kit de carrocería...', + ['your_comp_earned'] = 'Tu empresa ha ganado $', + ['you_used_blowtorch'] = 'Usaste un soplete', + ['you_used_repair_kit'] = 'Usaste un Kit de reparación', + ['you_used_body_kit'] = 'Usaste un Kit de carrocería', + ['have_withdrawn'] = 'Has retirado x%s %s', + ['have_deposited'] = 'Has depositado x%s %s', + ['player_cannot_hold'] = 'Tu no tienes suficiente espacio suficiente en tu inventario!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fi.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fi.lua index d3772f4ce..a6738bc6b 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fi.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fi.lua @@ -1,85 +1,85 @@ -Locales["fi"] = { - ["mechanic"] = "mekaanikko", - ["drive_to_indicated"] = "Aja merkattuun pisteeseen.", - ["mission_canceled"] = "tehtävä ~r~peruutettu", - ["vehicle_list"] = "ajoneuvo lista", - ["work_wear"] = "työvaatteet", - ["civ_wear"] = "siviilivaatteet", - ["deposit_stock"] = "talleta varastoon", - ["withdraw_stock"] = "ota varastosta", - ["boss_actions"] = "pomo toiminnot", - ["service_vehicle"] = "huoltoajoneuvo", - ["flat_bed"] = "flatbed", - ["tow_truck"] = "hinausajoneuvo", - ["service_full"] = "työntekijöitä tarpeeksi: ", - ["open_actions"] = "paina [E] avataksesi menun.", - ["harvest"] = "kerää", - ["harvest_menu"] = "paina [E] avataksesi keräys menun.", - ["not_experienced_enough"] = "et ole ~r~tarpeeksi koulutettu että voit tehdä tätä.", - ["gas_can"] = "kaasupullo", - ["repair_tools"] = "korjaustyökalut", - ["body_work_tools"] = "korin korjaustyökalut", - ["blowtorch"] = "polttoleikkuri", - ["repair_kit"] = "korjauskitti", - ["body_kit"] = "korikitti", - ["craft"] = "valmista", - ["craft_menu"] = "paina [E] avataksesi valmistus menu", - ["billing"] = "laskutus", - ["hijack"] = "avaa lukot", - ["repair"] = "korjaa", - ["clean"] = "pese", - ["imp_veh"] = "takavarikoi", - ["place_objects"] = "aseta objekteja", - ["invoice_amount"] = "laskun summa", - ["amount_invalid"] = "virheellinen summa", - ["no_players_nearby"] = "ei pelaajia lähettyvillä", - ["no_vehicle_nearby"] = "there is no nearby vehicle", - ["inside_vehicle"] = "you can't do this from inside the vehicle!", - ["vehicle_unlocked"] = "ajoneuvo Avattu", - ["vehicle_repaired"] = "ajoneuvo Korjattu", - ["vehicle_cleaned"] = "ajoneuvo pesty", - ["vehicle_impounded"] = "ajoneuvo ~r~Takavarikoitu", - ["must_seat_driver"] = "sinun pitää olla ~r~kuskin paikalla", - ["must_near"] = "sinun pitää olla ~r~ajoneuvon lähellä että voit takavarikoida.", - ["vehicle_success_attached"] = "ajoneuvo onnistuneesti kytketty!.", - ["please_drop_off"] = "vie ajoneuvo korjauspajan pihalle, kiitos.", - ["cant_attach_own_tt"] = "~r~Et voi kytkeä omaa hinausautoa", - ["no_veh_att"] = "täällä ei ole ~r~ajoneuvoa jota kytkeä", - ["not_right_veh"] = "tämä ei ole oikea ajoneuvo", - ["veh_det_succ"] = "ajoneuvo onnistuunesti irroitettu!", - ["imp_flatbed"] = "~r~Toiminto mahdoton! Sinulla pitää olla Flatbed tähän.", - ["objects"] = "objektit", - ["roadcone"] = "kartio", - ["toolbox"] = "työkalupakki", - ["mechanic_stock"] = "mekaanikon varasto", - ["quantity"] = "määrä", - ["invalid_quantity"] = "virheellinen summa", - ["inventory"] = "reppu", - ["veh_unlocked"] = "Ajoneuvo avattu", - ["hijack_failed"] = "~r~Tiirikointi epäonnistu", - ["body_repaired"] = "Kori korjattu", - ["veh_repaired"] = "Ajoneuvo korjattu", - ["veh_stored"] = "paina [E] laittaaksesi auto talliin.", - ["press_remove_obj"] = "paina [E] poistaaksesi objekti", - ["please_tow"] = "voisitko hinata ajoneuvon, kiitos", - ["wait_five"] = "sinun pitää ~r~odottaa 5 minuuttia", - ["must_in_flatbed"] = "sinun pitää olla flatbedin kyydissä aloitaaksesi.", - ["mechanic_customer"] = "mekaanikon Asiakas", - ["you_do_not_room"] = "~r~Sinulla ei ole enempää tilaa", - ["recovery_gas_can"] = "Kaasupullon täyttö menossa...", - ["recovery_repair_tools"] = "Korjaustyökalujen kerääminen menossa...", - ["recovery_body_tools"] = "Korin työkalujen kerääminen menossa...", - ["not_enough_gas_can"] = "sinulla ~r~ei ole tarpeeksi kaasupulloja.", - ["assembling_blowtorch"] = "kasataan Polttoleikkuria...", - ["not_enough_repair_tools"] = "sinulla ~r~ei ole tarpeeksi korjaus työkaluja.", - ["assembling_repair_kit"] = "kasataan Korjauskittiä...", - ["not_enough_body_tools"] = "sinulla ~r~ei ole tarpeeksi kori työkaluja.", - ["assembling_body_kit"] = "kasataan Korikittiä...", - ["your_comp_earned"] = "yrityksesi tienasi $", - ["you_used_blowtorch"] = "sinä käytit yhden Polttoleikkurin", - ["you_used_repair_kit"] = "sinä käytit yhden Korjauskitin", - ["you_used_body_kit"] = "sinä käytit yhden Korikitin", - ["have_withdrawn"] = "sinä nostit x%s %s", - ["have_deposited"] = "sinä talletit x%s %s", - ["player_cannot_hold"] = "sinulla ~r~ei ole tarpeeksi vapaata tilaa repussasi!", +Locales['fi'] = { + ['mechanic'] = 'mekaanikko', + ['drive_to_indicated'] = 'Aja merkattuun pisteeseen.', + ['mission_canceled'] = 'tehtävä ~r~peruutettu', + ['vehicle_list'] = 'ajoneuvo lista', + ['work_wear'] = 'työvaatteet', + ['civ_wear'] = 'siviilivaatteet', + ['deposit_stock'] = 'talleta varastoon', + ['withdraw_stock'] = 'ota varastosta', + ['boss_actions'] = 'pomo toiminnot', + ['service_vehicle'] = 'huoltoajoneuvo', + ['flat_bed'] = 'flatbed', + ['tow_truck'] = 'hinausajoneuvo', + ['service_full'] = 'työntekijöitä tarpeeksi: ', + ['open_actions'] = 'paina [E] avataksesi menun.', + ['harvest'] = 'kerää', + ['harvest_menu'] = 'paina [E] avataksesi keräys menun.', + ['not_experienced_enough'] = 'et ole ~r~tarpeeksi koulutettu että voit tehdä tätä.', + ['gas_can'] = 'kaasupullo', + ['repair_tools'] = 'korjaustyökalut', + ['body_work_tools'] = 'korin korjaustyökalut', + ['blowtorch'] = 'polttoleikkuri', + ['repair_kit'] = 'korjauskitti', + ['body_kit'] = 'korikitti', + ['craft'] = 'valmista', + ['craft_menu'] = 'paina [E] avataksesi valmistus menu', + ['billing'] = 'laskutus', + ['hijack'] = 'avaa lukot', + ['repair'] = 'korjaa', + ['clean'] = 'pese', + ['imp_veh'] = 'takavarikoi', + ['place_objects'] = 'aseta objekteja', + ['invoice_amount'] = 'laskun summa', + ['amount_invalid'] = 'virheellinen summa', + ['no_players_nearby'] = 'ei pelaajia lähettyvillä', + ['no_vehicle_nearby'] = 'there is no nearby vehicle', + ['inside_vehicle'] = 'you can\'t do this from inside the vehicle!', + ['vehicle_unlocked'] = 'ajoneuvo Avattu', + ['vehicle_repaired'] = 'ajoneuvo Korjattu', + ['vehicle_cleaned'] = 'ajoneuvo pesty', + ['vehicle_impounded'] = 'ajoneuvo ~r~Takavarikoitu', + ['must_seat_driver'] = 'sinun pitää olla ~r~kuskin paikalla', + ['must_near'] = 'sinun pitää olla ~r~ajoneuvon lähellä että voit takavarikoida.', + ['vehicle_success_attached'] = 'ajoneuvo onnistuneesti kytketty!.', + ['please_drop_off'] = 'vie ajoneuvo korjauspajan pihalle, kiitos.', + ['cant_attach_own_tt'] = '~r~Et voi kytkeä omaa hinausautoa', + ['no_veh_att'] = 'täällä ei ole ~r~ajoneuvoa jota kytkeä', + ['not_right_veh'] = 'tämä ei ole oikea ajoneuvo', + ['veh_det_succ'] = 'ajoneuvo onnistuunesti irroitettu!', + ['imp_flatbed'] = '~r~Toiminto mahdoton! Sinulla pitää olla Flatbed tähän.', + ['objects'] = 'objektit', + ['roadcone'] = 'kartio', + ['toolbox'] = 'työkalupakki', + ['mechanic_stock'] = 'mekaanikon varasto', + ['quantity'] = 'määrä', + ['invalid_quantity'] = 'virheellinen summa', + ['inventory'] = 'reppu', + ['veh_unlocked'] = 'Ajoneuvo avattu', + ['hijack_failed'] = '~r~Tiirikointi epäonnistu', + ['body_repaired'] = 'Kori korjattu', + ['veh_repaired'] = 'Ajoneuvo korjattu', + ['veh_stored'] = 'paina [E] laittaaksesi auto talliin.', + ['press_remove_obj'] = 'paina [E] poistaaksesi objekti', + ['please_tow'] = 'voisitko hinata ajoneuvon, kiitos', + ['wait_five'] = 'sinun pitää ~r~odottaa 5 minuuttia', + ['must_in_flatbed'] = 'sinun pitää olla flatbedin kyydissä aloitaaksesi.', + ['mechanic_customer'] = 'mekaanikon Asiakas', + ['you_do_not_room'] = '~r~Sinulla ei ole enempää tilaa', + ['recovery_gas_can'] = 'Kaasupullon täyttö menossa...', + ['recovery_repair_tools'] = 'Korjaustyökalujen kerääminen menossa...', + ['recovery_body_tools'] = 'Korin työkalujen kerääminen menossa...', + ['not_enough_gas_can'] = 'sinulla ~r~ei ole tarpeeksi kaasupulloja.', + ['assembling_blowtorch'] = 'kasataan Polttoleikkuria...', + ['not_enough_repair_tools'] = 'sinulla ~r~ei ole tarpeeksi korjaus työkaluja.', + ['assembling_repair_kit'] = 'kasataan Korjauskittiä...', + ['not_enough_body_tools'] = 'sinulla ~r~ei ole tarpeeksi kori työkaluja.', + ['assembling_body_kit'] = 'kasataan Korikittiä...', + ['your_comp_earned'] = 'yrityksesi tienasi $', + ['you_used_blowtorch'] = 'sinä käytit yhden Polttoleikkurin', + ['you_used_repair_kit'] = 'sinä käytit yhden Korjauskitin', + ['you_used_body_kit'] = 'sinä käytit yhden Korikitin', + ['have_withdrawn'] = 'sinä nostit x%s %s', + ['have_deposited'] = 'sinä talletit x%s %s', + ['player_cannot_hold'] = 'sinulla ~r~ei ole tarpeeksi vapaata tilaa repussasi!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fr.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fr.lua index e85516f13..eb9283bd4 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fr.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/fr.lua @@ -1,86 +1,86 @@ -Locales["fr"] = { - ["mechanic"] = "mécano", - ["drive_to_indicated"] = "Conduisez jusqu'à l'endroit indiqué", - ["mission_canceled"] = "Mission ~r~annulée", - ["vehicle_list"] = "sortir véhicule", - ["work_wear"] = "tenue de travail", - ["civ_wear"] = "Tenue civile", - ["deposit_stock"] = "Déposer Stock", - ["withdraw_stock"] = "Prendre Stock", - ["boss_actions"] = "action patron", - ["service_vehicle"] = "Véhicule de service", - ["flat_bed"] = "plateau", - ["tow_truck"] = "dépanneuse", - ["service_full"] = "service complet : ", - ["open_actions"] = "Appuyez sur [E] pour accéder au menu.", - ["harvest"] = "récolte", - ["harvest_menu"] = "Appuyez sur [E] pour accéder au menu de récolte.", - ["not_experienced_enough"] = "Vous n'êtes ~r~pas assez expérimenté pour effectuer cette action.", - ["gas_can"] = "Bouteille de gaz", - ["repair_tools"] = "Outils réparation", - ["body_work_tools"] = "Outils carosserie", - ["blowtorch"] = "chalumeaux", - ["repair_kit"] = "kit réparation", - ["body_kit"] = "kit carosserie", - ["craft"] = "établi", - ["craft_menu"] = "appuyez sur [E] pour accéder au menu établi.", - ["billing"] = "facturation", - ["hijack"] = "crocheter", - ["repair"] = "réparer", - ["clean"] = "nettoyer", - ["imp_veh"] = "fourrière", - ["place_objects"] = "placer objets", - ["invoice_amount"] = "montant de la facture", - ["amount_invalid"] = "montant invalide", - ["no_players_nearby"] = "aucun joueur à proximité", - ["no_vehicle_nearby"] = "aucun véhicule à proximité", - ["inside_vehicle"] = "vous ne pouvez pas effectuer cette action depuis un véhicule!", - ["vehicle_unlocked"] = "véhicule déverrouillé", - ["vehicle_repaired"] = "véhicule réparé", - ["vehicle_cleaned"] = "véhicule nettoyé", - ["vehicle_impounded"] = "vehicule ~r~mis en fourrière", - ["must_seat_driver"] = "vous devez être assis du ~r~côté conducteur!", - ["must_near"] = "vous devez être ~r~près d'un véhicule pour le mettre en fourrière", - ["vehicle_success_attached"] = "vehicule attaché avec succès!", - ["please_drop_off"] = "veuillez déposer le véhicule à la concession", - ["cant_attach_own_tt"] = "~r~Impossible d'attacher votre propre dépanneuse", - ["no_veh_att"] = "il n'y a ~r~pas de véhicule à attacher", - ["not_right_veh"] = "ce n'est pas le bon véhicule", - ["veh_det_succ"] = "vehicule détaché avec succès!", - ["imp_flatbed"] = "~r~Impossible! Vous devez avoir un Flatbed pour ça", - ["objects"] = "objets", - ["roadcone"] = "plot", - ["toolbox"] = "boîte à outils", - ["mechanic_stock"] = "coffre de l'entreprise", - ["quantity"] = "quantité", - ["invalid_quantity"] = "quantité invalide", - ["inventory"] = "inventaire", - ["veh_unlocked"] = "Véhicule déverouillé", - ["hijack_failed"] = "~r~Crochetage raté", - ["body_repaired"] = "Carosserie réparée", - ["veh_repaired"] = "Véhicule réparé", - ["veh_stored"] = "appuyez sur [E] pour ranger le véhicule.", - ["press_remove_obj"] = "appuyez sur [E] pour enlever l'objet", - ["please_tow"] = "veuillez remorquer le véhicule", - ["wait_five"] = "Vous devez ~r~attendre 5 minutes", - ["must_in_flatbed"] = "Vous devez être en flatbed pour commencer la mission", - ["not_right_place"] = "Vous devez être au bon endroit pour faire cela", - ["mechanic_customer"] = "client mecano", - ["you_do_not_room"] = "~r~Vous n'avez plus de place", - ["recovery_gas_can"] = "Récupération de bouteille de gaz...", - ["recovery_repair_tools"] = "Récupération d'outils réparation...", - ["recovery_body_tools"] = "Récupération d'outils carosserie...", - ["not_enough_gas_can"] = "Vous n'avez ~r~pas assez de bouteille de gaz", - ["assembling_blowtorch"] = "Assemblage de chalumeaux...", - ["not_enough_repair_tools"] = "Vous n'avez ~r~pas assez d'outils réparation", - ["assembling_repair_kit"] = "Assemblage de kit réparation...", - ["not_enough_body_tools"] = "Vous n'avez ~r~pas assez d'outils carosserie", - ["assembling_body_kit"] = "Assemblage de kit carosserie...", - ["your_comp_earned"] = "Votre société a gagné $", - ["you_used_blowtorch"] = "Vous avez utilisé un chalumeau", - ["you_used_repair_kit"] = "Vous avez utilisé un kit de réparation", - ["you_used_body_kit"] = "Vous avez utilisé un kit de carosserie", - ["have_withdrawn"] = "vous avez pris x%s %s", - ["have_deposited"] = "vous avez déposé x%s %s", - ["player_cannot_hold"] = "vous n'avez ~r~pas assez d'espace libre dans votre inventaire!", +Locales['fr'] = { + ['mechanic'] = 'mécano', + ['drive_to_indicated'] = 'Conduisez jusqu\'à l\'endroit indiqué', + ['mission_canceled'] = 'Mission ~r~annulée', + ['vehicle_list'] = 'sortir véhicule', + ['work_wear'] = 'tenue de travail', + ['civ_wear'] = 'Tenue civile', + ['deposit_stock'] = 'Déposer Stock', + ['withdraw_stock'] = 'Prendre Stock', + ['boss_actions'] = 'action patron', + ['service_vehicle'] = 'Véhicule de service', + ['flat_bed'] = 'plateau', + ['tow_truck'] = 'dépanneuse', + ['service_full'] = 'service complet : ', + ['open_actions'] = 'Appuyez sur [E] pour accéder au menu.', + ['harvest'] = 'récolte', + ['harvest_menu'] = 'Appuyez sur [E] pour accéder au menu de récolte.', + ['not_experienced_enough'] = 'Vous n\'êtes ~r~pas assez expérimenté pour effectuer cette action.', + ['gas_can'] = 'Bouteille de gaz', + ['repair_tools'] = 'Outils réparation', + ['body_work_tools'] = 'Outils carosserie', + ['blowtorch'] = 'chalumeaux', + ['repair_kit'] = 'kit réparation', + ['body_kit'] = 'kit carosserie', + ['craft'] = 'établi', + ['craft_menu'] = 'appuyez sur [E] pour accéder au menu établi.', + ['billing'] = 'facturation', + ['hijack'] = 'crocheter', + ['repair'] = 'réparer', + ['clean'] = 'nettoyer', + ['imp_veh'] = 'fourrière', + ['place_objects'] = 'placer objets', + ['invoice_amount'] = 'montant de la facture', + ['amount_invalid'] = 'montant invalide', + ['no_players_nearby'] = 'aucun joueur à proximité', + ['no_vehicle_nearby'] = 'aucun véhicule à proximité', + ['inside_vehicle'] = 'vous ne pouvez pas effectuer cette action depuis un véhicule!', + ['vehicle_unlocked'] = 'véhicule déverrouillé', + ['vehicle_repaired'] = 'véhicule réparé', + ['vehicle_cleaned'] = 'véhicule nettoyé', + ['vehicle_impounded'] = 'vehicule ~r~mis en fourrière', + ['must_seat_driver'] = 'vous devez être assis du ~r~côté conducteur!', + ['must_near'] = 'vous devez être ~r~près d\'un véhicule pour le mettre en fourrière', + ['vehicle_success_attached'] = 'vehicule attaché avec succès!', + ['please_drop_off'] = 'veuillez déposer le véhicule à la concession', + ['cant_attach_own_tt'] = '~r~Impossible d\'attacher votre propre dépanneuse', + ['no_veh_att'] = 'il n\'y a ~r~pas de véhicule à attacher', + ['not_right_veh'] = 'ce n\'est pas le bon véhicule', + ['veh_det_succ'] = 'vehicule détaché avec succès!', + ['imp_flatbed'] = '~r~Impossible! Vous devez avoir un Flatbed pour ça', + ['objects'] = 'objets', + ['roadcone'] = 'plot', + ['toolbox'] = 'boîte à outils', + ['mechanic_stock'] = 'coffre de l\'entreprise', + ['quantity'] = 'quantité', + ['invalid_quantity'] = 'quantité invalide', + ['inventory'] = 'inventaire', + ['veh_unlocked'] = 'Véhicule déverouillé', + ['hijack_failed'] = '~r~Crochetage raté', + ['body_repaired'] = 'Carosserie réparée', + ['veh_repaired'] = 'Véhicule réparé', + ['veh_stored'] = 'appuyez sur [E] pour ranger le véhicule.', + ['press_remove_obj'] = 'appuyez sur [E] pour enlever l\'objet', + ['please_tow'] = 'veuillez remorquer le véhicule', + ['wait_five'] = 'Vous devez ~r~attendre 5 minutes', + ['must_in_flatbed'] = 'Vous devez être en flatbed pour commencer la mission', + ['not_right_place'] = 'Vous devez être au bon endroit pour faire cela', + ['mechanic_customer'] = 'client mecano', + ['you_do_not_room'] = '~r~Vous n\'avez plus de place', + ['recovery_gas_can'] = 'Récupération de bouteille de gaz...', + ['recovery_repair_tools'] = 'Récupération d\'outils réparation...', + ['recovery_body_tools'] = 'Récupération d\'outils carosserie...', + ['not_enough_gas_can'] = 'Vous n\'avez ~r~pas assez de bouteille de gaz', + ['assembling_blowtorch'] = 'Assemblage de chalumeaux...', + ['not_enough_repair_tools'] = 'Vous n\'avez ~r~pas assez d\'outils réparation', + ['assembling_repair_kit'] = 'Assemblage de kit réparation...', + ['not_enough_body_tools'] = 'Vous n\'avez ~r~pas assez d\'outils carosserie', + ['assembling_body_kit'] = 'Assemblage de kit carosserie...', + ['your_comp_earned'] = 'Votre société a gagné $', + ['you_used_blowtorch'] = 'Vous avez utilisé un chalumeau', + ['you_used_repair_kit'] = 'Vous avez utilisé un kit de réparation', + ['you_used_body_kit'] = 'Vous avez utilisé un kit de carosserie', + ['have_withdrawn'] = 'vous avez pris x%s %s', + ['have_deposited'] = 'vous avez déposé x%s %s', + ['player_cannot_hold'] = 'vous n\'avez ~r~pas assez d\'espace libre dans votre inventaire!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/hu.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/hu.lua index a757fa804..2255cc257 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/hu.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/hu.lua @@ -1,86 +1,86 @@ -Locales["hu"] = { - ["mechanic"] = "LS Custom Tuningoló telep", - ["drive_to_indicated"] = "[Információ]: Menj a kijelölt pontra.", - ["mission_canceled"] = "Küldetés ~r~megszakítva", - ["vehicle_list"] = "Munkajárművek", - ["work_wear"] = "Munkaruha", - ["civ_wear"] = "Civil ruházat", - ["deposit_stock"] = "Készlet berakás", - ["withdraw_stock"] = "Készlet kivétel", - ["boss_actions"] = "Leader Panel", - ["service_vehicle"] = "szervíz jármű", - ["flat_bed"] = "Platós kocsi", - ["tow_truck"] = "Vontató", - ["service_full"] = "Szervíz full: ", - ["open_actions"] = "[Információ]: Nyomd meg az [E] gombot a menü megnyitásához", - ["harvest"] = "aratás", - ["harvest_menu"] = "nyomd meg a [E] gombot az aratás menühöz.", - ["not_experienced_enough"] = "nem vagy elég tapasztalt hogy végrehatjsd a műveletet", - ["gas_can"] = "nitro", - ["repair_tools"] = "Javítószerszámok", - ["body_work_tools"] = "karosszéria szerszámok", - ["blowtorch"] = "fújólámpa", - ["repair_kit"] = "javítókészlet", - ["body_kit"] = "body Kit", - ["craft"] = "barkácsolás", - ["craft_menu"] = "nyomd meg a [E] gombot a barkácsolás menü elérséhez", - ["billing"] = "Munkadíj átadása", - ["hijack"] = "Kocsi feltörése", - ["repair"] = "Javítás", - ["clean"] = "Kocsi lemosása", - ["imp_veh"] = "Lefoglalás", - ["place_objects"] = "Objectek lerakása", - ["invoice_amount"] = "Írd be az összeget (( Szabályzat alapján ))", - ["amount_invalid"] = "~r~[Információ]: Ismeretlen érték!", - ["no_players_nearby"] = "~r~[Információ]: Nincs a közeledben játékos!", - ["no_vehicle_nearby"] = "~r~[Információ]: Nincs a közeledben kocsi!", - ["inside_vehicle"] = "Jármű belsejéből nem csinálhatod!", - ["vehicle_unlocked"] = "[Információ]: Sikeresen feltörted a kijelölt kocsit!", - ["vehicle_repaired"] = "[Információ]: Kocsi sikeresen megjavítva! Oszd ki a munkadíjat!", - ["vehicle_cleaned"] = "[Információ]: Kocsi sikeresen lemosva!", - ["vehicle_impounded"] = "[Információ]: Kocsi sikeresen lefoglalva!", - ["must_seat_driver"] = "vezetőülésben kell lenned!", - ["must_near"] = "~r~[Információ]: Nincs a közeledben kocsi amit lefoglalhatnál!", - ["vehicle_success_attached"] = "[Információ]: A kocsit sikeresen felraktad a platóra.", - ["please_drop_off"] = "[Információ]: Most vidd el a kijelölt pontra!", - ["cant_attach_own_tt"] = "~r~[Információ]: Nem teheted meg!", - ["no_veh_att"] = "nincs csatlakoztatható ~r~jármű", - ["not_right_veh"] = "ez nem megfelelő jármű", - ["not_right_place"] = "ez nem a megfelelő hely", - ["veh_det_succ"] = "[Információ]: Sikeresen levetted a kocsit a platóról!", - ["imp_flatbed"] = "~r~[Információ]: Nem teheted meg!", - ["objects"] = "objectek", - ["roadcone"] = "útkúp", - ["toolbox"] = "eszköztár", - ["mechanic_stock"] = "Szerelő készlet", - ["quantity"] = "mennyiség", - ["invalid_quantity"] = "érvénytelen mennyiség", - ["inventory"] = "leltár", - ["veh_unlocked"] = "Jármű kinyitva", - ["hijack_failed"] = "~r~Eltérítés sikertelen", - ["body_repaired"] = "Body javítva", - ["veh_repaired"] = "Jármű javítva", - ["veh_stored"] = "[Információ]: Nyomd meg az [E] gombot a kocsi lerakásához.", - ["press_remove_obj"] = "[Információ]: Nyomd meg az [E] gombot a tárgy törléséhez", - ["please_tow"] = "[Információ]: Rakd fel a platóra a kocsit! (( F6 panel ))", - ["wait_five"] = "Neked muszáj ~r~várni 5 percet", - ["must_in_flatbed"] = "[Információ]: Csak platós kocsival tudsz küldetést csinálni!", - ["mechanic_customer"] = "Szerelő ügyfél", - ["you_do_not_room"] = "~r~Nincs több helyed", - ["recovery_gas_can"] = "Gázpalack Visszakeresés...", - ["recovery_repair_tools"] = "Javító szerszámok Visszakeresés...", - ["recovery_body_tools"] = "Body szerszámok Visszakeresés...", - ["not_enough_gas_can"] = "Nincs elég gázpalackod", - ["assembling_blowtorch"] = "Összeszerelés Fújólámpa...", - ["not_enough_repair_tools"] = "Nincs elég javítószerszámod", - ["assembling_repair_kit"] = "Összeszerelés Javító készlet...", - ["not_enough_body_tools"] = "Nincs elég body szerszámod", - ["assembling_body_kit"] = "Összeszerelés Body készlet...", - ["your_comp_earned"] = "[Információ]: Gratulálok, kapott egy kis pénzt a frakció és te is! ~r~", - ["you_used_blowtorch"] = "használtál egy fújólámpát", - ["you_used_repair_kit"] = "használtál egy Javító készletet", - ["you_used_body_kit"] = "használtál egy Body készletet", - ["have_withdrawn"] = "Kivettél x%s %s", - ["have_deposited"] = "Beraktál x%s %s", - ["player_cannot_hold"] = "Nincs elég szabad hely az inventorydban", -} +Locales['hu'] = { + ['mechanic'] = 'LS Custom Tuningoló telep', + ['drive_to_indicated'] = '[Információ]: Menj a kijelölt pontra.', + ['mission_canceled'] = 'Küldetés ~r~megszakítva', + ['vehicle_list'] = 'Munkajárművek', + ['work_wear'] = 'Munkaruha', + ['civ_wear'] = 'Civil ruházat', + ['deposit_stock'] = 'Készlet berakás', + ['withdraw_stock'] = 'Készlet kivétel', + ['boss_actions'] = 'Leader Panel', + ['service_vehicle'] = 'szervíz jármű', + ['flat_bed'] = 'Platós kocsi', + ['tow_truck'] = 'Vontató', + ['service_full'] = 'Szervíz full: ', + ['open_actions'] = '[Információ]: Nyomd meg az [E] gombot a menü megnyitásához', + ['harvest'] = 'aratás', + ['harvest_menu'] = 'nyomd meg a [E] gombot az aratás menühöz.', + ['not_experienced_enough'] = 'nem vagy elég tapasztalt hogy végrehatjsd a műveletet', + ['gas_can'] = 'nitro', + ['repair_tools'] = 'Javítószerszámok', + ['body_work_tools'] = 'karosszéria szerszámok', + ['blowtorch'] = 'fújólámpa', + ['repair_kit'] = 'javítókészlet', + ['body_kit'] = 'body Kit', + ['craft'] = 'barkácsolás', + ['craft_menu'] = 'nyomd meg a [E] gombot a barkácsolás menü elérséhez', + ['billing'] = 'Munkadíj átadása', + ['hijack'] = 'Kocsi feltörése', + ['repair'] = 'Javítás', + ['clean'] = 'Kocsi lemosása', + ['imp_veh'] = 'Lefoglalás', + ['place_objects'] = 'Objectek lerakása', + ['invoice_amount'] = 'Írd be az összeget (( Szabályzat alapján ))', + ['amount_invalid'] = '~r~[Információ]: Ismeretlen érték!', + ['no_players_nearby'] = '~r~[Információ]: Nincs a közeledben játékos!', + ['no_vehicle_nearby'] = '~r~[Információ]: Nincs a közeledben kocsi!', + ['inside_vehicle'] = 'Jármű belsejéből nem csinálhatod!', + ['vehicle_unlocked'] = '[Információ]: Sikeresen feltörted a kijelölt kocsit!', + ['vehicle_repaired'] = '[Információ]: Kocsi sikeresen megjavítva! Oszd ki a munkadíjat!', + ['vehicle_cleaned'] = '[Információ]: Kocsi sikeresen lemosva!', + ['vehicle_impounded'] = '[Információ]: Kocsi sikeresen lefoglalva!', + ['must_seat_driver'] = 'vezetőülésben kell lenned!', + ['must_near'] = '~r~[Információ]: Nincs a közeledben kocsi amit lefoglalhatnál!', + ['vehicle_success_attached'] = '[Információ]: A kocsit sikeresen felraktad a platóra.', + ['please_drop_off'] = '[Információ]: Most vidd el a kijelölt pontra!', + ['cant_attach_own_tt'] = '~r~[Információ]: Nem teheted meg!', + ['no_veh_att'] = 'nincs csatlakoztatható ~r~jármű', + ['not_right_veh'] = 'ez nem megfelelő jármű', + ['not_right_place'] = 'ez nem a megfelelő hely', + ['veh_det_succ'] = '[Információ]: Sikeresen levetted a kocsit a platóról!', + ['imp_flatbed'] = '~r~[Információ]: Nem teheted meg!', + ['objects'] = 'objectek', + ['roadcone'] = 'útkúp', + ['toolbox'] = 'eszköztár', + ['mechanic_stock'] = 'Szerelő készlet', + ['quantity'] = 'mennyiség', + ['invalid_quantity'] = 'érvénytelen mennyiség', + ['inventory'] = 'leltár', + ['veh_unlocked'] = 'Jármű kinyitva', + ['hijack_failed'] = '~r~Eltérítés sikertelen', + ['body_repaired'] = 'Body javítva', + ['veh_repaired'] = 'Jármű javítva', + ['veh_stored'] = '[Információ]: Nyomd meg az [E] gombot a kocsi lerakásához.', + ['press_remove_obj'] = '[Információ]: Nyomd meg az [E] gombot a tárgy törléséhez', + ['please_tow'] = '[Információ]: Rakd fel a platóra a kocsit! (( F6 panel ))', + ['wait_five'] = 'Neked muszáj ~r~várni 5 percet', + ['must_in_flatbed'] = '[Információ]: Csak platós kocsival tudsz küldetést csinálni!', + ['mechanic_customer'] = 'Szerelő ügyfél', + ['you_do_not_room'] = '~r~Nincs több helyed', + ['recovery_gas_can'] = 'Gázpalack Visszakeresés...', + ['recovery_repair_tools'] = 'Javító szerszámok Visszakeresés...', + ['recovery_body_tools'] = 'Body szerszámok Visszakeresés...', + ['not_enough_gas_can'] = 'Nincs elég gázpalackod', + ['assembling_blowtorch'] = 'Összeszerelés Fújólámpa...', + ['not_enough_repair_tools'] = 'Nincs elég javítószerszámod', + ['assembling_repair_kit'] = 'Összeszerelés Javító készlet...', + ['not_enough_body_tools'] = 'Nincs elég body szerszámod', + ['assembling_body_kit'] = 'Összeszerelés Body készlet...', + ['your_comp_earned'] = '[Információ]: Gratulálok, kapott egy kis pénzt a frakció és te is! ~r~', + ['you_used_blowtorch'] = 'használtál egy fújólámpát', + ['you_used_repair_kit'] = 'használtál egy Javító készletet', + ['you_used_body_kit'] = 'használtál egy Body készletet', + ['have_withdrawn'] = 'Kivettél x%s %s', + ['have_deposited'] = 'Beraktál x%s %s', + ['player_cannot_hold'] = 'Nincs elég szabad hely az inventorydban', +} \ No newline at end of file diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/it.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/it.lua index f7370dd1a..b1d4b8d33 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/it.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/it.lua @@ -1,86 +1,86 @@ -Locales["it"] = { - ["mechanic"] = "meccanico", - ["drive_to_indicated"] = "guida fino alla posizione indicata.", - ["mission_canceled"] = "missione annullata", - ["vehicle_list"] = "elenco veicoli", - ["work_wear"] = "abbigliamento da lavoro", - ["civ_wear"] = "abiti civili", - ["deposit_stock"] = "deposito", - ["withdraw_stock"] = "ritira", - ["boss_actions"] = "azioni boss", - ["service_vehicle"] = "veicoli di servizio", - ["flat_bed"] = "flatbed", - ["tow_truck"] = "carro attrezzi", - ["service_full"] = "servizio completo: ", - ["open_actions"] = "premi [E] per accedere al menu.", - ["harvest"] = "raccolto", - ["harvest_menu"] = "premi [E] per accedere al menu raccolto.", - ["not_experienced_enough"] = "non hai abbastanza esperienza per eseguire questa azione.", - ["gas_can"] = "bombola del gas", - ["repair_tools"] = "riparazione strumenti", - ["body_work_tools"] = "strumenti carrozzeria", - ["blowtorch"] = "fiamma ossidrica", - ["repair_kit"] = "kit di riparazione", - ["body_kit"] = "body Kit", - ["craft"] = "creazione", - ["craft_menu"] = "premi [E] per accedere al menu di creazione.", - ["billing"] = "fattura", - ["hijack"] = "trasportare", - ["repair"] = "riparazione", - ["clean"] = "pulito", - ["imp_veh"] = "sequestrato", - ["place_objects"] = "posiziona oggetti", - ["invoice_amount"] = "importo fattura", - ["amount_invalid"] = "importo non valido", - ["no_players_nearby"] = "nessun giocatore nelle vicinanze", - ["no_vehicle_nearby"] = "nessun veicolo nelle vicinanze", - ["inside_vehicle"] = "non puoi farlo dall'interno del veicolo!", - ["vehicle_unlocked"] = "il veicolo è stato sbloccato", - ["vehicle_repaired"] = "il veicolo è stato riparato", - ["vehicle_cleaned"] = "il veicolo è stato pulito", - ["vehicle_impounded"] = "il veicolo è stato sequestrato", - ["must_seat_driver"] = "devi essere al posto di guida!", - ["must_near"] = "devi essere vicino il veicolo per sequestrarlo.", - ["vehicle_success_attached"] = "veicolo collegato con successo", - ["please_drop_off"] = "perfavore lascia il veicolo al garage", - ["cant_attach_own_tt"] = "non puoi attaccare il tuo carro attrezzi", - ["no_veh_att"] = "non c'è nessu veicolo da attaccare", - ["not_right_veh"] = "questo non è il veicolo giusto", - ["not_right_place"] = "questo non è il posto giusto", - ["veh_det_succ"] = "veicolo staccato con successo!", - ["imp_flatbed"] = "azione impossibile! hai bisogno di un pianale per caricare il veicolo", - ["objects"] = "oggetti", - ["roadcone"] = "cono stradale", - ["toolbox"] = "cassetta degli attrezzi", - ["mechanic_stock"] = "deposito meccanico", - ["quantity"] = "quantità", - ["invalid_quantity"] = "quantità non valida", - ["inventory"] = "inventario", - ["veh_unlocked"] = "veicolo sbloccato", - ["hijack_failed"] = "traino fallito", - ["body_repaired"] = "carrozzeria riparata", - ["veh_repaired"] = "veicolo riparato", - ["veh_stored"] = "press [E] per depositare il veicolo.", - ["press_remove_obj"] = "premi [E] per rimuovere", - ["please_tow"] = "perfavore traina il veicolo", - ["wait_five"] = "devi attendere 5 minuti", - ["must_in_flatbed"] = "devi essere in un flatbed per avviare la missione", - ["mechanic_customer"] = "cliente meccanico", - ["you_do_not_room"] = "non hai più spazio", - ["recovery_gas_can"] = "recupero bomboletta di gas...", - ["recovery_repair_tools"] = "recupero degli strumenti di riparazione...", - ["recovery_body_tools"] = "recupero body tools...", - ["not_enough_gas_can"] = "non hai abbastanza bomboletta di gas.", - ["assembling_blowtorch"] = "montaggio fiamma ossidrica...", - ["not_enough_repair_tools"] = "non hai abbastanza strumenti di riparazione.", - ["assembling_repair_kit"] = "assemblaggio kit di riparazione...", - ["not_enough_body_tools"] = "non hai abbastanza body tools.", - ["assembling_body_kit"] = "Assemblaggio Body Kit...", - ["your_comp_earned"] = "la tua azienda ha guadagnato $", - ["you_used_blowtorch"] = "hai usato una fiamma ossidrica", - ["you_used_repair_kit"] = "hai usato un Kit di riparazione", - ["you_used_body_kit"] = "hai usato un Body Kit", - ["have_withdrawn"] = "hai prelevato x%s %s", - ["have_deposited"] = "hai depositato x%s %s", - ["player_cannot_hold"] = "non hai abbastanza spazio libero nel tuo inventario!", +Locales['it'] = { + ['mechanic'] = 'meccanico', + ['drive_to_indicated'] = 'guida fino alla posizione indicata.', + ['mission_canceled'] = 'missione annullata', + ['vehicle_list'] = 'elenco veicoli', + ['work_wear'] = 'abbigliamento da lavoro', + ['civ_wear'] = 'abiti civili', + ['deposit_stock'] = 'deposito', + ['withdraw_stock'] = 'ritira', + ['boss_actions'] = 'azioni boss', + ['service_vehicle'] = 'veicoli di servizio', + ['flat_bed'] = 'flatbed', + ['tow_truck'] = 'carro attrezzi', + ['service_full'] = 'servizio completo: ', + ['open_actions'] = 'premi [E] per accedere al menu.', + ['harvest'] = 'raccolto', + ['harvest_menu'] = 'premi [E] per accedere al menu raccolto.', + ['not_experienced_enough'] = 'non hai abbastanza esperienza per eseguire questa azione.', + ['gas_can'] = 'bombola del gas', + ['repair_tools'] = 'riparazione strumenti', + ['body_work_tools'] = 'strumenti carrozzeria', + ['blowtorch'] = 'fiamma ossidrica', + ['repair_kit'] = 'kit di riparazione', + ['body_kit'] = 'body Kit', + ['craft'] = 'creazione', + ['craft_menu'] = 'premi [E] per accedere al menu di creazione.', + ['billing'] = 'fattura', + ['hijack'] = 'trasportare', + ['repair'] = 'riparazione', + ['clean'] = 'pulito', + ['imp_veh'] = 'sequestrato', + ['place_objects'] = 'posiziona oggetti', + ['invoice_amount'] = 'importo fattura', + ['amount_invalid'] = 'importo non valido', + ['no_players_nearby'] = 'nessun giocatore nelle vicinanze', + ['no_vehicle_nearby'] = 'nessun veicolo nelle vicinanze', + ['inside_vehicle'] = 'non puoi farlo dall\'interno del veicolo!', + ['vehicle_unlocked'] = 'il veicolo è stato sbloccato', + ['vehicle_repaired'] = 'il veicolo è stato riparato', + ['vehicle_cleaned'] = 'il veicolo è stato pulito', + ['vehicle_impounded'] = 'il veicolo è stato sequestrato', + ['must_seat_driver'] = 'devi essere al posto di guida!', + ['must_near'] = 'devi essere vicino il veicolo per sequestrarlo.', + ['vehicle_success_attached'] = 'veicolo collegato con successo', + ['please_drop_off'] = 'perfavore lascia il veicolo al garage', + ['cant_attach_own_tt'] = 'non puoi attaccare il tuo carro attrezzi', + ['no_veh_att'] = 'non c\'è nessu veicolo da attaccare', + ['not_right_veh'] = 'questo non è il veicolo giusto', + ['not_right_place'] = 'questo non è il posto giusto', + ['veh_det_succ'] = 'veicolo staccato con successo!', + ['imp_flatbed'] = 'azione impossibile! hai bisogno di un pianale per caricare il veicolo', + ['objects'] = 'oggetti', + ['roadcone'] = 'cono stradale', + ['toolbox'] = 'cassetta degli attrezzi', + ['mechanic_stock'] = 'deposito meccanico', + ['quantity'] = 'quantità', + ['invalid_quantity'] = 'quantità non valida', + ['inventory'] = 'inventario', + ['veh_unlocked'] = 'veicolo sbloccato', + ['hijack_failed'] = 'traino fallito', + ['body_repaired'] = 'carrozzeria riparata', + ['veh_repaired'] = 'veicolo riparato', + ['veh_stored'] = 'press [E] per depositare il veicolo.', + ['press_remove_obj'] = 'premi [E] per rimuovere', + ['please_tow'] = 'perfavore traina il veicolo', + ['wait_five'] = 'devi attendere 5 minuti', + ['must_in_flatbed'] = 'devi essere in un flatbed per avviare la missione', + ['mechanic_customer'] = 'cliente meccanico', + ['you_do_not_room'] = 'non hai più spazio', + ['recovery_gas_can'] = 'recupero bomboletta di gas...', + ['recovery_repair_tools'] = 'recupero degli strumenti di riparazione...', + ['recovery_body_tools'] = 'recupero body tools...', + ['not_enough_gas_can'] = 'non hai abbastanza bomboletta di gas.', + ['assembling_blowtorch'] = 'montaggio fiamma ossidrica...', + ['not_enough_repair_tools'] = 'non hai abbastanza strumenti di riparazione.', + ['assembling_repair_kit'] = 'assemblaggio kit di riparazione...', + ['not_enough_body_tools'] = 'non hai abbastanza body tools.', + ['assembling_body_kit'] = 'Assemblaggio Body Kit...', + ['your_comp_earned'] = 'la tua azienda ha guadagnato $', + ['you_used_blowtorch'] = 'hai usato una fiamma ossidrica', + ['you_used_repair_kit'] = 'hai usato un Kit di riparazione', + ['you_used_body_kit'] = 'hai usato un Body Kit', + ['have_withdrawn'] = 'hai prelevato x%s %s', + ['have_deposited'] = 'hai depositato x%s %s', + ['player_cannot_hold'] = 'non hai abbastanza spazio libero nel tuo inventario!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/nl.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/nl.lua index 46c136b33..8c52001d5 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/nl.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/nl.lua @@ -1,85 +1,85 @@ -Locales["nl"] = { - ["mechanic"] = "monteur", - ["drive_to_indicated"] = "Rij naar de aangegeven locatie", - ["mission_canceled"] = "opdracht ~r~geannuleerd", - ["vehicle_list"] = "voertuigenlijst", - ["work_wear"] = "werk kleding", - ["civ_wear"] = "burger kleding", - ["deposit_stock"] = "vooraad wegleggen", - ["withdraw_stock"] = "vooraad opbergen", - ["boss_actions"] = "baas acties", - ["service_vehicle"] = "service voertuig", - ["flat_bed"] = "oprijwagen", - ["tow_truck"] = "sleepwagen", - ["service_full"] = "dienst volledig: ", - ["open_actions"] = "Druk op [E] om in het menu te komen.", - ["harvest"] = "oogsten", - ["harvest_menu"] = "druk op [E] om in het oogst menu te komen.", - ["not_experienced_enough"] = "je hebt ~r~niet genoeg ervaring om dit te doen.", - ["gas_can"] = "jerrycan", - ["repair_tools"] = "reparatie gereedschap", - ["body_work_tools"] = "plaatwerk gereedschap", - ["blowtorch"] = "gasbrander", - ["repair_kit"] = "reparatie set", - ["body_kit"] = "plaatwerk set", - ["craft"] = "maken", - ["craft_menu"] = "druk op [E] om in het maak menu te komen.", - ["billing"] = "factureren", - ["hijack"] = "openbreken", - ["repair"] = "repareer", - ["clean"] = "maak schoon", - ["imp_veh"] = "inbeslag nemen", - ["place_objects"] = "plaats objecten", - ["invoice_amount"] = "factuur bedrag", - ["amount_invalid"] = "ongeldig aantal", - ["no_players_nearby"] = "er is geen speler in de buurt", - ["no_vehicle_nearby"] = "er is geen voertuig in de buurt", - ["inside_vehicle"] = "je kan dit niet doen in een voertuig!", - ["vehicle_unlocked"] = "het voortuig is opengebroken", - ["vehicle_repaired"] = "het voortuig is gerepareerd", - ["vehicle_cleaned"] = "het voortuig is schoongemaakt", - ["vehicle_impounded"] = "het voortuig is ~r~in beslag genomen", - ["must_seat_driver"] = "je moet in de bestuurders stoel zitten", - ["must_near"] = "je moet ~r~dicht bij een voertuig zijn om hem in beslag te nemen.", - ["vehicle_success_attached"] = "voertuig succesvol vastgemaakt", - ["please_drop_off"] = "graag voertuig naar de garage brengen", - ["cant_attach_own_tt"] = "~r~je kan niet je eigen wagen vast maken", - ["no_veh_att"] = "er zijn geen ~r~voertuigen om vast te maken", - ["not_right_veh"] = "dit is niet het juiste voertuig", - ["veh_det_succ"] = "voertuig succesvol losgekoppeld!", - ["imp_flatbed"] = "~r~Actie onmogelijk! je hebt een oprijwagen nodig om deze te laden", - ["objects"] = "objecten", - ["roadcone"] = "pion", - ["toolbox"] = "gereedschaps kist", - ["mechanic_stock"] = "monteurs opslag", - ["quantity"] = "hoeveelheid", - ["invalid_quantity"] = "ongeldige hoeveelheid", - ["inventory"] = "inventaris", - ["veh_unlocked"] = "Voertuig opgengemaakt", - ["hijack_failed"] = "~r~Openbreken mislukt", - ["body_repaired"] = "Plaatwerk gerepareerd", - ["veh_repaired"] = "Voertuig gerepareerd", - ["veh_stored"] = "Druk op [E] om voertuig op te slaan.", - ["press_remove_obj"] = "Druk op [E] om object weg te halen", - ["please_tow"] = "graag voertuig afslepen", - ["wait_five"] = "je moet 5 minuten ~r~wachten", - ["must_in_flatbed"] = "je hebt een oprijwagen nodig voor deze klant", - ["mechanic_customer"] = "klant van garage", - ["you_do_not_room"] = "~r~Je hebt geen ruimte", - ["recovery_gas_can"] = "Jerrycan Ophalen...", - ["recovery_repair_tools"] = "Reparatie gereedschap Ophalen...", - ["recovery_body_tools"] = "Plaatwerk gereedschap Ophalen...", - ["not_enough_gas_can"] = "je hebt ~r~niet genoeg jerrycans.", - ["assembling_blowtorch"] = "In elkaar aan het zetten gasbrander...", - ["not_enough_repair_tools"] = "je hebt ~r~niet genoeg reparatie gereedschap.", - ["assembling_repair_kit"] = "In elkaar aan het zetten reparatie set...", - ["not_enough_body_tools"] = "je hebt ~r~niet genoeg plaatwerk gereedschap.", - ["assembling_body_kit"] = "In elkaar aan het zetten plaatwerk set...", - ["your_comp_earned"] = "de garage heeft verdient €", - ["you_used_blowtorch"] = "je gebruikte een gasbrannder", - ["you_used_repair_kit"] = "je gebruikte een reparatie set", - ["you_used_body_kit"] = "je gebruikte een plaatwerk set", - ["have_withdrawn"] = "je hebt x%s %s opgenomen", - ["have_deposited"] = "je hebt x%s %s gestort ", - ["player_cannot_hold"] = "je hebt ~r~niet genoeg vrije ruimte in je inventaris!", +Locales['nl'] = { + ['mechanic'] = 'monteur', + ['drive_to_indicated'] = 'Rij naar de aangegeven locatie', + ['mission_canceled'] = 'opdracht ~r~geannuleerd', + ['vehicle_list'] = 'voertuigenlijst', + ['work_wear'] = 'werk kleding', + ['civ_wear'] = 'burger kleding', + ['deposit_stock'] = 'vooraad wegleggen', + ['withdraw_stock'] = 'vooraad opbergen', + ['boss_actions'] = 'baas acties', + ['service_vehicle'] = 'service voertuig', + ['flat_bed'] = 'oprijwagen', + ['tow_truck'] = 'sleepwagen', + ['service_full'] = 'dienst volledig: ', + ['open_actions'] = 'Druk op [E] om in het menu te komen.', + ['harvest'] = 'oogsten', + ['harvest_menu'] = 'druk op [E] om in het oogst menu te komen.', + ['not_experienced_enough'] = 'je hebt ~r~niet genoeg ervaring om dit te doen.', + ['gas_can'] = 'jerrycan', + ['repair_tools'] = 'reparatie gereedschap', + ['body_work_tools'] = 'plaatwerk gereedschap', + ['blowtorch'] = 'gasbrander', + ['repair_kit'] = 'reparatie set', + ['body_kit'] = 'plaatwerk set', + ['craft'] = 'maken', + ['craft_menu'] = 'druk op [E] om in het maak menu te komen.', + ['billing'] = 'factureren', + ['hijack'] = 'openbreken', + ['repair'] = 'repareer', + ['clean'] = 'maak schoon', + ['imp_veh'] = 'inbeslag nemen', + ['place_objects'] = 'plaats objecten', + ['invoice_amount'] = 'factuur bedrag', + ['amount_invalid'] = 'ongeldig aantal', + ['no_players_nearby'] = 'er is geen speler in de buurt', + ['no_vehicle_nearby'] = 'er is geen voertuig in de buurt', + ['inside_vehicle'] = 'je kan dit niet doen in een voertuig!', + ['vehicle_unlocked'] = 'het voortuig is opengebroken', + ['vehicle_repaired'] = 'het voortuig is gerepareerd', + ['vehicle_cleaned'] = 'het voortuig is schoongemaakt', + ['vehicle_impounded'] = 'het voortuig is ~r~in beslag genomen', + ['must_seat_driver'] = 'je moet in de bestuurders stoel zitten', + ['must_near'] = 'je moet ~r~dicht bij een voertuig zijn om hem in beslag te nemen.', + ['vehicle_success_attached'] = 'voertuig succesvol vastgemaakt', + ['please_drop_off'] = 'graag voertuig naar de garage brengen', + ['cant_attach_own_tt'] = '~r~je kan niet je eigen wagen vast maken', + ['no_veh_att'] = 'er zijn geen ~r~voertuigen om vast te maken', + ['not_right_veh'] = 'dit is niet het juiste voertuig', + ['veh_det_succ'] = 'voertuig succesvol losgekoppeld!', + ['imp_flatbed'] = '~r~Actie onmogelijk! je hebt een oprijwagen nodig om deze te laden', + ['objects'] = 'objecten', + ['roadcone'] = 'pion', + ['toolbox'] = 'gereedschaps kist', + ['mechanic_stock'] = 'monteurs opslag', + ['quantity'] = 'hoeveelheid', + ['invalid_quantity'] = 'ongeldige hoeveelheid', + ['inventory'] = 'inventaris', + ['veh_unlocked'] = 'Voertuig opgengemaakt', + ['hijack_failed'] = '~r~Openbreken mislukt', + ['body_repaired'] = 'Plaatwerk gerepareerd', + ['veh_repaired'] = 'Voertuig gerepareerd', + ['veh_stored'] = 'Druk op [E] om voertuig op te slaan.', + ['press_remove_obj'] = 'Druk op [E] om object weg te halen', + ['please_tow'] = 'graag voertuig afslepen', + ['wait_five'] = 'je moet 5 minuten ~r~wachten', + ['must_in_flatbed'] = 'je hebt een oprijwagen nodig voor deze klant', + ['mechanic_customer'] = 'klant van garage', + ['you_do_not_room'] = '~r~Je hebt geen ruimte', + ['recovery_gas_can'] = 'Jerrycan Ophalen...', + ['recovery_repair_tools'] = 'Reparatie gereedschap Ophalen...', + ['recovery_body_tools'] = 'Plaatwerk gereedschap Ophalen...', + ['not_enough_gas_can'] = 'je hebt ~r~niet genoeg jerrycans.', + ['assembling_blowtorch'] = 'In elkaar aan het zetten gasbrander...', + ['not_enough_repair_tools'] = 'je hebt ~r~niet genoeg reparatie gereedschap.', + ['assembling_repair_kit'] = 'In elkaar aan het zetten reparatie set...', + ['not_enough_body_tools'] = 'je hebt ~r~niet genoeg plaatwerk gereedschap.', + ['assembling_body_kit'] = 'In elkaar aan het zetten plaatwerk set...', + ['your_comp_earned'] = 'de garage heeft verdient €', + ['you_used_blowtorch'] = 'je gebruikte een gasbrannder', + ['you_used_repair_kit'] = 'je gebruikte een reparatie set', + ['you_used_body_kit'] = 'je gebruikte een plaatwerk set', + ['have_withdrawn'] = 'je hebt x%s %s opgenomen', + ['have_deposited'] = 'je hebt x%s %s gestort ', + ['player_cannot_hold'] = 'je hebt ~r~niet genoeg vrije ruimte in je inventaris!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/pl.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/pl.lua index 90c7412c8..6e9b67cbe 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/pl.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/pl.lua @@ -1,85 +1,85 @@ -Locales["pl"] = { - ["mechanic"] = "mechanik", - ["drive_to_indicated"] = "Jedz do wskazanej lokalizacji.", - ["mission_canceled"] = "misja ~r~anulowana", - ["vehicle_list"] = "lista pojazdów", - ["work_wear"] = "ubrania robocze", - ["civ_wear"] = "ubrania cywilne", - ["deposit_stock"] = "deponuj przedmioty", - ["withdraw_stock"] = "wyciągnij przedmioty", - ["boss_actions"] = "akcje szefa", - ["service_vehicle"] = "serwisuj pojazd", - ["flat_bed"] = "laweta", - ["tow_truck"] = "holownik", - ["service_full"] = "serwis pełny: ", - ["open_actions"] = "wciśnij [E] aby otworzyć menu.", - ["harvest"] = "zbieraj", - ["harvest_menu"] = "wcisnij [E] aby otworzyć menu zbierania.", - ["not_experienced_enough"] = "nie jesteś wystarczająco ~r~doświadczony aby zrobić tą akcję.", - ["gas_can"] = "kanister z paliwem", - ["repair_tools"] = "zestaw do naprawy", - ["body_work_tools"] = "zestaw blacharski", - ["blowtorch"] = "palnik", - ["repair_kit"] = "narzedzia naprawcze", - ["body_kit"] = "karoseria", - ["craft"] = "twórz", - ["craft_menu"] = "wcisnij [E] aby otworzyc menu tworzenia.", - ["billing"] = "faktury", - ["hijack"] = "forsowanie", - ["repair"] = "naprawa", - ["clean"] = "wyczyść", - ["imp_veh"] = "odholowywanie", - ["place_objects"] = "połóż objekt", - ["invoice_amount"] = "suma faktury", - ["amount_invalid"] = "nieprawidłowa suma", - ["no_players_nearby"] = "brak gracza w pobliżu", - ["no_vehicle_nearby"] = "brak pojazdu w pobliżu", - ["inside_vehicle"] = "nie możesz tego zrobić z środka pojazdu!", - ["vehicle_unlocked"] = "pojazd został odblokowany", - ["vehicle_repaired"] = "pojazd został naprawiony", - ["vehicle_cleaned"] = "pojazd został umyty", - ["vehicle_impounded"] = "pojazd został ~r~odholowany", - ["must_seat_driver"] = "musisz być na siedzeniu kierowcy!", - ["must_near"] = "musisz być ~r~blisko pojazdu aby go odholować.", - ["vehicle_success_attached"] = "pojazd przyłączony", - ["please_drop_off"] = "proszę odstawić pojazd w garażu", - ["cant_attach_own_tt"] = "~r~nie możesz podłączyć własnego holwnika", - ["no_veh_att"] = "nie ma ~r~pojazdu do podłączenia", - ["not_right_veh"] = "to nie jest prawidłowy pojazd", - ["veh_det_succ"] = "pojazd odłączony!", - ["imp_flatbed"] = "~r~Akcja niemożliwa! Potrzebujesz lawety aby załadować pojazd", - ["objects"] = "objekty", - ["roadcone"] = "pachołek", - ["toolbox"] = "skrzynka z narzędziami", - ["mechanic_stock"] = "magazyn mechanika", - ["quantity"] = "ilość", - ["invalid_quantity"] = "nieprawidłowa ilość", - ["inventory"] = "ekwipunek", - ["veh_unlocked"] = "Pojazd odblokowany", - ["hijack_failed"] = "~r~Forsowanie nie udane", - ["body_repaired"] = "Karoseria naprawiona", - ["veh_repaired"] = "Pojazd naprawiony", - ["veh_stored"] = "wcisnij [E] aby schować pojazd.", - ["press_remove_obj"] = "wcisnij [E] aby usunąć objekt", - ["please_tow"] = "proszę odholować pojazd", - ["wait_five"] = "musisz ~r~poczekać 5 minut", - ["must_in_flatbed"] = "musisz być w lawecie aby rozpocząć misje", - ["mechanic_customer"] = "klient mechanika", - ["you_do_not_room"] = "~r~Nie masz wiecej miejsca", - ["recovery_gas_can"] = "odzyskiwanie Kanistra z paliwem...", - ["recovery_repair_tools"] = "odzyskiwanie Części naprawczych...", - ["recovery_body_tools"] = "odzyskiwanie Części blacharskich...", - ["not_enough_gas_can"] = "nie posiadasz ~r~wystarczająco paliwa w kanistrze.", - ["assembling_blowtorch"] = "składanie Palnika...", - ["not_enough_repair_tools"] = "nie posiadasz ~r~wystarczająco częsci naprawczych.", - ["assembling_repair_kit"] = "składanie częsci naprawczych...", - ["not_enough_body_tools"] = "nie posiadasz ~r~wystarczająco częsci blacharskich.", - ["assembling_body_kit"] = "składanie częsci blacharskich...", - ["your_comp_earned"] = "twoja firma zarobiła $", - ["you_used_blowtorch"] = "użyłeś palnik", - ["you_used_repair_kit"] = "użyłeś częsci naprawczych", - ["you_used_body_kit"] = "użyłeś częsci blacharskich", - ["have_withdrawn"] = "wyciągnąłeś x%s %s", - ["have_deposited"] = "zdeponowałeś x%s %s", - ["player_cannot_hold"] = "~r~nie masz wystarczająco wolnego miejsca w ekwipunku!", +Locales['pl'] = { + ['mechanic'] = 'mechanik', + ['drive_to_indicated'] = 'Jedz do wskazanej lokalizacji.', + ['mission_canceled'] = 'misja ~r~anulowana', + ['vehicle_list'] = 'lista pojazdów', + ['work_wear'] = 'ubrania robocze', + ['civ_wear'] = 'ubrania cywilne', + ['deposit_stock'] = 'deponuj przedmioty', + ['withdraw_stock'] = 'wyciągnij przedmioty', + ['boss_actions'] = 'akcje szefa', + ['service_vehicle'] = 'serwisuj pojazd', + ['flat_bed'] = 'laweta', + ['tow_truck'] = 'holownik', + ['service_full'] = 'serwis pełny: ', + ['open_actions'] = 'wciśnij [E] aby otworzyć menu.', + ['harvest'] = 'zbieraj', + ['harvest_menu'] = 'wcisnij [E] aby otworzyć menu zbierania.', + ['not_experienced_enough'] = 'nie jesteś wystarczająco ~r~doświadczony aby zrobić tą akcję.', + ['gas_can'] = 'kanister z paliwem', + ['repair_tools'] = 'zestaw do naprawy', + ['body_work_tools'] = 'zestaw blacharski', + ['blowtorch'] = 'palnik', + ['repair_kit'] = 'narzedzia naprawcze', + ['body_kit'] = 'karoseria', + ['craft'] = 'twórz', + ['craft_menu'] = 'wcisnij [E] aby otworzyc menu tworzenia.', + ['billing'] = 'faktury', + ['hijack'] = 'forsowanie', + ['repair'] = 'naprawa', + ['clean'] = 'wyczyść', + ['imp_veh'] = 'odholowywanie', + ['place_objects'] = 'połóż objekt', + ['invoice_amount'] = 'suma faktury', + ['amount_invalid'] = 'nieprawidłowa suma', + ['no_players_nearby'] = 'brak gracza w pobliżu', + ['no_vehicle_nearby'] = 'brak pojazdu w pobliżu', + ['inside_vehicle'] = 'nie możesz tego zrobić z środka pojazdu!', + ['vehicle_unlocked'] = 'pojazd został odblokowany', + ['vehicle_repaired'] = 'pojazd został naprawiony', + ['vehicle_cleaned'] = 'pojazd został umyty', + ['vehicle_impounded'] = 'pojazd został ~r~odholowany', + ['must_seat_driver'] = 'musisz być na siedzeniu kierowcy!', + ['must_near'] = 'musisz być ~r~blisko pojazdu aby go odholować.', + ['vehicle_success_attached'] = 'pojazd przyłączony', + ['please_drop_off'] = 'proszę odstawić pojazd w garażu', + ['cant_attach_own_tt'] = '~r~nie możesz podłączyć własnego holwnika', + ['no_veh_att'] = 'nie ma ~r~pojazdu do podłączenia', + ['not_right_veh'] = 'to nie jest prawidłowy pojazd', + ['veh_det_succ'] = 'pojazd odłączony!', + ['imp_flatbed'] = '~r~Akcja niemożliwa! Potrzebujesz lawety aby załadować pojazd', + ['objects'] = 'objekty', + ['roadcone'] = 'pachołek', + ['toolbox'] = 'skrzynka z narzędziami', + ['mechanic_stock'] = 'magazyn mechanika', + ['quantity'] = 'ilość', + ['invalid_quantity'] = 'nieprawidłowa ilość', + ['inventory'] = 'ekwipunek', + ['veh_unlocked'] = 'Pojazd odblokowany', + ['hijack_failed'] = '~r~Forsowanie nie udane', + ['body_repaired'] = 'Karoseria naprawiona', + ['veh_repaired'] = 'Pojazd naprawiony', + ['veh_stored'] = 'wcisnij [E] aby schować pojazd.', + ['press_remove_obj'] = 'wcisnij [E] aby usunąć objekt', + ['please_tow'] = 'proszę odholować pojazd', + ['wait_five'] = 'musisz ~r~poczekać 5 minut', + ['must_in_flatbed'] = 'musisz być w lawecie aby rozpocząć misje', + ['mechanic_customer'] = 'klient mechanika', + ['you_do_not_room'] = '~r~Nie masz wiecej miejsca', + ['recovery_gas_can'] = 'odzyskiwanie Kanistra z paliwem...', + ['recovery_repair_tools'] = 'odzyskiwanie Części naprawczych...', + ['recovery_body_tools'] = 'odzyskiwanie Części blacharskich...', + ['not_enough_gas_can'] = 'nie posiadasz ~r~wystarczająco paliwa w kanistrze.', + ['assembling_blowtorch'] = 'składanie Palnika...', + ['not_enough_repair_tools'] = 'nie posiadasz ~r~wystarczająco częsci naprawczych.', + ['assembling_repair_kit'] = 'składanie częsci naprawczych...', + ['not_enough_body_tools'] = 'nie posiadasz ~r~wystarczająco częsci blacharskich.', + ['assembling_body_kit'] = 'składanie częsci blacharskich...', + ['your_comp_earned'] = 'twoja firma zarobiła $', + ['you_used_blowtorch'] = 'użyłeś palnik', + ['you_used_repair_kit'] = 'użyłeś częsci naprawczych', + ['you_used_body_kit'] = 'użyłeś częsci blacharskich', + ['have_withdrawn'] = 'wyciągnąłeś x%s %s', + ['have_deposited'] = 'zdeponowałeś x%s %s', + ['player_cannot_hold'] = '~r~nie masz wystarczająco wolnego miejsca w ekwipunku!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/sr.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/sr.lua index 08df10c50..e34062c2e 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/locales/sr.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/locales/sr.lua @@ -1,86 +1,86 @@ -Locales["sr"] = { - ["mechanic"] = "mehaničar", - ["drive_to_indicated"] = "Vozite do označene lokacije.", - ["mission_canceled"] = "Misija prekinuta", - ["vehicle_list"] = "Lista vozila", - ["work_wear"] = "Radno odelo", - ["civ_wear"] = "Civilno odelo", - ["deposit_stock"] = "Ostavite novac", - ["withdraw_stock"] = "Podignite novac", - ["boss_actions"] = "Upravljanje kompjuterom", - ["service_vehicle"] = "Servisiranje vozila", - ["flat_bed"] = "flatbed", - ["tow_truck"] = "tow Truck", - ["service_full"] = "service full: ", - ["open_actions"] = "Pritisnite [E] da pristupite menu.", - ["harvest"] = "berba", - ["harvest_menu"] = "Pritisnite [E] da pristupite berbi.", - ["not_experienced_enough"] = "niste dovoljno iskusni da bi uradili to.", - ["gas_can"] = "gas Can", - ["repair_tools"] = "repair Tools", - ["body_work_tools"] = "bodywork Tools", - ["blowtorch"] = "blowtorch", - ["repair_kit"] = "repair Kit", - ["body_kit"] = "body Kit", - ["craft"] = "kraft", - ["craft_menu"] = "pritisni [E] da pristupis kraftu.", - ["billing"] = "račun", - ["hijack"] = "obijanje", - ["repair"] = "popravka", - ["clean"] = "čišćenje", - ["imp_veh"] = "zaplena", - ["place_objects"] = "Objekti", - ["invoice_amount"] = "Količina", - ["amount_invalid"] = "Nevažeća kolićina", - ["no_players_nearby"] = "nema igrača u blizini", - ["no_vehicle_nearby"] = "nema vozila u blizini", - ["inside_vehicle"] = "ne možete uraditi to iz vozila!", - ["vehicle_unlocked"] = "vozilo je otključano", - ["vehicle_repaired"] = "vozilo je popravljeno", - ["vehicle_cleaned"] = "vozilo je očišćeno", - ["vehicle_impounded"] = "vozilo je zaplenjeno", - ["must_seat_driver"] = "morate biti na vozačevom mestu!", - ["must_near"] = "morate biti u blizini vozila.", - ["vehicle_success_attached"] = "vozilo prikačeno", - ["please_drop_off"] = "ostavite vozilo u garaži", - ["cant_attach_own_tt"] = "ne možete prikačiti to vozilo", - ["no_veh_att"] = "nema vozila u blizini", - ["not_right_veh"] = "to nije pravo vozilo", - ["not_right_place"] = "to nije pravo mesto", - ["veh_det_succ"] = "vozilo otkačeno!", - ["imp_flatbed"] = "Akcija nemoguća! Treba Vam flatbed da zakačite vozilo", - ["objects"] = "objekti", - ["roadcone"] = "čunj", - ["toolbox"] = "toolbox", - ["mechanic_stock"] = "mechanic Stock", - ["quantity"] = "količina", - ["invalid_quantity"] = "nevažeća količina", - ["inventory"] = "inventar", - ["veh_unlocked"] = "Vozilo otključano", - ["hijack_failed"] = "Niste uspeli da obijete vozilo", - ["body_repaired"] = "Body popravljen", - ["veh_repaired"] = "Vozilo popravljeno", - ["veh_stored"] = "pritisni [E] da vratiš vozilo.", - ["press_remove_obj"] = "pritisni [E] da skloniš objekat", - ["please_tow"] = "zakačite vozilo", - ["wait_five"] = "morate sačekati 5 minuta", - ["must_in_flatbed"] = "Morate biti u flatbedu da započnete misiju", - ["mechanic_customer"] = "Mehaničar kupac", - ["you_do_not_room"] = "Nemate više mesta", - ["recovery_gas_can"] = "Povraćaj gasa...", - ["recovery_repair_tools"] = "Repair Tools povraćaj...", - ["recovery_body_tools"] = "Body Tools povraćaj...", - ["not_enough_gas_can"] = "Nemate dovoljno gas cans.", - ["assembling_blowtorch"] = "Sastavljanje Blowtorch...", - ["not_enough_repair_tools"] = "Nemate dovoljno repair tools.", - ["assembling_repair_kit"] = "Sastavljanje Repair Kit...", - ["not_enough_body_tools"] = "Nemate dovoljno body tools.", - ["assembling_body_kit"] = "Sastavljanje Body Kit...", - ["your_comp_earned"] = "Vaša firma je zaradila $", - ["you_used_blowtorch"] = "iskoristili ste blowtorch", - ["you_used_repair_kit"] = "iskoristili ste Repair Kit", - ["you_used_body_kit"] = "iskoristili ste Body Kit", - ["have_withdrawn"] = "podigli ste x%s %s", - ["have_deposited"] = "ostavili ste x%s %s", - ["player_cannot_hold"] = "Nemate više mesta u inventaru!", +Locales['sr'] = { + ['mechanic'] = 'mehaničar', + ['drive_to_indicated'] = 'Vozite do označene lokacije.', + ['mission_canceled'] = 'Misija prekinuta', + ['vehicle_list'] = 'Lista vozila', + ['work_wear'] = 'Radno odelo', + ['civ_wear'] = 'Civilno odelo', + ['deposit_stock'] = 'Ostavite novac', + ['withdraw_stock'] = 'Podignite novac', + ['boss_actions'] = 'Upravljanje kompjuterom', + ['service_vehicle'] = 'Servisiranje vozila', + ['flat_bed'] = 'flatbed', + ['tow_truck'] = 'tow Truck', + ['service_full'] = 'service full: ', + ['open_actions'] = 'Pritisnite [E] da pristupite menu.', + ['harvest'] = 'berba', + ['harvest_menu'] = 'Pritisnite [E] da pristupite berbi.', + ['not_experienced_enough'] = 'niste dovoljno iskusni da bi uradili to.', + ['gas_can'] = 'gas Can', + ['repair_tools'] = 'repair Tools', + ['body_work_tools'] = 'bodywork Tools', + ['blowtorch'] = 'blowtorch', + ['repair_kit'] = 'repair Kit', + ['body_kit'] = 'body Kit', + ['craft'] = 'kraft', + ['craft_menu'] = 'pritisni [E] da pristupis kraftu.', + ['billing'] = 'račun', + ['hijack'] = 'obijanje', + ['repair'] = 'popravka', + ['clean'] = 'čišćenje', + ['imp_veh'] = 'zaplena', + ['place_objects'] = 'Objekti', + ['invoice_amount'] = 'Količina', + ['amount_invalid'] = 'Nevažeća kolićina', + ['no_players_nearby'] = 'nema igrača u blizini', + ['no_vehicle_nearby'] = 'nema vozila u blizini', + ['inside_vehicle'] = 'ne možete uraditi to iz vozila!', + ['vehicle_unlocked'] = 'vozilo je otključano', + ['vehicle_repaired'] = 'vozilo je popravljeno', + ['vehicle_cleaned'] = 'vozilo je očišćeno', + ['vehicle_impounded'] = 'vozilo je zaplenjeno', + ['must_seat_driver'] = 'morate biti na vozačevom mestu!', + ['must_near'] = 'morate biti u blizini vozila.', + ['vehicle_success_attached'] = 'vozilo prikačeno', + ['please_drop_off'] = 'ostavite vozilo u garaži', + ['cant_attach_own_tt'] = 'ne možete prikačiti to vozilo', + ['no_veh_att'] = 'nema vozila u blizini', + ['not_right_veh'] = 'to nije pravo vozilo', + ['not_right_place'] = 'to nije pravo mesto', + ['veh_det_succ'] = 'vozilo otkačeno!', + ['imp_flatbed'] = 'Akcija nemoguća! Treba Vam flatbed da zakačite vozilo', + ['objects'] = 'objekti', + ['roadcone'] = 'čunj', + ['toolbox'] = 'toolbox', + ['mechanic_stock'] = 'mechanic Stock', + ['quantity'] = 'količina', + ['invalid_quantity'] = 'nevažeća količina', + ['inventory'] = 'inventar', + ['veh_unlocked'] = 'Vozilo otključano', + ['hijack_failed'] = 'Niste uspeli da obijete vozilo', + ['body_repaired'] = 'Body popravljen', + ['veh_repaired'] = 'Vozilo popravljeno', + ['veh_stored'] = 'pritisni [E] da vratiš vozilo.', + ['press_remove_obj'] = 'pritisni [E] da skloniš objekat', + ['please_tow'] = 'zakačite vozilo', + ['wait_five'] = 'morate sačekati 5 minuta', + ['must_in_flatbed'] = 'Morate biti u flatbedu da započnete misiju', + ['mechanic_customer'] = 'Mehaničar kupac', + ['you_do_not_room'] = 'Nemate više mesta', + ['recovery_gas_can'] = 'Povraćaj gasa...', + ['recovery_repair_tools'] = 'Repair Tools povraćaj...', + ['recovery_body_tools'] = 'Body Tools povraćaj...', + ['not_enough_gas_can'] = 'Nemate dovoljno gas cans.', + ['assembling_blowtorch'] = 'Sastavljanje Blowtorch...', + ['not_enough_repair_tools'] = 'Nemate dovoljno repair tools.', + ['assembling_repair_kit'] = 'Sastavljanje Repair Kit...', + ['not_enough_body_tools'] = 'Nemate dovoljno body tools.', + ['assembling_body_kit'] = 'Sastavljanje Body Kit...', + ['your_comp_earned'] = 'Vaša firma je zaradila $', + ['you_used_blowtorch'] = 'iskoristili ste blowtorch', + ['you_used_repair_kit'] = 'iskoristili ste Repair Kit', + ['you_used_body_kit'] = 'iskoristili ste Body Kit', + ['have_withdrawn'] = 'podigli ste x%s %s', + ['have_deposited'] = 'ostavili ste x%s %s', + ['player_cannot_hold'] = 'Nemate više mesta u inventaru!', } diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/esx_mecanojob.sql b/server-data/resources/[esx_addons]/esx_mechanicjob/localization/en_esx_mecanojob.sql similarity index 100% rename from server-data/resources/[esx_addons]/esx_mechanicjob/esx_mecanojob.sql rename to server-data/resources/[esx_addons]/esx_mechanicjob/localization/en_esx_mecanojob.sql diff --git a/server-data/resources/[esx_addons]/esx_mechanicjob/server/main.lua b/server-data/resources/[esx_addons]/esx_mechanicjob/server/main.lua index 8ec0ca3ea..4f8db9667 100644 --- a/server-data/resources/[esx_addons]/esx_mechanicjob/server/main.lua +++ b/server-data/resources/[esx_addons]/esx_mechanicjob/server/main.lua @@ -1,284 +1,288 @@ -local PlayersHarvesting, PlayersHarvesting2, PlayersHarvesting3, PlayersCrafting, PlayersCrafting2, PlayersCrafting3 = - {}, {}, {}, {}, {}, {} +local PlayersHarvesting, PlayersHarvesting2, PlayersHarvesting3, PlayersCrafting, PlayersCrafting2, PlayersCrafting3 = {}, {}, {}, {}, {}, {} if Config.MaxInService ~= -1 then - TriggerEvent("esx_service:activateService", "mechanic", Config.MaxInService) + TriggerEvent('esx_service:activateService', 'mechanic', Config.MaxInService) end -TriggerEvent("esx_phone:registerNumber", "mechanic", _U("mechanic_customer"), true, true) -TriggerEvent( - "esx_society:registerSociety", - "mechanic", - "mechanic", - "society_mechanic", - "society_mechanic", - "society_mechanic", - { type = "private" } -) +TriggerEvent('esx_phone:registerNumber', 'mechanic', TranslateCap('mechanic_customer'), true, true) +TriggerEvent('esx_society:registerSociety', 'mechanic', 'mechanic', 'society_mechanic', 'society_mechanic', 'society_mechanic', {type = 'private'}) local function Harvest(source) SetTimeout(4000, function() + if PlayersHarvesting[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local GazBottleQuantity = xPlayer.getInventoryItem("gazbottle").count + local GazBottleQuantity = xPlayer.getInventoryItem('gazbottle').count if GazBottleQuantity >= 5 then - TriggerClientEvent("esx:showNotification", source, _U("you_do_not_room")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_do_not_room')) else - xPlayer.addInventoryItem("gazbottle", 1) + xPlayer.addInventoryItem('gazbottle', 1) Harvest(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startHarvest") -AddEventHandler("esx_mechanicjob:startHarvest", function() +RegisterServerEvent('esx_mechanicjob:startHarvest') +AddEventHandler('esx_mechanicjob:startHarvest', function() local source = source PlayersHarvesting[source] = true - TriggerClientEvent("esx:showNotification", source, _U("recovery_gas_can")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('recovery_gas_can')) Harvest(source) end) -RegisterServerEvent("esx_mechanicjob:stopHarvest") -AddEventHandler("esx_mechanicjob:stopHarvest", function() +RegisterServerEvent('esx_mechanicjob:stopHarvest') +AddEventHandler('esx_mechanicjob:stopHarvest', function() local source = source PlayersHarvesting[source] = false end) local function Harvest2(source) SetTimeout(4000, function() + if PlayersHarvesting2[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local FixToolQuantity = xPlayer.getInventoryItem("fixtool").count + local FixToolQuantity = xPlayer.getInventoryItem('fixtool').count if FixToolQuantity >= 5 then - TriggerClientEvent("esx:showNotification", source, _U("you_do_not_room")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_do_not_room')) else - xPlayer.addInventoryItem("fixtool", 1) + xPlayer.addInventoryItem('fixtool', 1) Harvest2(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startHarvest2") -AddEventHandler("esx_mechanicjob:startHarvest2", function() +RegisterServerEvent('esx_mechanicjob:startHarvest2') +AddEventHandler('esx_mechanicjob:startHarvest2', function() local source = source PlayersHarvesting2[source] = true - TriggerClientEvent("esx:showNotification", source, _U("recovery_repair_tools")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('recovery_repair_tools')) Harvest2(source) end) -RegisterServerEvent("esx_mechanicjob:stopHarvest2") -AddEventHandler("esx_mechanicjob:stopHarvest2", function() +RegisterServerEvent('esx_mechanicjob:stopHarvest2') +AddEventHandler('esx_mechanicjob:stopHarvest2', function() local source = source PlayersHarvesting2[source] = false end) local function Harvest3(source) SetTimeout(4000, function() + if PlayersHarvesting3[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local CaroToolQuantity = xPlayer.getInventoryItem("carotool").count + local CaroToolQuantity = xPlayer.getInventoryItem('carotool').count if CaroToolQuantity >= 5 then - TriggerClientEvent("esx:showNotification", source, _U("you_do_not_room")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_do_not_room')) else - xPlayer.addInventoryItem("carotool", 1) + xPlayer.addInventoryItem('carotool', 1) Harvest3(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startHarvest3") -AddEventHandler("esx_mechanicjob:startHarvest3", function() +RegisterServerEvent('esx_mechanicjob:startHarvest3') +AddEventHandler('esx_mechanicjob:startHarvest3', function() local source = source PlayersHarvesting3[source] = true - TriggerClientEvent("esx:showNotification", source, _U("recovery_body_tools")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('recovery_body_tools')) Harvest3(source) end) -RegisterServerEvent("esx_mechanicjob:stopHarvest3") -AddEventHandler("esx_mechanicjob:stopHarvest3", function() +RegisterServerEvent('esx_mechanicjob:stopHarvest3') +AddEventHandler('esx_mechanicjob:stopHarvest3', function() local source = source PlayersHarvesting3[source] = false end) local function Craft(source) SetTimeout(4000, function() + if PlayersCrafting[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local GazBottleQuantity = xPlayer.getInventoryItem("gazbottle").count + local GazBottleQuantity = xPlayer.getInventoryItem('gazbottle').count if GazBottleQuantity <= 0 then - TriggerClientEvent("esx:showNotification", source, _U("not_enough_gas_can")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('not_enough_gas_can')) else - xPlayer.removeInventoryItem("gazbottle", 1) - xPlayer.addInventoryItem("blowpipe", 1) + xPlayer.removeInventoryItem('gazbottle', 1) + xPlayer.addInventoryItem('blowpipe', 1) Craft(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startCraft") -AddEventHandler("esx_mechanicjob:startCraft", function() +RegisterServerEvent('esx_mechanicjob:startCraft') +AddEventHandler('esx_mechanicjob:startCraft', function() local source = source PlayersCrafting[source] = true - TriggerClientEvent("esx:showNotification", source, _U("assembling_blowtorch")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('assembling_blowtorch')) Craft(source) end) -RegisterServerEvent("esx_mechanicjob:stopCraft") -AddEventHandler("esx_mechanicjob:stopCraft", function() +RegisterServerEvent('esx_mechanicjob:stopCraft') +AddEventHandler('esx_mechanicjob:stopCraft', function() local source = source PlayersCrafting[source] = false end) local function Craft2(source) SetTimeout(4000, function() + if PlayersCrafting2[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local FixToolQuantity = xPlayer.getInventoryItem("fixtool").count + local FixToolQuantity = xPlayer.getInventoryItem('fixtool').count if FixToolQuantity <= 0 then - TriggerClientEvent("esx:showNotification", source, _U("not_enough_repair_tools")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('not_enough_repair_tools')) else - xPlayer.removeInventoryItem("fixtool", 1) - xPlayer.addInventoryItem("fixkit", 1) + xPlayer.removeInventoryItem('fixtool', 1) + xPlayer.addInventoryItem('fixkit', 1) Craft2(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startCraft2") -AddEventHandler("esx_mechanicjob:startCraft2", function() +RegisterServerEvent('esx_mechanicjob:startCraft2') +AddEventHandler('esx_mechanicjob:startCraft2', function() local source = source PlayersCrafting2[source] = true - TriggerClientEvent("esx:showNotification", source, _U("assembling_repair_kit")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('assembling_repair_kit')) Craft2(source) end) -RegisterServerEvent("esx_mechanicjob:stopCraft2") -AddEventHandler("esx_mechanicjob:stopCraft2", function() +RegisterServerEvent('esx_mechanicjob:stopCraft2') +AddEventHandler('esx_mechanicjob:stopCraft2', function() local source = source PlayersCrafting2[source] = false end) local function Craft3(source) SetTimeout(4000, function() + if PlayersCrafting3[source] == true then local xPlayer = ESX.GetPlayerFromId(source) - local CaroToolQuantity = xPlayer.getInventoryItem("carotool").count + local CaroToolQuantity = xPlayer.getInventoryItem('carotool').count if CaroToolQuantity <= 0 then - TriggerClientEvent("esx:showNotification", source, _U("not_enough_body_tools")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('not_enough_body_tools')) else - xPlayer.removeInventoryItem("carotool", 1) - xPlayer.addInventoryItem("carokit", 1) + xPlayer.removeInventoryItem('carotool', 1) + xPlayer.addInventoryItem('carokit', 1) Craft3(source) end end + end) end -RegisterServerEvent("esx_mechanicjob:startCraft3") -AddEventHandler("esx_mechanicjob:startCraft3", function() +RegisterServerEvent('esx_mechanicjob:startCraft3') +AddEventHandler('esx_mechanicjob:startCraft3', function() local source = source PlayersCrafting3[source] = true - TriggerClientEvent("esx:showNotification", source, _U("assembling_body_kit")) + TriggerClientEvent('esx:showNotification', source, TranslateCap('assembling_body_kit')) Craft3(source) end) -RegisterServerEvent("esx_mechanicjob:stopCraft3") -AddEventHandler("esx_mechanicjob:stopCraft3", function() +RegisterServerEvent('esx_mechanicjob:stopCraft3') +AddEventHandler('esx_mechanicjob:stopCraft3', function() local source = source PlayersCrafting3[source] = false end) -RegisterServerEvent("esx_mechanicjob:onNPCJobMissionCompleted") -AddEventHandler("esx_mechanicjob:onNPCJobMissionCompleted", function() +RegisterServerEvent('esx_mechanicjob:onNPCJobMissionCompleted') +AddEventHandler('esx_mechanicjob:onNPCJobMissionCompleted', function() local source = source local xPlayer = ESX.GetPlayerFromId(source) - local total = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max) + local total = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max); if xPlayer.job.grade >= 3 then total = total * 2 end - TriggerEvent("esx_addonaccount:getSharedAccount", "society_mechanic", function(account) + TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account) account.addMoney(total) end) - TriggerClientEvent("esx:showNotification", source, _U("your_comp_earned") .. total) + TriggerClientEvent("esx:showNotification", source, TranslateCap('your_comp_earned').. total) end) -ESX.RegisterUsableItem("blowpipe", function(source) +ESX.RegisterUsableItem('blowpipe', function(source) local source = source - local xPlayer = ESX.GetPlayerFromId(source) + local xPlayer = ESX.GetPlayerFromId(source) - xPlayer.removeInventoryItem("blowpipe", 1) + xPlayer.removeInventoryItem('blowpipe', 1) - TriggerClientEvent("esx_mechanicjob:onHijack", source) - TriggerClientEvent("esx:showNotification", source, _U("you_used_blowtorch")) + TriggerClientEvent('esx_mechanicjob:onHijack', source) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_used_blowtorch')) end) -ESX.RegisterUsableItem("fixkit", function(source) +ESX.RegisterUsableItem('fixkit', function(source) local source = source - local xPlayer = ESX.GetPlayerFromId(source) + local xPlayer = ESX.GetPlayerFromId(source) - xPlayer.removeInventoryItem("fixkit", 1) + xPlayer.removeInventoryItem('fixkit', 1) - TriggerClientEvent("esx_mechanicjob:onFixkit", source) - TriggerClientEvent("esx:showNotification", source, _U("you_used_repair_kit")) + TriggerClientEvent('esx_mechanicjob:onFixkit', source) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_used_repair_kit')) end) -ESX.RegisterUsableItem("carokit", function(source) +ESX.RegisterUsableItem('carokit', function(source) local source = source - local xPlayer = ESX.GetPlayerFromId(source) + local xPlayer = ESX.GetPlayerFromId(source) - xPlayer.removeInventoryItem("carokit", 1) + xPlayer.removeInventoryItem('carokit', 1) - TriggerClientEvent("esx_mechanicjob:onCarokit", source) - TriggerClientEvent("esx:showNotification", source, _U("you_used_body_kit")) + TriggerClientEvent('esx_mechanicjob:onCarokit', source) + TriggerClientEvent('esx:showNotification', source, TranslateCap('you_used_body_kit')) end) -RegisterServerEvent("esx_mechanicjob:getStockItem") -AddEventHandler("esx_mechanicjob:getStockItem", function(itemName, count) +RegisterServerEvent('esx_mechanicjob:getStockItem') +AddEventHandler('esx_mechanicjob:getStockItem', function(itemName, count) local xPlayer = ESX.GetPlayerFromId(source) - TriggerEvent("esx_addoninventory:getSharedInventory", "society_mechanic", function(inventory) + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory) local item = inventory.getItem(itemName) -- is there enough in the society? if count > 0 and item.count >= count then + -- can the player carry the said amount of x item? if xPlayer.canCarryItem(itemName, count) then inventory.removeItem(itemName, count) xPlayer.addInventoryItem(itemName, count) - xPlayer.showNotification(_U("have_withdrawn", count, item.label)) + xPlayer.showNotification(TranslateCap('have_withdrawn', count, item.label)) else - xPlayer.showNotification(_U("player_cannot_hold")) + xPlayer.showNotification(TranslateCap('player_cannot_hold')) end else - xPlayer.showNotification(_U("invalid_quantity")) + xPlayer.showNotification(TranslateCap('invalid_quantity')) end end) end) -ESX.RegisterServerCallback("esx_mechanicjob:getStockItems", function(source, cb) - TriggerEvent("esx_addoninventory:getSharedInventory", "society_mechanic", function(inventory) +ESX.RegisterServerCallback('esx_mechanicjob:getStockItems', function(source, cb) + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory) cb(inventory.items) end) end) -RegisterServerEvent("esx_mechanicjob:putStockItems") -AddEventHandler("esx_mechanicjob:putStockItems", function(itemName, count) +RegisterServerEvent('esx_mechanicjob:putStockItems') +AddEventHandler('esx_mechanicjob:putStockItems', function(itemName, count) local xPlayer = ESX.GetPlayerFromId(source) - TriggerEvent("esx_addoninventory:getSharedInventory", "society_mechanic", function(inventory) + TriggerEvent('esx_addoninventory:getSharedInventory', 'society_mechanic', function(inventory) local item = inventory.getItem(itemName) local playerItemCount = xPlayer.getInventoryItem(itemName).count @@ -286,16 +290,16 @@ AddEventHandler("esx_mechanicjob:putStockItems", function(itemName, count) xPlayer.removeInventoryItem(itemName, count) inventory.addItem(itemName, count) else - xPlayer.showNotification(_U("invalid_quantity")) + xPlayer.showNotification(TranslateCap('invalid_quantity')) end - xPlayer.showNotification(_U("have_deposited", count, item.label)) + xPlayer.showNotification(TranslateCap('have_deposited', count, item.label)) end) end) -ESX.RegisterServerCallback("esx_mechanicjob:getPlayerInventory", function(source, cb) - local xPlayer = ESX.GetPlayerFromId(source) - local items = xPlayer.inventory +ESX.RegisterServerCallback('esx_mechanicjob:getPlayerInventory', function(source, cb) + local xPlayer = ESX.GetPlayerFromId(source) + local items = xPlayer.inventory - cb({ items = items }) + cb({items = items}) end)