improved hud removal

This commit is contained in:
Alexsandro Percy 2024-03-02 20:41:14 -03:00
parent 64230378a1
commit 060b2fac5b

23
hud.lua
View File

@ -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