make hud work with lua scripts