fix inventory sticking

This commit is contained in:
bgkillas 2024-08-19 08:59:52 -04:00
parent 78791ab3ab
commit 64e2823567

View file

@ -193,6 +193,14 @@ ctx.cap.health = {
wait(1) wait(1)
do_switch_effect() do_switch_effect()
GameSetCameraFree(false) GameSetCameraFree(false)
for id, player_data in ctx.players do
if id ~= ctx.my_id then
local inventory_gui = EntityGetFirstComponent(player_data.entity, "InventoryGuiComponent")
if inventory_gui ~= nil then
EntityRemoveComponent(player_data.entity, inventory_gui)
end
end
end
end) end)
else else
end_poly_effect(ctx.my_player.entity) end_poly_effect(ctx.my_player.entity)