From ff62ca6bab8a9f2034219736a907035db40e4fa2 Mon Sep 17 00:00:00 2001 From: xanaguy <33107269+xanaguy@users.noreply.github.com> Date: Mon, 7 May 2018 20:07:03 -0500 Subject: [PATCH] Fixed waypoints for all heists. Cursed Kill Room should now be playable. --- lua/hudminimap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/hudminimap.lua b/lua/hudminimap.lua index 4e39d85..e9e8d5a 100644 --- a/lua/hudminimap.lua +++ b/lua/hudminimap.lua @@ -1826,12 +1826,12 @@ end if RequiredScript == "lib/managers/hudmanager" then - --[[ local add_waypoint = HUDManager.add_waypoint + local add_waypoint = HUDManager.add_waypoint local remove_waypoint = HUDManager.remove_waypoint function HUDManager:add_waypoint(id, data, ...) add_waypoint(self, id, data, ...) - if string.sub(tostring(id), 1, 5) ~= "susp1" then + if string.sub(tostring(id), 1, 5) ~= "susp1" and managers.hud._hud_minimap then managers.hud._hud_minimap:add_entity(HUDMiniMapWaypointEntity, tostring(id), { unit = data.unit, position = data.position, icon = data.icon or "wp_standard", show_offscreen = true }) end end @@ -1839,6 +1839,6 @@ if RequiredScript == "lib/managers/hudmanager" then function HUDManager:remove_waypoint(id, ...) remove_waypoint(self, id, ...) managers.hud._hud_minimap:delete_entity(tostring(id)) - end--]] + end end