Skip to content

Commit

Permalink
fix: shadowing upvalue argument menu on line 71
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jul 24, 2024
1 parent bd67500 commit bbb7eff
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function OpenMechanicActionsMenu()
}
end

ESX.OpenContext("right", elements, function(menu, element)
ESX.OpenContext("right", elements, function(_, element)
if element.value == "vehicle_list" then
if Config.EnableSocietyOwnedVehicles then
local elements2 = {
Expand All @@ -84,7 +84,7 @@ function OpenMechanicActionsMenu()
}
end

ESX.OpenContext("right", elements2, function(menu2, element2)
ESX.OpenContext("right", elements2, function(_, element2)
ESX.CloseContext()
local vehicleProps = element2.value

Expand Down Expand Up @@ -145,7 +145,7 @@ function OpenMechanicActionsMenu()
end)
elseif element.value == "cloakroom2" then
ESX.CloseContext()
ESX.TriggerServerCallback("esx_skin:getPlayerSkin", function(skin, jobSkin)
ESX.TriggerServerCallback("esx_skin:getPlayerSkin", function(skin)
TriggerEvent("skinchanger:loadSkin", skin)
end)
elseif Config.OxInventory and (element.value == "put_stock" or element.value == "get_stock") then
Expand All @@ -156,7 +156,7 @@ function OpenMechanicActionsMenu()
elseif element.value == "get_stock" then
OpenGetStocksMenu()
elseif element.value == "boss_actions" then
TriggerEvent("esx_society:openBossMenu", "mechanic", function(data, menu)
TriggerEvent("esx_society:openBossMenu", "mechanic", function()
ESX.CloseContext()
end)
end
Expand Down Expand Up @@ -209,7 +209,7 @@ function OpenMobileMechanicActionsMenu()
elseif element.value == "hijack_vehicle" then
local playerPed = PlayerPedId()
local vehicle = ESX.Game.GetVehicleInDirection()
local coords = GetEntityCoords(playerPed)
local _ = GetEntityCoords(playerPed)

if IsPedSittingInAnyVehicle(playerPed) then
ESX.ShowNotification(TranslateCap("inside_vehicle"))
Expand All @@ -235,7 +235,7 @@ function OpenMobileMechanicActionsMenu()
elseif element.value == "fix_vehicle" then
local playerPed = PlayerPedId()
local vehicle = ESX.Game.GetVehicleInDirection()
local coords = GetEntityCoords(playerPed)
local _ = GetEntityCoords(playerPed)

if IsPedSittingInAnyVehicle(playerPed) then
ESX.ShowNotification(TranslateCap("inside_vehicle"))
Expand Down Expand Up @@ -263,7 +263,7 @@ function OpenMobileMechanicActionsMenu()
elseif element.value == "clean_vehicle" then
local playerPed = PlayerPedId()
local vehicle = ESX.Game.GetVehicleInDirection()
local coords = GetEntityCoords(playerPed)
local _ = GetEntityCoords(playerPed)

if IsPedSittingInAnyVehicle(playerPed) then
ESX.ShowNotification(TranslateCap("inside_vehicle"))
Expand Down Expand Up @@ -385,7 +385,7 @@ function OpenMobileMechanicActionsMenu()
{ icon = "fas fa-object", title = TranslateCap("toolbox"), value = "prop_toolchest_01" },
}

ESX.OpenContext("right", elements2, function(menuObj, elementObj)
ESX.OpenContext("right", elements2, function(_, elementObj)
local model = elementObj.value
local coords = GetEntityCoords(playerPed)
local forward = GetEntityForwardVector(playerPed)
Expand Down Expand Up @@ -429,7 +429,7 @@ function OpenGetStocksMenu()
{ icon = "fas fa-check-double", title = "Confirm", value = "confirm" },
}

ESX.OpenContext("right", elements2, function(menu2, element2)
ESX.OpenContext("right", elements2, function(menu2)
local count = tonumber(menu2.eles[2].inputValue)

if count == nil then
Expand Down

0 comments on commit bbb7eff

Please sign in to comment.