diff --git a/res/scripts/hud.lua b/res/scripts/hud.lua index c3c872bd..9111c794 100644 --- a/res/scripts/hud.lua +++ b/res/scripts/hud.lua @@ -86,7 +86,7 @@ end local prev_rotation = mat4.idt() function update_hand() - local skeleton = __skeleton + local skeleton = gfx.skeletons local pid = hud.get_player() local invid, slot = player.get_inventory(pid) local itemid = inventory.get(invid, slot) diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index 765d2c08..d4be90b3 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -396,6 +396,8 @@ function _rules.clear() end function __vc_on_hud_open() + gfx.skeletons = __skeleton + _rules.create("allow-cheats", true) _rules.create("allow-content-access", hud._is_content_access(), function(value)