From b9e043b9e1089c60cdadc54a4a1452b1fb4ac241 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:23:22 +0100 Subject: [PATCH] fix: shadowing upvalue Characters on line 24 --- .../resources/[esx]/esx_multicharacter/client/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server-data/resources/[esx]/esx_multicharacter/client/main.lua b/server-data/resources/[esx]/esx_multicharacter/client/main.lua index d084a036f..c42c0dcce 100644 --- a/server-data/resources/[esx]/esx_multicharacter/client/main.lua +++ b/server-data/resources/[esx]/esx_multicharacter/client/main.lua @@ -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 }, @@ -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 @@ -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