Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/hudminimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1826,19 +1826,19 @@ 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

function HUDManager:remove_waypoint(id, ...)
remove_waypoint(self, id, ...)
managers.hud._hud_minimap:delete_entity(tostring(id))
end--]]
end

end