Skip to content

Commit

Permalink
fix: shadowing upvalue Characters on line 24
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jan 19, 2024
1 parent 74f89be commit b9e043b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if ESX.GetConfig().Multichar then
})
end

function CharacterDeleteConfirmation(Characters, slots, SelectedCharacter, value)
function CharacterDeleteConfirmation(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(Characters, slots, SelectedCharacter)
function CharacterOptions(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(Characters, slots)
function SelectCharacterMenu(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

0 comments on commit b9e043b

Please sign in to comment.