Skip to content

Commit

Permalink
fix: fixed problem which prevented the menu from opening
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jan 21, 2024
1 parent b9e043b commit 834937c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ fix lint error: unused argument last; accessing undefined variable Invoke; unuse
72. [es_extended]: chore: es_extended add underflow check for removeAccountMoney @bitpredator
73. [esx_context]: chore: esx_context update to version 1.0.0 @bitpredator
74. [esx_menu_default]: chore: esx_menu_default update to version 1.0.0 @bitpredator
75. [esx_multicharacter]: refactor: esx_multicharacter @bitpredator
75. [esx_multicharacter]: refactor: esx_multicharacter @bitpredator
76. [esx_multicharacter]: fix: fixed problem which prevented the menu from opening @bitpredator
10 changes: 5 additions & 5 deletions server-data/resources/[esx]/esx_multicharacter/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if ESX.GetConfig().Multichar then
end)

StartLoop = function()
local hidePlayers = true
hidePlayers = true
MumbleSetVolumeOverride(PlayerId(), 0.0)
CreateThread(function()
local keys = { 18, 27, 172, 173, 174, 175, 176, 177, 187, 188, 191, 201, 108, 109, 209, 19 }
Expand Down Expand Up @@ -141,7 +141,7 @@ if ESX.GetConfig().Multichar then
})
end

function CharacterDeleteConfirmation(slots, SelectedCharacter, value)
function CharacterDeleteConfirmation(Characters, slots, SelectedCharacter, value)
local elements = {
{ title = _U('char_delete_confirmation'), icon = "fa-solid fa-users", description = _U('char_delete_confirmation_description'), unselectable = true },
{ title = _U('char_delete'), icon = "fa-solid fa-xmark", description = _U('char_delete_yes_description'), action = 'delete', value = value },
Expand All @@ -159,7 +159,7 @@ if ESX.GetConfig().Multichar then
end, nil, false)
end

function CharacterOptions(slots, SelectedCharacter)
function CharacterOptions(Characters, slots, SelectedCharacter)
local elements = { { title = _U('character', Characters[SelectedCharacter.value].firstname .. " " .. Characters[SelectedCharacter.value].lastname), icon = "fa-regular fa-user", unselectable = true },
{ title = _U('return'), unselectable = false, icon = "fa-solid fa-arrow-left", description = _U('return_description'), action = "return" } }
if not Characters[SelectedCharacter.value].disabled then
Expand All @@ -183,7 +183,7 @@ if ESX.GetConfig().Multichar then
end, nil, false)
end

function SelectCharacterMenu(slots)
function SelectCharacterMenu(Characters, slots)
local Character = next(Characters)
local elements = { { title = _U('select_char'), icon = "fa-solid fa-users", description = _U('select_char_description'), unselectable = true } }
for k, v in pairs(Characters) do
Expand Down Expand Up @@ -337,4 +337,4 @@ if ESX.GetConfig().Multichar then
end
end)
end
end
end

0 comments on commit 834937c

Please sign in to comment.