From 2a6ec4c7d4fc175eeaf0da996f8d4344ec15dd5d Mon Sep 17 00:00:00 2001 From: Selt <83926739+seltonmt012@users.noreply.github.com> Date: Mon, 27 Jul 2026 04:03:05 +0200 Subject: [PATCH] fix(esx_multicharacter/client): restore the stored height of hidden hud components HideComponents stores the value GetHudComponentSize returns and reads back size.x and size.z when restoring, but the meaningful fields are x and y - the hide branch a few lines above tests exactly those. size.z is 0.0, so the components are restored at height zero and stay invisible for the rest of the session. Measured on artifact 25770 after character selection, components 11 and 12: before: x=0.218 y=0.000 (width restored, height lost) after: x=0.218 y=0.389 --- [core]/esx_multicharacter/client/modules/multicharacter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/esx_multicharacter/client/modules/multicharacter.lua b/[core]/esx_multicharacter/client/modules/multicharacter.lua index 1c6014fc..ce256639 100644 --- a/[core]/esx_multicharacter/client/modules/multicharacter.lua +++ b/[core]/esx_multicharacter/client/modules/multicharacter.lua @@ -50,7 +50,7 @@ local function HideComponents(hide) else if HiddenCompents[components[i]] then local size = HiddenCompents[components[i]] - SetHudComponentSize(components[i], size.x, size.z) + SetHudComponentSize(components[i], size.x, size.y) HiddenCompents[components[i]] = nil end end