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
This commit is contained in:
Selt
2026-07-27 04:03:05 +02:00
parent ca597cf6f4
commit 2a6ec4c7d4
@@ -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