mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user