From 060b2fac5b23cd06092f9ef1eeed9d4aa23236f5 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 2 Mar 2024 20:41:14 -0300 Subject: [PATCH] improved hud removal --- hud.lua | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/hud.lua b/hud.lua index 356d2d2..22eda55 100755 --- a/hud.lua +++ b/hud.lua @@ -242,26 +242,9 @@ function ap_airship.remove_hud(player) if ids then --player:hud_remove(ids["altitude"]) --player:hud_remove(ids["time"]) - player:hud_remove(ids["title"]) - player:hud_remove(ids["bg"]) - player:hud_remove(ids["throttle"]) - --[[ - player:hud_remove(ids["coal_1"]) - player:hud_remove(ids["coal_2"]) - player:hud_remove(ids["water_pt_7"]) - player:hud_remove(ids["water_pt_6"]) - player:hud_remove(ids["water_pt_5"]) - player:hud_remove(ids["water_pt_4"]) - player:hud_remove(ids["water_pt_3"]) - player:hud_remove(ids["water_pt_2"]) - player:hud_remove(ids["water_pt_1"]) - player:hud_remove(ids["press_pt_7"]) - player:hud_remove(ids["press_pt_6"]) - player:hud_remove(ids["press_pt_5"]) - player:hud_remove(ids["press_pt_4"]) - player:hud_remove(ids["press_pt_3"]) - player:hud_remove(ids["press_pt_2"]) - player:hud_remove(ids["press_pt_1"])]]-- + for key in pairs(ids) do + player:hud_remove(ids[key]) + end end ap_airship.hud_list[player_name] = nil end