Update Multicharacter to fix issue of closing context menu

This commit is contained in:
Tony Stark
2022-12-20 23:13:09 +05:30
committed by GitHub
parent 54088abcb6
commit cf24e7212d
+2 -2
View File
@@ -164,7 +164,7 @@ if ESX.GetConfig().Multichar then
elseif Action.action == "return" then elseif Action.action == "return" then
SelectCharacterMenu(Characters, slots) SelectCharacterMenu(Characters, slots)
end end
end, nil, true) end, nil, false)
end end
function SelectCharacterMenu(Characters, slots) function SelectCharacterMenu(Characters, slots)
@@ -212,7 +212,7 @@ if ESX.GetConfig().Multichar then
SetPedAoBlobRendering(playerPed, true) SetPedAoBlobRendering(playerPed, true)
ResetEntityAlpha(playerPed) ResetEntityAlpha(playerPed)
end end
end, nil, true) end, nil, false)
end end
RegisterNetEvent('esx_multicharacter:SetupUI') RegisterNetEvent('esx_multicharacter:SetupUI')
AddEventHandler('esx_multicharacter:SetupUI', function(data, slots) AddEventHandler('esx_multicharacter:SetupUI', function(data, slots)