Skip to content

Commit

Permalink
fix: variable isDead is never accessed + correction of translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jul 24, 2024
1 parent 251af1f commit bd67500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local HasAlreadyEnteredMarker, LastZone = false, 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 isDead, isBusy = false, false
local isBusy = false

function SelectRandomTowable()
local index = GetRandomIntInRange(1, #Config.Towables)
Expand Down Expand Up @@ -175,7 +175,7 @@ function OpenMobileMechanicActionsMenu()
{ 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("tow"), value = "dep_vehicle" },
{ icon = "fas fa-gear", title = TranslateCap("place_objects"), value = "object_spawner" },
}

Expand Down Expand Up @@ -857,10 +857,6 @@ end, false)
RegisterKeyMapping("mechanicMenu", "Open Mechanic Menu", "keyboard", Config.Controls.mechanicMenu)
RegisterKeyMapping("mechanicjob", "Togggle NPC Job", "keyboard", Config.Controls.toggleNPCJob)

AddEventHandler("esx:onPlayerDeath", function()
isDead = true
end)
AddEventHandler("esx:onPlayerDeath", function() end)

AddEventHandler("esx:onPlayerSpawn", function()
isDead = false
end)
AddEventHandler("esx:onPlayerSpawn", function() end)
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Locales["en"] = {
["boss_actions"] = "boss Actions",
["service_vehicle"] = "service Vehicle",
["flat_bed"] = "flatbed",
["tow"] = "tow",
["tow_truck"] = "tow Truck",
["service_full"] = "service full: ",
["open_actions"] = "Press [E] to access the menu.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Locales["it"] = {
["withdraw_stock"] = "ritira",
["boss_actions"] = "azioni boss",
["service_vehicle"] = "veicoli di servizio",
["flat_bed"] = "carica/scarica",
["flat_bed"] = "pianale",
["tow"] = "carica/scarica",
["tow_truck"] = "carro attrezzi",
["service_full"] = "servizio completo: ",
["open_actions"] = "premi [E] per accedere al menu.",
Expand Down

0 comments on commit bd67500

Please sign in to comment.