Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Nov 24, 2023
1 parent 9469061 commit f6c16b7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions server-data/resources/[esx_addons]/esx_taxijob/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function OpenVehicleSpawnerMenu()
}
end

ESX.OpenContext("right", elements, function(menu,element)
ESX.OpenContext("right", elements, function(_, element)
if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 5.0) then
ESX.ShowNotification(_U('spawnpoint_blocked'))
return
Expand Down Expand Up @@ -207,7 +207,7 @@ end
function OpenTaxiActionsMenu()
local elements = {
{unselectable = true, icon = "fas fa-taxi", title = _U('taxi')},
{icon = "fas fa-box",title = _U('deposit_stock'),value = 'put_stock'},
{icon = "fas fa-box",title = _U('deposit_stock'),value = 'put_stock'},
{icon = "fas fa-box", title = _U('take_stock'), value = 'get_stock'}
}

Expand All @@ -219,7 +219,7 @@ function OpenTaxiActionsMenu()
}
end

ESX.OpenContext("right", elements, function(menu,element)
ESX.OpenContext("right", elements, function(_, element)
if Config.OxInventory and (element.value == 'put_stock' or element.value == 'get_stock') then
exports.ox_inventory:openInventory('stash', 'society_taxi')
return ESX.CloseContext()
Expand All @@ -228,7 +228,7 @@ function OpenTaxiActionsMenu()
elseif element.value == 'get_stock' then
OpenGetStocksMenu()
elseif element.value == 'boss_actions' then
TriggerEvent('esx_society:openBossMenu', 'taxi', function(data, menu)
TriggerEvent('esx_society:openBossMenu', 'taxi', function(_, menu)
menu.close()
end)
end
Expand Down Expand Up @@ -331,15 +331,15 @@ function OpenGetStocksMenu()
}
end

ESX.OpenContext("right", elements, function(menu,element)
ESX.OpenContext("right", elements, function(_, element)
local itemName = element.value
local elements2 = {
{unselectable = true, icon = "fas fa-box", title = element.title},
{title = _U('amount'), input = true, inputType = "number", inputMin = 1, inputMax = 100, inputPlaceholder = _U('withdraw_amount')},
{icon = "fas fa-check-double", title = _U('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 All @@ -353,7 +353,7 @@ function OpenGetStocksMenu()
end
end)
end)
end, function(menu)
end, function()
CurrentAction = 'taxi_actions_menu'
CurrentActionMsg = _U('press_to_open')
CurrentActionData = {}
Expand Down Expand Up @@ -434,17 +434,17 @@ AddEventHandler('esx_taxijob:hasEnteredMarker', function(zone)
end
end)

AddEventHandler('esx_taxijob:hasExitedMarker', function(zone)
AddEventHandler('esx_taxijob:hasExitedMarker', function()
ESX.CloseContext()
CurrentAction = nil
end)

RegisterNetEvent('esx_phone:loaded')
AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
AddEventHandler('esx_phone:loaded', function()
local specialContact = {
name = _U('phone_taxi'),
number = 'taxi',
base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGGElEQVR4XsWWW2gd1xWGv7Vn5pyRj47ut8iOYlmyWxw1KSZN4riOW6eFuCYldaBtIL1Ag4NNmt5ICORCaNKXlF6oCy0hpSoJKW4bp7Sk6YNb01RuLq4d0pQ0kWQrshVJ1uX46HJ0zpy5rCKfQYgjCUs4kA+GtTd786+ftW8jqsqHibB6TLZn2zeq09ZTWAIWCxACoTI1E+6v+eSpXwHRqkVZPcmqlBzCApLQ8dk3IWVKMQlYcHG81OODNmD6D7d9VQrTSbwsH73lFKePtvOxXSfn48U+Xpb58fl5gPmgl6DiR19PZN4+G7iODY4liIAACqiCHyp+AFvb7ML3uot1QP5yDUim292RtIqfU6Lr8wFVDVV8AsPKRDAxzYkKm2kj5sSFuUT3+v2FXkDXakD6f+7c1NGS7Ml0Pkah6jq8mhvwUy7Cyijg5Aoks6/hTp+k7vRjDJ73dmw8WHxlJRM2y5Nsb3GPDuzsZURbGMsUmRkoUP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euwy3t2J8MAKDIxDVd1Lz8Ts599vb8Wameen532GspRWIQmXPHV8k0BquvPP3TOSgsRmiCFRAHWh9420Gi7nl34JaBen7O7UWRMD740AQ7yEf8nW78TIeN+7+PCIsOYaqMJHxqKtpJ++D+DA5ARsawEmASqzv1Cz7FjRpbt951tUAOcAHdNEUC7C5NAJo7Dws03CAFMxlkdSRZmCMxaq8ejKuVwSqIJfzA61LmyIgBoxZfgmYmQazKLGumHitRso0ZVkD0aE/FI7UrYv2WUYXjo0ihNhEatA1GBEUIxEWAcKCHhHCVMG8AETlda0ENn3hrm+/6Zh47RBCtXn+mZ/sAXzWjnPHV77zkiXBgl6gFkee+em1wBlgdnEF8sCF5moLI7KwlSIMwABwgbVT21htMNjleheAfPkShEBh/PzQccexdxBT9IPjQAYYZ+3o2OjQ8cQiPb+kVwBCliENXA3sAm6Zj3E/zaq4fD07HmwEmuKYXsUFcDl6Hz7/B1RGfEbPim/bAAAAAElFTkSuQmCC'
base64Icon = ''
}

TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon)
Expand Down

0 comments on commit f6c16b7

Please sign in to comment.