Skip to content

Commit

Permalink
fix: esx_society\client\main.lua fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Sep 20, 2023
1 parent 638d9df commit ef07d47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server-data/resources/[esx]/esx_society/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function UpdateSocietyMoneyHUDElement(money)
TriggerEvent('esx_society:setSocietyMoney', money)
end

function OpenBossMenu(society, close, options)
function OpenBossMenu(society, _, options)
options = options or {}
local elements = {
{unselectable = true, icon = "fas fa-user", title = _U('boss_menu')}
Expand Down Expand Up @@ -165,11 +165,11 @@ function OpenManageEmployeesMenu(society, options)

elements[#elements+1] = {icon = "fas fa-arrow-left", title = "Return", value = "return"}

ESX.OpenContext("right", elements, function(_,element)
ESX.OpenContext("right", elements, function(_, element)
if element.value == "employee_list" then
OpenEmployeeList(society, options)
elseif element.value == "recruit" then
OpenRecruitMenu(society, options)
OpenRecruitMenu(society, options)
elseif element.value == "return" then
OpenBossMenu(society, nil, options)
end
Expand All @@ -190,7 +190,7 @@ function OpenEmployeeList(society, options)

elements[#elements+1] = {icon = "fas fa-arrow-left", title = "Return", value = "return"}

ESX.OpenContext("right", elements, function(menu,element)
ESX.OpenContext("right", elements, function(_,element)
if element.value == "return" then
OpenManageEmployeesMenu(society, options)
else
Expand All @@ -200,7 +200,7 @@ function OpenEmployeeList(society, options)
{icon = "fas fa-user", title = "Fire", value = "fire"},
{icon = "fas fa-arrow-left", title = "Return", value = "return"}
}
ESX.OpenContext("right", elements2, function(menu2,element2)
ESX.OpenContext("right", elements2, function(_,element2)
local employee = element.data
if element2.value == "promote" then
ESX.CloseContext()
Expand Down

0 comments on commit ef07d47

Please sign in to comment.