Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 268.03 KB | None | 0 0
  1. -----------------------------------
  2. ---   Waypoints - All in one!   ---
  3. ---     MULTI-STATE VERSION     ---
  4. -----------------------------------
  5. local version = "11.2.4"
  6.  
  7. -- Config Booleans by gir489.
  8. local bShowDistance = false
  9. local bShowGagePackages = false
  10. local bShowPlanks = false
  11. local bShowSmallLoot = false
  12. local bShowCrates = true
  13. local bShowSecuDoors = true
  14. local bShowDrills = false
  15. local bShowThermite = false
  16. local bShowSewerManHole = false
  17. local bShowOnOffMessage = false
  18. local bBeep = false
  19.  
  20. -- colors for waypoints
  21. local alpha_value   =   200 -- (0->255)
  22. local white         =   Color(         100, 255, 255, 255 ) /255
  23. local bone_white    =   Color( alpha_value, 255, 238, 151 ) /255
  24. local magenta       =   Color( alpha_value, 255, 000, 255 ) /255
  25. local purple        =   Color( alpha_value, 154, 068, 220 ) /255
  26. local matte_purple  =   Color( alpha_value, 107, 084, 144 ) /255
  27. local pink          =   Color( alpha_value, 255, 122, 230 ) /255
  28. local light_gray    =   Color( alpha_value, 191, 191, 191 ) /255
  29. local gray          =   Color( alpha_value, 128, 128, 128 ) /255
  30. local dark_gray     =   Color( alpha_value, 064, 064, 064 ) /255
  31. local orange        =   Color( alpha_value, 255, 094, 015 ) /255
  32. local light_brown   =   Color( alpha_value, 204, 115, 035 ) /255
  33. local bright_yellow =   Color( alpha_value, 255, 207, 076 ) /255
  34. local brown         =   Color( alpha_value, 128, 070, 013 ) /255
  35. local gold          =   Color(         255, 255, 215, 000 ) /255
  36. local yellow        =   Color( alpha_value, 255, 255, 000 ) /255
  37. local warm_yellow   =   Color( alpha_value, 250, 157, 007 ) /255
  38. local red           =   Color( alpha_value, 255, 000, 000 ) /255
  39. local blood_red     =   Color( alpha_value, 138, 017, 009 ) /255
  40. local coral_red     =   Color( alpha_value, 213, 036, 053 ) /255
  41. local dark_red      =   Color( alpha_value, 110, 015, 022 ) /255
  42. local blue          =   Color( alpha_value, 000, 000, 255 ) /255
  43. local gray_blue     =   Color( alpha_value, 012, 068, 084 ) /255
  44. local navy_blue     =   Color( alpha_value, 040, 052, 086 ) /255
  45. local matte_blue    =   Color( alpha_value, 056, 097, 168 ) /255
  46. local light_blue    =   Color( alpha_value, 126, 198, 238 ) /255
  47. local cobalt_blue   =   Color( alpha_value, 000, 093, 199 ) /255
  48. local turquoise     =   Color( alpha_value, 000, 209, 157 ) /255
  49. local cyan          =   Color( alpha_value, 000, 255, 255 ) /255
  50. local green         =   Color( alpha_value, 000, 255, 000 ) /255
  51. local lime_green    =   Color( alpha_value, 000, 166, 081 ) /255
  52. local leaf_green    =   Color( alpha_value, 104, 191, 054 ) /255
  53. local olive_green   =   Color( alpha_value, 072, 090, 050 ) /255
  54. local dark_green    =   Color( alpha_value, 007, 061, 009 ) /255
  55. local toxic_green   =   Color( alpha_value, 167, 248, 087 ) /255
  56.  
  57. -- INGAME CHECK
  58. function inGame()
  59.     if not game_state_machine then return false end
  60.     return string.find(game_state_machine:current_state_name(), "game")
  61. end
  62.  
  63. -- IS PLAYING CHECK
  64. function isPlaying()
  65.     if not BaseNetworkHandler then return false end
  66.     return BaseNetworkHandler._gamestate_filter.any_ingame_playing[ game_state_machine:last_queued_state_name() ]
  67. end
  68.  
  69. -- HOST CHECK
  70. function isHost()
  71.     if not Network then return false end
  72.     return not Network:is_client()
  73. end
  74.  
  75. -- CLIENT CHECK
  76. function isClient()
  77.     if not Network then return false end
  78.     return Network:is_client()
  79. end
  80.  
  81. -- BEEP
  82. function beep()
  83.     if managers and managers.menu_component and bBeep then
  84.         managers.menu_component:post_event("menu_enter")
  85.     end
  86. end
  87.  
  88. function RefreshTest()
  89.     if pcall(RefreshItemWaypoints) then
  90.         -- no errors
  91.     else
  92.         managers.chat:_receive_message(1, "AN ERROR OCCURRED.", "...", Color.red)
  93.     end
  94. end
  95.    
  96. function RefreshMsg()
  97.     if _toggleWaypointAIO2 > 0 then
  98.         local xval = RenderSettings.resolution.x
  99.         local yval = RenderSettings.resolution.y
  100.         local txtsize = 10
  101.         if xval >= 600 and xval < 800 then txtsize = 10 elseif xval >= 800 and xval < 1024 then txtsize = 15 elseif xval >= 1024 and xval < 1280 then txtsize = 20 elseif xval >= 1280 and xval < 1360 then txtsize = 25 elseif xval >= 1360 and xval < 1440 then txtsize = 30 elseif xval >= 1440 and xval < 1600 then txtsize = 35 elseif xval >= 1600 and xval < 1920 then txtsize = 40 elseif xval >= 1920 and xval < 2400 then txtsize = 45 else txtsize = 40 end
  102.         if not _HDmsg then
  103.             _HDmsg = {}
  104.             _HDmsg.ws = Overlay:newgui():create_screen_workspace()
  105.             _HDmsg.lbl = _HDmsg.ws:panel():text{ name="lbl_1", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 6.1/9 * RenderSettings.resolution.y, text = "", font = tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.white:with_alpha(0.7), layer = 1 }
  106.             _HDmsg.lbl2 = _HDmsg.ws:panel():text{ name="lbl_2", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 5.6/9 * RenderSettings.resolution.y, text = "Waypoint", font=tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.green:with_alpha(0.7), layer = 1 }
  107.             _HDmsg.lbl:show()
  108.             _HDmsg.lbl2:show()
  109.         end
  110.         local mess = ""
  111.         if _toggleWaypointAIO2 == 1 then
  112.             local unit_list = World:find_units_quick( "all" )
  113.             local count = 0
  114.             for _,unit in ipairs( unit_list ) do
  115.                 if ( tostring(unit:name()) == "Idstring(@IDe8088e3bdae0ab9e@)" or   --Yellow Package
  116.                 tostring(unit:name()) == "Idstring(@ID05956ff396f3c58e@)" or        --Blue Package
  117.                 tostring(unit:name()) == "Idstring(@IDc90378ad89058c7d@)" or        --Purple Package
  118.                 tostring(unit:name()) == "Idstring(@ID96504ebd40f8cf98@)" or        --Red Package
  119.                 tostring(unit:name()) == "Idstring(@IDb3cc2abe1734636c@)" ) then    --Green Package
  120.                     count = count + 1
  121.                 end
  122.             end
  123.             mess = "[1/8] PACKAGE : "..tostring(count)
  124.             _HDmsg.lbl:set_text(mess)
  125.         elseif _toggleWaypointAIO2 == 2 then
  126.             mess = "[2/8] KEYCARD/SECURITY DOOR"
  127.             _HDmsg.lbl:set_text(mess)
  128.         elseif _toggleWaypointAIO2 == 3 then
  129.             mess = "[3/8] WEAPON/COKE"
  130.             _HDmsg.lbl:set_text(mess)
  131.         elseif _toggleWaypointAIO2 == 4 then
  132.             mess = "[4/8] PLANK"
  133.             _HDmsg.lbl:set_text(mess)
  134.         elseif _toggleWaypointAIO2 == 5 then
  135.             mess = "[5/8] CRATE/CROWBAR"
  136.             _HDmsg.lbl:set_text(mess)
  137.         elseif _toggleWaypointAIO2 == 6 then
  138.             if managers.job:current_level_id() == "framing_frame_1" or managers.job:current_level_id() == "gallery" then
  139.                 mess = "[6/8] PAINTING"
  140.             elseif managers.job:current_level_id() == "framing_frame_3" then
  141.                 mess = "[6/8] INTEL"
  142.             elseif managers.job:current_level_id() == "alex_1" then
  143.                 mess = "[6/8] CHEMICAL"
  144.             elseif managers.job:current_level_id() == "alex_2" then
  145.                 mess = "[6/8] SAFE"
  146.             elseif managers.job:current_level_id() == "election_day_1" then
  147.                 mess = "[6/8] COMPUTER/TRUCK"
  148.             elseif managers.job:current_level_id() == "big" then
  149.                 mess = "[6/8] KEYBOARD/SERVER"
  150.             elseif managers.job:current_level_id() == "firestarter_2" then
  151.                 mess = "[6/8] SECURITY BOX"
  152.             elseif managers.job:current_level_id() == "welcome_to_the_jungle_1" then
  153.                 mess = "[6/8] INTEL"
  154.             elseif managers.job:current_level_id() == "kosugi" then
  155.                 mess = "[6/8] MANHOLE/ITEM"
  156.             elseif managers.job:current_level_id() == "welcome_to_the_jungle_2" then
  157.                 mess = "[6/8] ENGINE/SERVER ROOM"
  158.             elseif managers.job:current_level_id() == "arm_for" then
  159.                 mess = "[6/8] TURRET"
  160.             elseif managers.job:current_level_id() == "election_day_3_skip1" then
  161.                 mess = "[6/8] KEYBOARD"
  162.             elseif managers.job:current_level_id() == "ukrainian_job" then
  163.                 mess = "[6/8] POWER/TIARA"
  164.             elseif managers.job:current_level_id() == "mus" then
  165.                 mess = "[6/8] BOX/PATH/SECURITY"
  166.             else
  167.                 mess = "[6/8] WAYPOINTS"
  168.             end
  169.             _HDmsg.lbl:set_text(mess)
  170.         elseif _toggleWaypointAIO2 == 7 then
  171.             mess = "[7/8] MONEY"
  172.             _HDmsg.lbl:set_text(mess)
  173.         elseif _toggleWaypointAIO2 == 8 then
  174.             mess = "[8/8] ALL"
  175.             _HDmsg.lbl:set_text(mess)
  176.         elseif _toggleWaypointAIO2 == 9 then
  177.             mess = "[Bonus] ???"
  178.             _HDmsg.lbl:set_text(mess)
  179.         end
  180.     end
  181. end
  182.  
  183. if inGame() and isPlaying() then
  184.     if not _toggleWaypointAIO2 then _toggleWaypointAIO2 = 0 end
  185.     _toggleWaypointAIO2 = _toggleWaypointAIO2 + 1  
  186.     _keyboard_used = _keyboard_used or false
  187.     _engine_used = _engine_used or false
  188.     _intel_used = _intel_used or false
  189.     bo_boxes = bo_boxes or {}
  190.     SecBox1 = SecBox1
  191.     SecBox2 = SecBox2
  192.     correct_id = correct_id or nil
  193.     engine_pos = engine_pos or nil
  194.     values = values or nil
  195.     _checking_bags = _checking_bags or false
  196.     _box1_used = _box1_used or false
  197.     _box2_used = _box2_used or false
  198.     _drill1_used = _drill1_used or false
  199.     _drill2_used = _drill2_used or false
  200.     _drill3_used = _drill3_used or false
  201.     _tiara_used = _tiara_used or false
  202.     _bbserv_used = _bbserv_used or false
  203.     _FF1_msg = _FF1_msg or false
  204.     _FF3_used = _FF3_used or false
  205.     _gps_used = _gps_used or false
  206.     _comp_used = _comp_used or false
  207.     _bomb_ok = _bomb_ok or false
  208.     _bomb_pos = _bomb_pos or nil
  209.     _bomb_used = _bomb_used or 0
  210.     _uldatabase_found = _uldatabase_found or false
  211.     _path_tile = _path_tile or 0
  212.     _path_terminated = _path_terminated or false
  213.     _hack_ok = _hack_ok or false
  214.     _path_created = _path_created or 99999
  215.     _script_activated = _script_activated or 0
  216.     tabclk = tabclk or {}
  217.     clientBox = clientBox or {}
  218.     clientSucceed = clientSucceed or 0
  219.     cm = managers.controller
  220.     nb = nb or 0
  221.     lp = lp or false
  222.     if not _HDmsg then
  223.         _HDmsg = {}
  224.         _HDmsg.ws = Overlay:newgui():create_screen_workspace()
  225.         local xval = RenderSettings.resolution.x
  226.         local yval = RenderSettings.resolution.y
  227.         local txtsize = 10
  228.         if xval >= 600 and xval < 800 then txtsize = 10 elseif xval >= 800 and xval < 1024 then txtsize = 15 elseif xval >= 1024 and xval < 1280 then txtsize = 20 elseif xval >= 1280 and xval < 1360 then txtsize = 25 elseif xval >= 1360 and xval < 1440 then txtsize = 30 elseif xval >= 1440 and xval < 1600 then txtsize = 35 elseif xval >= 1600 and xval < 1920 then txtsize = 40 elseif xval >= 1920 and xval < 2400 then txtsize = 45 else txtsize = 40 end
  229.         _HDmsg.lbl = _HDmsg.ws:panel():text{ name="lbl_1", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 6.1/9 * RenderSettings.resolution.y, text = "", font = tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.white:with_alpha(0.7), layer = 1 }
  230.         _HDmsg.lbl2 = _HDmsg.ws:panel():text{ name="lbl_2", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 5.6/9 * RenderSettings.resolution.y, text = "Waypoint", font=tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.green:with_alpha(0.7), layer = 1 }
  231.         _HDmsg.lbl3 = _HDmsg.ws:panel():text{ name="lbl_3", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 6.6/9 * RenderSettings.resolution.y, text = "", font=tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.white:with_alpha(0.7), layer = 1 }
  232.         _HDmsg.lbl4 = _HDmsg.ws:panel():text{ name="lbl_4", x = -(RenderSettings.resolution.x / 2.1) + 0.5 * RenderSettings.resolution.x, y = -(RenderSettings.resolution.y / 4) + 7.1/9 * RenderSettings.resolution.y, text = "", font=tweak_data.menu.pd2_large_font, font_size = txtsize, color = Color.red:with_alpha(0.7), layer = 1 }
  233.         _HDmsg.lbl:show()
  234.         _HDmsg.lbl2:show()
  235.         _HDmsg.lbl3:show()
  236.         _HDmsg.lbl4:show()
  237.     end
  238.     keyboard = Input:keyboard()
  239.     if keyboard:pressed() ~= nil then
  240.         beep()     
  241.         _script_activated = os.clock()
  242.        
  243.         -- Framing Frame Day 1
  244.         if managers.job:current_level_id() == 'framing_frame_1' or managers.job:current_level_id() == "gallery" then
  245.             if _FF1_msg == false then
  246.                 local unit_list = World:find_units_quick( "all" )
  247.                 local count = 0
  248.                 for _,unit in ipairs( unit_list ) do
  249.                     if unit:carry_data() then --or unit:base() then
  250.                         if (unit:interaction():active() == true) then
  251.                             count = count + 1
  252.                         end
  253.                     end
  254.                 end
  255.                 if count == 9 then
  256.                     managers.chat:_receive_message(1, "Bain", "Guys, I have detected "..count.." paintings in the gallery. That's great. Maximum profits!", tweak_data.system_chat_color)
  257.                 elseif count == 8 then
  258.                     managers.chat:_receive_message(1, "Bain", "Guys, there are "..count.." paintings in the gallery.", tweak_data.system_chat_color)
  259.                 elseif count == 7 then
  260.                     managers.chat:_receive_message(1, "Bain", "Guys, "..count.." paintings are in the gallery. Not much compared with last time!", tweak_data.system_chat_color)
  261.                 elseif count == 6 or count < 6 then
  262.                     managers.chat:_receive_message(1, "Bain", "Guys, only "..count.." paintings detected in the gallery this time.. Better than nothing!", tweak_data.system_chat_color)
  263.                 end
  264.                 _FF1_msg = true
  265.             end
  266.         end
  267.     end
  268.        
  269.     --speed up waypoint display
  270.     managers.hud.__update_waypoints = managers.hud.__update_waypoints or managers.hud._update_waypoints
  271.     function HUDManager:_update_waypoints( t, dt )
  272.         local result = self:__update_waypoints(t,dt)
  273.         for id,data in pairs( self._hud.waypoints ) do
  274.             id = tostring(id)
  275.             data.move_speed = 0.01
  276.             local LSD           =   Color(1,math.sin(140 * os.clock() + 0) / 2 + 0.5, math.sin(140 * os.clock() + 60) / 2 + 0.5, math.sin(140 * os.clock() + 120) / 2 + 0.5)
  277.             local FIRE          =   Color(1,math.sin(135 * os.clock() + 0) / 2 + 1.5, math.sin(140 * os.clock() + 60) / 2 + 0.5, 0)
  278.             ----------- COLORED WAYPOINTS ---------------
  279.            
  280.             if id:sub(1,10) == 'hudz_base_' or id:sub(1,9) == 'hudz_box_' then
  281.                 data.bitmap:set_color( white )
  282.             end
  283.             -- KEYCARD FLOOR
  284.             if id:sub(1,9) == 'hudz_key_' then
  285.                 data.bitmap:set_color( yellow )
  286.             end
  287.             -- KEYCARD CIV
  288.             if id:sub(1,9) == 'hudz_civ_' then
  289.                 data.bitmap:set_color( orange )
  290.             end
  291.             -- KEYCARD COP
  292.             if id:sub(1,9) == 'hudz_cop_' then
  293.                 data.bitmap:set_color( cobalt_blue )
  294.             end
  295.             -- WEAPON
  296.             if id:sub(1,9) == 'hudz_wpn_' then
  297.                 data.bitmap:set_color( magenta )
  298.             end
  299.             -- GOLD/JEWEL
  300.             if id:sub(1,10) == 'hudz_gold_' then
  301.                 data.bitmap:set_color( gold )
  302.             end
  303.             -- SMALL LOOT
  304.             if id:sub(1,10) == 'hudz_cash_' then
  305.                 data.bitmap:set_color( dark_green )
  306.             end
  307.             -- MONEY (BAG)
  308.             if id:sub(1,11) == 'hudz_cashB_' then
  309.                 data.bitmap:set_color( green )
  310.             end
  311.             -- COKE
  312.             if id:sub(1,10) == 'hudz_coke_' then
  313.                 data.bitmap:set_color( LSD )
  314.             end
  315.             -- PAINTING
  316.             if id:sub(1,9) == 'hudz_ptn_' then
  317.                 data.bitmap:set_color( green )
  318.             end
  319.             -- PACKAGE
  320.             if id:sub(1,10) == 'hudz_pkgY_' then
  321.                 data.bitmap:set_color( yellow )
  322.             elseif id:sub(1,10) == 'hudz_pkgB_' then
  323.                 data.bitmap:set_color( blue )
  324.             elseif id:sub(1,10) == 'hudz_pkgP_' then
  325.                 data.bitmap:set_color( magenta )
  326.             elseif id:sub(1,10) == 'hudz_pkgR_' then
  327.                 data.bitmap:set_color( red )
  328.             elseif id:sub(1,10) == 'hudz_pkgG_' then
  329.                 data.bitmap:set_color( green )
  330.             end
  331.             -- PLANK
  332.             if id:sub(1,9) == 'hudz_plk_' then
  333.                 data.bitmap:set_color( green )
  334.             end
  335.             -- METHLAB
  336.             if id:sub(1,11) == 'hudz_coke1_' then
  337.                 data.bitmap:set_color( white )
  338.             elseif id:sub(1,11) == 'hudz_coke2_' then
  339.                 data.bitmap:set_color( green )
  340.             elseif id:sub(1,11) == 'hudz_coke3_' then
  341.                 data.bitmap:set_color( yellow )
  342.             end
  343.             -- THERMITE/GASCAN/SECURITYDOOR
  344.             if id:sub(1,10) == 'hudz_fire_' then
  345.                 data.bitmap:set_color( FIRE )
  346.             end
  347.             -- ATM
  348.             if id:sub(1,9) == 'hudz_atm_' then
  349.                 data.bitmap:set_color( blood_red )
  350.             end
  351.             -- DOOR
  352.             if id:sub(1,10) == 'hudz_door_' then
  353.                 data.bitmap:set_color( cyan )
  354.             end
  355.             if id:sub(1,10) == 'hudz_Robj_' then
  356.                 data.bitmap:set_color( green )
  357.             end
  358.             if id:sub(1,10) == 'hudz_Wobj_' then
  359.                 data.bitmap:set_color( red )
  360.             end
  361.         end
  362.         return result
  363.     end  
  364.    
  365.     function RefreshItemWaypoints()
  366.         if inGame() and isPlaying() then
  367.             Color.orange = Color("FF8800")
  368.             --clear all created waypoints
  369.             for id,_ in pairs( clone( managers.hud._hud.waypoints ) ) do
  370.                 id = tostring(id)
  371.                 if id:sub(1,5) == 'hudz_' then
  372.                     managers.hud:remove_waypoint( id )
  373.                 end
  374.             end
  375.             if _toggleWaypointAIO2 > 0 then
  376.                 local level = managers.job:current_level_id()
  377.                 --create new waypoints for remaining items
  378.                 for k,v in pairs(managers.interaction._interactive_units) do
  379.     ------1---------
  380.                     if _toggleWaypointAIO2 == 1 then
  381.                         if v:interaction().tweak_data == 'gage_assignment' and bShowGagePackages then
  382.                             if managers.job:current_level_id() == 'hox_2' and v:interaction():interact_position() == Vector3(-200, -200, 4102.5) then
  383.                             else
  384.                                  --[[Yellow]]
  385.                                 if tostring(v:name()) == "Idstring(@IDe8088e3bdae0ab9e@)" then
  386.                                     managers.hud:add_waypoint( 'hudz_pkgY_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.yellow, blend_mode = "add" }  )
  387.                                  --[[Blue]]
  388.                                 elseif tostring(v:name()) == "Idstring(@ID05956ff396f3c58e@)" then
  389.                                     managers.hud:add_waypoint( 'hudz_pkgB_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.blue, blend_mode = "add" }  )
  390.                                  --[[Purple]]
  391.                                 elseif tostring(v:name()) == "Idstring(@IDc90378ad89058c7d@)" then
  392.                                     managers.hud:add_waypoint( 'hudz_pkgP_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.purple, blend_mode = "add" }  )
  393.                                 --[[Red]]
  394.                                 elseif tostring(v:name()) == "Idstring(@ID96504ebd40f8cf98@)" then
  395.                                     managers.hud:add_waypoint( 'hudz_pkgR_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.red, blend_mode = "add" }  )
  396.                                  --[[Green]]
  397.                                 elseif tostring(v:name()) == "Idstring(@IDb3cc2abe1734636c@)" then
  398.                                     managers.hud:add_waypoint( 'hudz_pkgG_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.green, blend_mode = "add" }  )
  399.                                 else
  400.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.white, blend_mode = "add" }  )
  401.                                 end
  402.                             end
  403.                         end
  404.     ------2---------
  405.                     elseif _toggleWaypointAIO2 == 2 then
  406.                         -- Keycard
  407.                         if v:interaction().tweak_data == 'pickup_keycard' then
  408.                             if managers.job:current_level_id() == 'roberts' and v:position() == Vector3(250, 6750, -64.2354) then
  409.                             elseif managers.job:current_level_id() == 'big' and v:position() == Vector3(3000, -3500, 949.99) then
  410.                             elseif managers.job:current_level_id() == 'firestarter_2' and v:position() == Vector3(-1800, -3600, 400) then
  411.                             else
  412.                                 managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, Color.yellow, blend_mode = "add" }  )
  413.                             end
  414.                         end
  415.                         -- CIVS WITH KEYCARDS
  416.                         for u_key,u_data in pairs(managers.enemy:all_civilians()) do
  417.                             local player_pos = Vector3(0,0,0)  -- managers.player:player_unit():camera():position()
  418.                             local unit_pos = u_data.unit:movement():m_head_pos()
  419.                             if isHost() and (u_data.unit.contour and alive(u_data.unit)) and u_data.unit:character_damage():pickup() then
  420.                                 local ray = World:raycast("ray", player_pos, unit_pos, "slot_mask", managers.slot:get_mask( "AI_visibility" ), "ray_type", "ai_vision", "ignore_unit", { u_data.unit } )
  421.                                 if (ray and ray.unit) then
  422.                                     local cHealth = u_data.unit:character_damage() and u_data.unit:character_damage()._health
  423.                                     if cHealth then
  424.                                         local full = u_data.unit:character_damage()._HEALTH_INIT
  425.                                         local supp = u_data.unit:character_damage()._suppression_data
  426.                                         if full and (cHealth > 0.6) then
  427.                                             -- ALIVE
  428.                                             managers.hud:add_waypoint( 'hudz_civ_'..tostring(unit_pos), { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = unit_pos, no_sync = true, present_timer = 0, state = "present", radius = 800, color = orange, blend_mode = "add" }  )
  429.                                         else
  430.                                             -- DEAD
  431.                                         end
  432.                                     end
  433.                                 end
  434.                             end
  435.                         end  
  436.                         -- COPS WITH KEYCARDS
  437.                         for u_key, u_data in pairs(managers.enemy:all_enemies()) do
  438.                             local player_pos = Vector3(0,0,0) -- managers.player:player_unit():camera():position()
  439.                             local unit_pos = u_data.unit:movement():m_head_pos()
  440.                             if isHost() and u_data.unit.contour and alive(u_data.unit) and u_data.unit:character_damage():pickup() and u_data.unit:character_damage():pickup() ~= "ammo" then
  441.                                 local ray = World:raycast("ray", player_pos, unit_pos, "slot_mask", managers.slot:get_mask( "AI_visibility" ), "ray_type", "ai_vision", "ignore_unit", { u_data.unit } )
  442.                                 if (ray and ray.unit) then
  443.                                     local cHealth = u_data.unit:character_damage() and u_data.unit:character_damage()._health
  444.                                     if cHealth then
  445.                                         local full = u_data.unit:character_damage()._HEALTH_INIT
  446.                                         local supp = u_data.unit:character_damage()._suppression_data
  447.                                         if full and (cHealth > 0.6) then
  448.                                             -- ALIVE
  449.                                             managers.hud:add_waypoint( 'hudz_cop_'..tostring(unit_pos), { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = unit_pos, no_sync = true, present_timer = 0, state = "present", radius = 800, color = cobalt_blue, blend_mode = "add" }  )
  450.                                         else
  451.                                             -- DEAD
  452.                                         end
  453.                                     end
  454.                                 end
  455.                             end
  456.                         end
  457.                         -- big bank keys
  458.                         if (v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'take_keys') and managers.job:current_level_id() == 'big' then
  459.                             managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_chavez_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  460.                         -- security door
  461.                         elseif (v:interaction().tweak_data == 'key' or v:interaction().tweak_data == 'key_double' or v:interaction().tweak_data == 'hold_close_keycard') and managers.job:current_level_id() ~= "arm_for" then
  462.                             if bShowSecuDoors then
  463.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = cyan, blend_mode = "add" }  )
  464.                             end
  465.                         --DIAMOND STORE KEYPAD
  466.                         elseif managers.job:current_level_id() == "family" and v:interaction().tweak_data == 'numpad_keycard' then
  467.                             managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = cyan, blend_mode = "add" }  )
  468.                         end
  469.                         -- Security room
  470.                         if v:interaction().tweak_data == 'hack_suburbia' or v:interaction().tweak_data == 'access_camera' then
  471.                             managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  472.                         end
  473.                         -- Doors
  474.                         if v:interaction().tweak_data == 'pick_lock_hard_no_skill_deactivated' then
  475.                             managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_door', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  476.                         end
  477.     ------3---------
  478.                     elseif _toggleWaypointAIO2 == 3 then
  479.                         -- weapons
  480.                         if v:interaction().tweak_data == 'weapon_case' or v:interaction().tweak_data == 'take_weapons' then
  481.                             managers.hud:add_waypoint( 'hudz_wpn_'..k, { icon = 'ak', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.purple, blend_mode = "add" }  )
  482.                         -- coke
  483.                         elseif v:interaction().tweak_data == 'gen_pku_cocaine' then
  484.                             managers.hud:add_waypoint( 'hudz_coke_'..k, { icon = 'wp_vial', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  485.                         end
  486.     ------4---------
  487.                     elseif _toggleWaypointAIO2 == 4 then
  488.                         -- planks
  489.                         if v:interaction().tweak_data == 'stash_planks_pickup' and bShowPlanks then
  490.                             managers.hud:add_waypoint( 'hudz_plk_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  491.                         elseif v:interaction().tweak_data == 'pickup_boards' and bShowPlanks then
  492.                             managers.hud:add_waypoint( 'hudz_plk_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  493.                         end
  494.     ------5---------
  495.                     elseif _toggleWaypointAIO2 == 5 then
  496.                         -- crowbar
  497.                         if v:interaction().tweak_data == 'gen_pku_crowbar' then
  498.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_crowbar', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  499.                         -- shadow raid crates location
  500.                         elseif v:interaction().tweak_data == 'crate_loot_crowbar' and bShowCrates then
  501.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  502.                         -- election day 2 crates location
  503.                         elseif v:interaction().tweak_data == 'crate_loot' and bShowCrates then
  504.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  505.                         end
  506.     ------6---------
  507.                     elseif _toggleWaypointAIO2 == 6 then
  508.                         -- framing frame/gallery paintings
  509.                         if managers.job:current_level_id() == 'framing_frame_1' or managers.job:current_level_id() == 'gallery' then
  510.                             if v:interaction().tweak_data == 'hold_take_painting' and managers.job:current_level_id() ~= "kosugi" then
  511.                                 managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'equipment_ticket', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  512.                             end
  513.                             -- framing frame day 3 computer location
  514.                             if v:interaction().tweak_data == 'use_computer' then
  515.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'laptop_objective', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  516.                             -- framing frame day 3 phone location
  517.                             elseif v:interaction().tweak_data == 'pickup_phone' then
  518.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_phone', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  519.                             -- framing frame day 3 tablet location
  520.                             elseif v:interaction().tweak_data == 'pickup_tablet' then
  521.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_hack_ipad', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  522.                             -- framing frame day 3 servers location
  523.                             elseif (v:interaction().tweak_data == 'hold_take_server' or v:interaction().tweak_data == 'stash_server_pickup') and managers.job:current_level_id() == "framing_frame_3" then
  524.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  525.                             end
  526.                         end
  527.                         -- Framing Frame day 3 server
  528.                         if managers.job:current_level_id() == 'framing_frame_3' then
  529.                             if isHost() then
  530.                                 local servers =
  531.                                 {
  532.                                     ["105507"] = "Server Room 1",
  533.                                     ["105508"] = "Server Room 2",
  534.                                     ["100650"] = "Server Room 3"
  535.                                 }
  536.                                 local keyboard =
  537.                                 {
  538.                                     ["105507"] = "58cb6c4c6221c415",
  539.                                     ["105508"] = "58cb6c4c6221c415",
  540.                                     ["100650"] = "58cb6c4c6221c415"
  541.                                 }
  542.                                 local server_vectors =
  543.                                 {
  544.                                     ["105507"] = Vector3(-3937.26, 5644.73, 3474.5), -- Office
  545.                                     ["105508"] = Vector3(-3169.57, 4563.03, 3074.5), -- Hallway
  546.                                     ["100650"] = Vector3(-4920, 3737, 3074.5)    -- Living Room
  547.                                 }
  548.                                 local svectors = tostring(managers.mission:script("default")._elements[105506]._values.on_executed[1].id)
  549.                                 -- WAYPOINT SERVER
  550.                                 if _FF3_used == false then
  551.                                     managers.hud:add_waypoint( 'hudz_base_'..svectors, { icon = 'interaction_keyboard', distance = bShowDistance, position = server_vectors[svectors], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  552.                                 end                    
  553.                             elseif isClient() then
  554.                             end
  555.                         end
  556.                         -- rats day 1
  557.                         if managers.job:current_level_id() == 'alex_2' then
  558.                             if v:interaction().tweak_data == 'caustic_soda' then
  559.                                 managers.hud:add_waypoint( 'hudz_coke1_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  560.                             elseif v:interaction().tweak_data == 'hydrogen_chloride' then
  561.                                 managers.hud:add_waypoint( 'hudz_coke2_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  562.                             elseif v:interaction().tweak_data == 'muriatic_acid' then
  563.                                 managers.hud:add_waypoint( 'hudz_coke3_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  564.                             end
  565.                         end
  566.                         -- rats day 2
  567.                         if managers.job:current_level_id() == 'alex_2' then
  568.                             if isHost() then
  569.                                 local values =
  570.                                 {
  571.                                     ["103805"] = "Intel Revealer: Safe_01",
  572.                                     ["103806"] = "Intel Revealer: Safe_02",
  573.                                     ["103807"] = "Intel Revealer: Safe_03",    
  574.                                     ["103808"] = "Intel Revealer: Safe_04",
  575.                                     ["103809"] = "Intel Revealer: Safe_05",
  576.                                     ["103810"] = "Intel Revealer: Safe_06",
  577.                                     ["103811"] = "Intel Revealer: Safe_07",
  578.                                     ["103812"] = "Intel Revealer: Safe_08",
  579.                                     ["103813"] = "Intel Revealer: Safe_09",
  580.                                     ["103814"] = "Intel Revealer: Safe_10",
  581.                                     ["103815"] = "Intel Revealer: Safe_11",
  582.                                     ["103816"] = "Intel Revealer: Safe_12",
  583.                                     ["103817"] = "Intel Revealer: Safe_13",
  584.                                     ["103818"] = "Intel Revealer: Safe_14",
  585.                                     ["103819"] = "Intel Revealer: Safe_15",
  586.                                     ["103820"] = "Intel Revealer: Safe_16"
  587.                                 }
  588.                                 local bo_safes = {
  589.                                     ["103805"] = Vector3(791, 1426, 50),
  590.                                     ["103806"] = Vector3(326, 1673, 50),
  591.                                     ["103807"] = Vector3(365, 2022, 103.2),
  592.                                     ["103808"] = Vector3(560, 2175, 127.603),
  593.                                     ["103809"] = Vector3(2220, 1273, 82.103),
  594.                                     ["103810"] = Vector3(2079, 1013, 117.503),
  595.                                     ["103811"] = Vector3(2502, 1015, 50),
  596.                                     ["103812"] = Vector3(2332, 1100, 50),
  597.                                     ["103813"] = Vector3(3162, 2742, 82.1028),
  598.                                     ["103814"] = Vector3(2704, 2342, 114.325),
  599.                                     ["103815"] = Vector3(3400,2662,117.285),
  600.                                     ["103816"] = Vector3(2440, 2747, 50),
  601.                                     ["103817"] = Vector3(2474, 3414, 250),
  602.                                     ["103818"] = Vector3(3181, 3696, 250),
  603.                                     ["103819"] = Vector3(2625, 4003, 250),
  604.                                     ["103820"] = Vector3(2755, 3901, 250)
  605.                                 }
  606.                                 local bo_intel = tostring(managers.mission:script("default")._elements[103759]._values.on_executed[1].id)
  607.                                 if _intel_used == false then
  608.                                     managers.hud:add_waypoint( 'hudz_base_'..bo_intel, { icon = 'interaction_patientfile', distance = bShowDistance, position = bo_safes[bo_intel], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  609.                                 end
  610.                             elseif isClient() then
  611.                                 --managers.chat:_receive_message(1, "*WARNING*", "Intel Revealer is unavailable for you. Host ONLY.",  Color.red)
  612.                                 -- 2 safes
  613.                                 if (v:interaction().tweak_data == 'drill' or v:interaction().tweak_data == 'take_confidential_folder') then
  614.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_patientfile', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  615.                                 end
  616.                             end
  617.                         end
  618.                         -- Ukrainian Job Power
  619.                         if managers.job:current_level_id() == "ukrainian_job" then
  620.                             if v:interaction().tweak_data == 'circuit_breaker' then
  621.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  622.                             end
  623.                         end
  624.                         -- Ukrainian Job Tiara location
  625.                         if managers.job:current_level_id() == "ukrainian_job" and _tiara_used == false then
  626.                             if isHost() or isClient() then
  627.                                 local unit_list = World:find_units_quick( "all" )
  628.                                 for _,unit in ipairs( unit_list ) do
  629.                                     if unit:base() and tostring(unit:name()) == "Idstring(@ID077636ce1f33c8d0@)" --[[TIARA]] then
  630.                                         managers.hud:add_waypoint( 'hudz_Robj_'.._, { icon = 'pd2_loot', distance = bShowDistance, position = unit:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  631.                                     end
  632.                                 end
  633.                             end
  634.                         end
  635.                         -- election day 1, computer location
  636.                         if managers.job:current_level_id() == 'election_day_1' and v:interaction().tweak_data == 'uload_database' then
  637.                             managers.hud:add_waypoint( 'hudz_uload'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  638.                         end
  639.                         -- Election Day 1 Truck
  640.                         if managers.job:current_level_id() == 'election_day_1' then
  641.                             if isHost() then
  642.                                 local trucks =
  643.                                 {
  644.                                     ["100636"] = "1",
  645.                                     ["100633"] = "2",
  646.                                     ["100637"] = "3",
  647.                                     ["100634"] = "4",
  648.                                     ["100639"] = "5",
  649.                                     ["100635"] = "6"
  650.                                 }
  651.                                 local truckid =
  652.                                 {
  653.                                     ["100633"] = "3b0947a2434bdc93",
  654.                                     ["100634"] = "3b0947a2434bdc93",
  655.                                     ["100635"] = "3b0947a2434bdc93",
  656.                                     ["100636"] = "3b0947a2434bdc93",
  657.                                     ["100637"] = "3b0947a2434bdc93",
  658.                                     ["100639"] = "3b0947a2434bdc93"
  659.                                 }
  660.                                 local truck_vectors =
  661.                                 {
  662.                                     ["100636"] = Vector3(150, -3900, 0), -- 1st
  663.                                     ["100633"] = Vector3(878.392, -3360.24, 0), --2nd
  664.                                     ["100637"] = Vector3(149.999, -2775, 0), --3rd
  665.                                     ["100634"] = Vector3(828.07, -2222.45, 0), --4th
  666.                                     ["100639"] = Vector3(149.998, -1625, 0), --5th
  667.                                     ["100635"] = Vector3(848.961, -1084.9, 0) --6th
  668.                                 }
  669.                                 local truckv = tostring(managers.mission:script("default")._elements[100631]._values.on_executed[1].id)
  670.                                 -- WAYPOINT SERVER
  671.                                 if _gps_used == false then
  672.                                     managers.hud:add_waypoint( 'hudz_Robj_'..truckv, { icon = 'wp_target', distance = bShowDistance, position = truck_vectors[truckv], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  673.                                 end                    
  674.                             else
  675.                             end
  676.                         end
  677.                         -- election day 2, machines
  678.                         if v:interaction().tweak_data == 'votingmachine2' then
  679.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  680.                         end
  681.                         -- election day 3, keyboard
  682.                         if managers.job:current_level_id() == 'election_day_3_skip1' and v:interaction().tweak_data == 'security_station_keyboard' then
  683.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  684.                         end
  685.                         -- firestarter day 2 security boxes location
  686.                         if v:interaction().tweak_data == 'open_slash_close_sec_box' and managers.groupai:state():whisper_mode() and managers.job:current_level_id() == 'firestarter_2' then
  687.                             if isHost() then
  688.                                 bo_boxes = {
  689.                                     ["105819"] = Vector3(-2710, -2830, 552),    -- Box 001
  690.                                     ["105794"] = Vector3(-1840, -3195, 552),    -- Box 002
  691.                                     ["105810"] = Vector3(-1540, -2195, 552),    -- Box 003
  692.                                     ["105824"] = Vector3(-1005, -3365, 552),    -- Box 004
  693.                                     ["105837"] = Vector3(-635, -1705, 552), -- Box 005
  694.                                     ["105851"] = Vector3(-1095, -210, 152), -- Box 006
  695.                                     ["106183"] = Vector3(-1230, 1510, 152), -- Box 007
  696.                                     ["106529"] = Vector3(-1415, -795, 152), -- Box 008
  697.                                     ["106543"] = Vector3(-1160, 395, 152),  -- Box 009
  698.                                     ["106556"] = Vector3(-5, 735, 152), -- Box 010
  699.                                     ["106581"] = Vector3(1360, 5, 552), -- Box 011
  700.                                     ["106594"] = Vector3(795, -898, 552),   -- Box 012
  701.                                     ["106607"] = Vector3(795, -3240, 552),  -- Box 013
  702.                                     ["106620"] = Vector3(1060, -2195, 552), -- Box 014
  703.                                     ["106633"] = Vector3(204, 540, 578),    -- Box 015
  704.                                     ["106646"] = Vector3(-1085, -1205, 552),    -- Box 016
  705.                                     ["106659"] = Vector3(-2135, 395, 552),  -- Box 017
  706.                                     ["106672"] = Vector3(-2405, -840, 552), -- Box 018
  707.                                     ["106685"] = Vector3(-2005, -1640, 552),    -- Box 019
  708.                                     ["106698"] = Vector3(-2715, -1595, 552),    -- Box 020
  709.                                                     ["106711"] = Vector3(-500, -650, 1300), -- Box 021
  710.                                                     ["106724"] = Vector3(-400, -650, 1300), -- Box 022
  711.                                                     ["106737"] = Vector3(-300, -650, 1300), -- Box 023      UNAVAILABLE
  712.                                                     ["106750"] = Vector3(-200, -650, 1300), -- Box 024
  713.                                                     ["106763"] = Vector3(-100, -650, 1300), -- Box 025
  714.                                     ["106776"] = Vector3(-635, -1205, 152), -- Box 026
  715.                                     ["106789"] = Vector3(-1040, -95, 552),  -- Box 027
  716.                                     ["106802"] = Vector3(615, 395, 152),    -- Box 028
  717.                                     ["106815"] = Vector3(1890, -1805, 152), -- Box 029
  718.                                     ["106828"] = Vector3(215, -1805, 152)   -- Box 030
  719.                                 }
  720.                                 SecBox1 = tostring(managers.mission:script("default")._elements[106836]._values.on_executed[1].id)
  721.                                 SecBox2 = tostring(managers.mission:script("default")._elements[106836]._values.on_executed[2].id)
  722.                                 if _box1_used == false then
  723.                                     managers.hud:add_waypoint( 'hudz_Robj_'..SecBox1, { icon = 'interaction_wirecutter', distance = bShowDistance, position = bo_boxes[SecBox1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  724.                                 end
  725.                                 if _box2_used == false then
  726.                                     managers.hud:add_waypoint( 'hudz_Robj_'..SecBox2, { icon = 'interaction_wirecutter', distance = bShowDistance, position = bo_boxes[SecBox2], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  727.                                 end
  728.                             elseif isClient() then
  729.                                 nb = nb + 1
  730.                                 if clientBox[nb] ~= 0 then
  731.                                     clientBox[nb] = v:position()
  732.                                     -- managers.chat:_receive_message(1, "Box_Client"..nb, tostring(clientBox[nb]),  Color.green)
  733.                                     managers.hud:add_waypoint( 'hudz_box_'..k, { icon = 'interaction_wirecutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  734.                                 end
  735.                             end
  736.                         end
  737.                         if nb == 5 then nb = 0 end
  738.                         -- Big Oil day 1 intel
  739.                         if v:interaction().tweak_data == 'hold_take_blueprints' then
  740.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  741.                         elseif v:interaction().tweak_data == 'take_confidential_folder' then
  742.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  743.                         elseif v:interaction().tweak_data == 'pickup_asset' then
  744.                             managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_chavez_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  745.                         end
  746.                         -- Big Oil day 1 Safe
  747.                         if managers.job:current_level_id() == "welcome_to_the_jungle_1" and v:interaction().tweak_data == 'drill' then
  748.                             managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_drill', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  749.                         end
  750.                         -- Big Oil day 2 engine + server
  751.                         if managers.job:current_level_id() == 'welcome_to_the_jungle_2' then
  752.                             if isHost() then
  753.                                 values =
  754.                                 {
  755.                                     ["103703"] = "engine_01",
  756.                                     ["103704"] = "engine_02",
  757.                                     ["103705"] = "engine_03",
  758.                                     ["103706"] = "engine_04",
  759.                                     ["103707"] = "engine_05",
  760.                                     ["103708"] = "engine_06",
  761.                                     ["103709"] = "engine_07",
  762.                                     ["103711"] = "engine_08",
  763.                                     ["103714"] = "engine_09",
  764.                                     ["103715"] = "engine_10",
  765.                                     ["103716"] = "engine_11",
  766.                                     ["103717"] = "engine_12"
  767.                                 }
  768.                                 engine_pos =
  769.                                 {
  770.                                     ['103703'] = Vector3(-1830,-2182,-313.49200439453),             -- 1
  771.                                     ['103704'] = Vector3(-1200,-2050,-313.49200439453),             -- 2
  772.                                     ['103705'] = Vector3(-1849,-1869,-313.49200439453),             -- 3
  773.                                     ['103706'] = Vector3(-1200,-1735,-313.49200439453),             -- 4
  774.                                     ['103707'] = Vector3(-1849,-1429,-313.49200439453),             -- 5
  775.                                     ['103708'] = Vector3(-1200,-1415,-313.49200439453),             -- 6
  776.  
  777.                                     ['103709'] = Vector3(-175,-2025,-313.49200439453),              -- 7
  778.                                     ['103711'] = Vector3(-24.999900817871,-1350,-313.49200439453),  -- 8
  779.                                     ['103714'] = Vector3(-175,-1675,-313.49200439453),              -- 9
  780.                                     ['103715'] = Vector3(35,-1733,-314),                            -- 10
  781.                                     ['103716'] = Vector3(-175,-1350,-313.49200439453),              -- 11
  782.                                     ['103717'] = Vector3(25,-2050,-313.49200439453)                 -- 12
  783.                                 }
  784.                                 local srooms =
  785.                                 {
  786.                                     ["101865"] = "Server Room Revealer: 1st floor, Back of the property",
  787.                                     ["101866"] = "Server Room Revealer: 1st floor, Front of the property",
  788.                                     ["101915"] = "Server Room Revealer: Ground floor"
  789.                                 }
  790.                                 local keyboard_id =
  791.                                 {
  792.                                     ["101865"] = "8efe34cd3f706348",
  793.                                     ["101866"] = "8efe34cd3f706348",
  794.                                     ["101915"] = "8efe34cd3f706348"
  795.                                 }
  796.                                 local bo_servers =
  797.                                 {
  798.                                     ["101865"] = Vector3(-662, -2142, 475), -- Room 1
  799.                                     ["101866"] = Vector3(-2129, 391, 475), -- Room 2
  800.                                     ["101915"] = Vector3(-384, -96, 75) -- Room 3
  801.                                 }
  802.                                 local bo_keyboard = tostring(managers.mission:script("default")._elements[101916]._values.on_executed[1].id)           
  803.                                 correct_id = tostring(managers.mission:script('default')._elements[103718]._values.on_executed[1].id)
  804.                                 if lp == false then
  805.                                     -- CHAT
  806.                                     if _keyboard_used == false then
  807.                                         managers.chat:_receive_message(1, "Server Room", srooms[tostring(managers.mission:script("default")._elements[101916]._values.on_executed[1].id)],  tweak_data.system_chat_color)
  808.                                     end
  809.                                     if _engine_used == false then
  810.                                         managers.chat:_receive_message(1, "Big Oil", values[tostring(managers.mission:script("default")._elements[103718]._values.on_executed[1].id)],  tweak_data.system_chat_color)
  811.                                     end
  812.                                     lp = true
  813.                                 end
  814.                                 -- WAYPOINT SERVER
  815.                                 if _keyboard_used == false then
  816.                                     managers.hud:add_waypoint( 'hudz_base_'..bo_keyboard, { icon = 'interaction_keyboard', distance = bShowDistance, position = bo_servers[bo_keyboard], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  817.                                 end
  818.                                 -- WAYPOINT ENGINE
  819.                                 if _engine_used == false then
  820.                                     managers.hud:add_waypoint( 'hudz_Robj_'..correct_id, { icon = 'pd2_loot', distance = bShowDistance, position = engine_pos[correct_id], no_sync = true, present_timer = 0, state = 'present', radius = 800, color = Color.green, blend_mode = 'add' }  )
  821.                                 end
  822.                                 if v:interaction().tweak_data == 'carry_drop' and _checking_bags then
  823.                                     if v:carry_data():carry_id() == values[correct_id] then
  824.                                         managers.hud:add_waypoint( 'hudz_Robj_'..correct_id..'b', { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  825.                                     end
  826.                                 end
  827.                             end
  828.                         end
  829.                         -- shadow raid server
  830.                         if (v:interaction().tweak_data == 'hold_take_server' or v:interaction().tweak_data == 'stash_server_pickup') and managers.job:current_level_id() == "kosugi" then
  831.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  832.                         -- shadow raid paintings
  833.                         elseif v:interaction().tweak_data == 'hold_take_painting' and managers.job:current_level_id() == "kosugi" then
  834.                             managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  835.                         -- shadow raid statue inside crate
  836.                         elseif v:interaction().tweak_data == 'gen_pku_artifact_statue' or v:interaction().tweak_data == 'samurai_armor' then
  837.                             managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_scrubs', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  838.                         -- shadow raid sewer manhole
  839.                         elseif v:interaction().tweak_data == 'sewer_manhole' and managers.job:current_level_id() == "kosugi" and bShowSewerManHole then
  840.                             managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'interaction_open_door', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  841.                         -- shadow raid sewer thermite
  842.                         elseif v:interaction().tweak_data == 'apply_thermite_paste' and managers.job:current_level_id() == "kosugi" and bShowThermite then
  843.                             managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'equipment_thermite', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  844.                         end
  845.                         -- intel train heist
  846.                         if (managers.job:current_level_id() == 'arm_hcm'
  847.                             or managers.job:current_level_id() == 'arm_cro'
  848.                             or managers.job:current_level_id() == 'arm_fac'
  849.                             or managers.job:current_level_id() == 'arm_par'
  850.                             or managers.job:current_level_id() == 'arm_und')
  851.                         and v:interaction().tweak_data == 'take_confidential_folder_event' then
  852.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_patientfile', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  853.                         end
  854.                         -- train heist turret
  855.                         if v:interaction().tweak_data == 'disassemble_turret' and managers.job:current_level_id() == "arm_for" then
  856.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_sentry', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  857.                         end
  858.                         if managers.job:current_level_id() == "arm_for" then
  859.                             if isHost() then
  860.                                 local vault1 = tostring(managers.mission:script("default")._elements[104736]._values.on_executed[1].id)
  861.                                 local vault2 = tostring(managers.mission:script("default")._elements[104737]._values.on_executed[1].id)
  862.                                 local vault3 = tostring(managers.mission:script("default")._elements[104738]._values.on_executed[1].id)
  863.                                 if _drill1_used == false then
  864.                                     if vault1 == '104731' then
  865.                                         managers.hud:add_waypoint( 'hudz_base_'..vault1, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-2710, -1152, 666), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  866.                                     elseif vault1 == '104729' then
  867.                                         managers.hud:add_waypoint( 'hudz_base_'..vault1, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-1707, -1157, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  868.                                     end
  869.                                 end
  870.                                 if _drill2_used == false then
  871.                                     if vault2 == '104732' then
  872.                                         managers.hud:add_waypoint( 'hudz_base_'..vault2, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-192, -1152, 668), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  873.                                     elseif vault2 == '104733' then
  874.                                         managers.hud:add_waypoint( 'hudz_base_'..vault2, { icon = 'wp_target', distance = bShowDistance, position = Vector3(794, -1161, 668), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  875.                                     end
  876.                                 end
  877.                                 if _drill3_used == false then
  878.                                     if vault3 == '104734' then
  879.                                         managers.hud:add_waypoint( 'hudz_base_'..vault3, { icon = 'wp_target', distance = bShowDistance, position = Vector3(2291, -1155, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  880.                                     elseif vault3 == '104735' then
  881.                                         managers.hud:add_waypoint( 'hudz_base_'..vault3, { icon = 'wp_target', distance = bShowDistance, position = Vector3(3308, -1151, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  882.                                     end
  883.                                 end
  884.                             end
  885.                         end
  886.                         -- big bank server
  887.                         if managers.job:current_level_id() == 'big' and v:interaction().tweak_data == 'big_computer_server' then
  888.                             if _bbserv_used == false then
  889.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  890.                             end
  891.                         end
  892.                         -- big bank keyboards location
  893.                         if isHost() and (v:interaction().tweak_data == 'big_computer_hackable' or v:interaction().tweak_data == 'big_computer_server') and managers.job:current_level_id() == 'big' then
  894.                             local big1 = tostring(managers.mission:script("default")._elements[103246]._original_on_executed[1].id)
  895.                             local big1 = tostring(managers.mission:script("default")._elements[103246]._values.on_executed[1].id)
  896.                             local stfcmpts = {
  897.                                 ["103250"] = Vector3(2754, 1420, -923),
  898.                                 ["103229"] = Vector3(2083, 1412, -922.772),
  899.                                 ["103569"] = Vector3(1941, 1345, -922.772),
  900.                                 ["103604"] = Vector3(1589, 1419, -922.772),
  901.                                 ["103647"] = Vector3(2558, 1847, -922.772),
  902.                                 ["103709"] = Vector3(2448.08, 1849.07, -922.772),
  903.                                 ["103749"] = Vector3(1859.2, 1832.25, -922.772),
  904.                                 ["103788"] = Vector3(1732, 1812, -923),
  905.                                 ["103898"] = Vector3(1090, 1220, -522.772),
  906.                                 ["103916"] = Vector3(1293.46, 1221.04, -522.772),
  907.                                 ["103927"] = Vector3(1909, 1389, -522.762),
  908.                                 ["103948"] = Vector3(1917.69, 1583.79, -522.762),
  909.                                 ["103966"] = Vector3(2318, 1608, -522.762),
  910.                                 ["103984"] = Vector3(2319.79, 1407.8, -522.762),
  911.                                 ["104006"] = Vector3(2716, 1220, -522.772),
  912.                                 ["104024"] = Vector3(2895.76, 1782.56, -522.772),
  913.                                 ["104042"] = Vector3(2922, 1218.89, -522.772),
  914.                                 ["104080"] = nil,
  915.                                 ["104127"] = nil,
  916.                                 ["104315"] = nil
  917.                             }
  918.                             if tostring(stfcmpts[big1]) ~= 'nil' then
  919.                                 managers.hud:add_waypoint( 'hudz_Robj_'..'big', { icon = 'interaction_keyboard', distance = bShowDistance, position = stfcmpts[big1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  920.                             end
  921.                         else
  922.                             if v:interaction().tweak_data == 'big_computer_hackable' then
  923.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  924.                             end
  925.                         end
  926.                         -- Hotline miami day 1
  927.                         if managers.job:current_level_id() == 'mia_1' then
  928.                             if v:interaction().tweak_data == 'hold_take_gas_can' then
  929.                                 managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'equipment_thermite', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  930.                             end
  931.                             if v:interaction().tweak_data == 'hlm_roll_carpet' then
  932.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  933.                             end
  934.                         end
  935.                         -- Hotline miami day 2
  936.                         if managers.job:current_level_id() == 'mia_2' then
  937.                             if v:interaction().tweak_data == 'disarm_bomb' then
  938.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  939.                             end
  940.                             if v:interaction().tweak_data == 'hold_hlm_open_circuitbreaker' or v:interaction().tweak_data == 'hold_remove_cover' or v:interaction().tweak_data == 'hold_cut_cable' then
  941.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  942.                             end
  943.                             if v:interaction().tweak_data == 'c4_mission_door' then
  944.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_c4', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  945.                             end
  946.                         end
  947.                         -- HOXTON BREAKOUT DAY 1
  948.                         if managers.job:current_level_id() == 'hox_1' and _comp_used == false then
  949.                             if isHost() then
  950.                                 local hox1 = tostring(managers.mission:script("default")._elements[101519]._original_on_executed[1].id)
  951.                                 local hox1 = tostring(managers.mission:script("default")._elements[101519]._values.on_executed[1].id)
  952.                                 local srvrooms = {
  953.                                     ["101520"] = Vector3(9458.71, 5680, -2690),
  954.                                     ["101523"] = Vector3(12966.3, 8320, -2690),
  955.                                     ["101524"] = Vector3(9741.29, 8520, -2590),
  956.                                     ["101525"] = Vector3(11341.3, 8520, -2390),
  957.                                     ["101527"] = Vector3(8233.71, 5880, -2290),
  958.                                     ["101528"] = Vector3(9741.29, 8520, -2190),
  959.                                     ["101529"] = Vector3(11341.3, 8520, -1990),
  960.                                     ["101531"] = Vector3(8741.29, 8195, -1890),
  961.                                     ["101806"] = Vector3(10558.7, 6130, -1890),
  962.                                     ["101807"] = Vector3(12258.7, 4280, -2290)
  963.                                 }
  964.                                 if tostring(srvrooms[hox1]) ~= 'nil' then
  965.                                     managers.hud:add_waypoint( 'hudz_Robj_'..'hox1', { icon = 'interaction_keyboard', distance = bShowDistance, position = srvrooms[hox1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  966.                                 end
  967.                             else
  968.                                 if v:interaction().tweak_data == 'shaped_sharge' then
  969.                                     managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  970.                                 end
  971.                             end
  972.                         end
  973.                         -- Hox day 2
  974.                         if managers.job:current_level_id() == 'hox_2' then
  975.                             if v:interaction().tweak_data == 'firstaid_box'
  976.                             or v:interaction().tweak_data == 'invisible_interaction_open'
  977.                             --or v:interaction().tweak_data == 'invisible_interaction_close'
  978.                             then
  979.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_doctor_bag', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  980.                             end
  981.                             if v:interaction().tweak_data == 'grenade_crate' or v:interaction().tweak_data == 'ammo_bag' then
  982.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ammo_bag', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  983.                             end
  984.                             if v:interaction().tweak_data == 'hold_download_keys' then
  985.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  986.                             end
  987.                             if v:interaction().tweak_data == 'invisible_interaction_gathering' then
  988.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_evidence', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  989.                             end
  990.                             -- Files
  991.                             if v:interaction().tweak_data == 'search_files_false' then
  992.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'equipment_files', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  993.                             end
  994.                             -- Correct file
  995.                             if v:interaction().tweak_data == 'invisible_interaction_searching' then
  996.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_files', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  997.                             end
  998.                             if v:interaction().tweak_data == 'grab_server' then
  999.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1000.                             end
  1001.                         end
  1002.                         -- White Xmas
  1003.                         if managers.job:current_level_id() == 'pines' then
  1004.                             -- xmas presents
  1005.                             if v:interaction().tweak_data == 'hold_open_xmas_present' then
  1006.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1007.                             end
  1008.                             -- coke
  1009.                             if v:interaction().tweak_data == 'gen_pku_cocaine_pure' then
  1010.                                 managers.hud:add_waypoint( 'hudz_coke_'..k, { icon = 'wp_vial', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" } )
  1011.                             end
  1012.                             -- Almir's Toast
  1013.                             if v:interaction().tweak_data == 'gen_pku_sandwich' then
  1014.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" } )
  1015.                             end
  1016.                         end
  1017.                         -- The Diamond
  1018.                         if managers.job:current_level_id() == 'mus' then
  1019.                             -- electric box
  1020.                             if (v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'rewire_electric_box') and v:interaction():interact_position() ~= Vector3(6150, 549, -500) then
  1021.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  1022.                             end
  1023.                             -- glass / artifact
  1024.                             --if v:interaction().tweak_data == 'cut_glass'
  1025.                             if v:interaction().tweak_data == 'gen_pku_artifact' then
  1026.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_saw', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1027.                             end
  1028.                             if v:interaction().tweak_data == 'mus_pku_artifact' then
  1029.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1030.                             end
  1031.                             if v:interaction().tweak_data == 'gen_pku_artifact_painting'
  1032.                             and v:interaction():interact_position() ~= Vector3(-2271.7534179688, -2397.224609375, -221.53845214844)
  1033.                             and v:interaction():interact_position() ~= Vector3(-1425, -2260, -633.00500488281)
  1034.                             then
  1035.                                 managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'equipment_ticket', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1036.                             end
  1037.                             -- security room - keyboard
  1038.                             if v:interaction().tweak_data == 'hack_suburbia' or v:interaction().tweak_data == 'access_camera' then
  1039.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1040.                             end
  1041.                         end
  1042.                         -- THE DIAMOND - PUZZLE
  1043.                         local _path_ok = _script_activated - _path_created
  1044.                         if _path_ok > 0 then _hack_ok = true else _hack_ok = false end
  1045.                         if managers.job:current_level_id() == 'mus' and v:interaction().tweak_data == 'mus_hold_open_display' and isHost() and _hack_ok == true then
  1046.                             _path_terminated = false
  1047.                             local tiles_all = {
  1048.                         -- FLOOR
  1049.                                 ["133577"] = Vector3(6475, 700, -600),  -- a001
  1050.                                 ["133578"] = Vector3(6475, 500, -600),  -- a002
  1051.                                 ["133579"] = Vector3(6475, 300, -600),  -- a003
  1052.                                 ["133580"] = Vector3(6475, 100, -600),  -- a004
  1053.                                 ["133581"] = Vector3(6475, -100, -600), -- a005
  1054.                                 ["133582"] = Vector3(6475, -300, -600), -- a006
  1055.                         -- A --
  1056.                                 ["133583"] = Vector3(6675, 700, -600),  -- b001     UP
  1057.                                 ["133584"] = Vector3(6675, 500, -600),  -- b002     UP
  1058.                                 ["133585"] = Vector3(6675, 300, -600),  -- b003     UP
  1059.                                 ["133586"] = Vector3(6675, 100, -600),  -- b004     UP
  1060.                                 ["133587"] = Vector3(6675, -100, -600), -- b005     UP
  1061.                                 ["133588"] = Vector3(6675, -300, -600), -- b006     UP
  1062.                         -- B --
  1063.                                 -- b001 : 133631
  1064.                                 ["133638"] = Vector3(6675, 500, -600),  -- b002     RIGHT
  1065.                                 ["133589"] = Vector3(6875, 700, -600),  -- c001     UP
  1066.                                 -- b002 : 133633
  1067.                                 ["133640"] = Vector3(6675, 300, -600),  -- b003     RIGHT
  1068.                                 ["133590"] = Vector3(6675, 300, -600),  -- c002     UP
  1069.                                 ["133639"] = Vector3(6675, 700, -600),  -- b001     LEFT
  1070.                                 -- b003 : 133634
  1071.                                 ["133591"] = Vector3(6875, 300, -600),  -- c003     UP
  1072.                                 ["133642"] = Vector3(6675, 100, -600),  -- b004     RIGHT
  1073.                                 ["133641"] = Vector3(6675, 500, -600),  -- b002     LEFT
  1074.                                 -- b004 : 133635
  1075.                                 ["133592"] = Vector3(6875, 100, -600),  -- c004     UP
  1076.                                 ["133643"] = Vector3(6675, 300, -600),  -- b003     LEFT
  1077.                                 ["133645"] = Vector3(6675, -100, -600), -- b005     RIGHT
  1078.                                 -- b005 : 133636
  1079.                                 ["133593"] = Vector3(6875, -100, -600), -- c005     UP
  1080.                                 ["133647"] = Vector3(6675, -300, -600), -- b006     RIGHT
  1081.                                 ["133644"] = Vector3(6675, 100, -600),  -- b004     LEFT
  1082.                                 -- b006 : 133637
  1083.                                 ["133594"] = Vector3(6875, -300, -600), -- c005     UP
  1084.                                 ["133646"] = Vector3(6675, -100, -600), -- b005     LEFT
  1085.                         -- C --
  1086.                                 -- c001 : 133650
  1087.                                 ["133595"] = Vector3(7075, 700, -600),  -- d001     UP
  1088.                                 ["133648"] = Vector3(6875, 500, -600),  -- c002     RIGHT
  1089.                                 -- c002 : 133653
  1090.                                 ["133601"] = Vector3(7075, 500, -600),  -- d002     UP
  1091.                                 ["133652"] = Vector3(6875, 300, -600),  -- c003     RIGHT
  1092.                                 ["133649"] = Vector3(6875, 700, -600),  -- c001     LEFT
  1093.                                 -- c003 : 133656
  1094.                                 ["133607"] = Vector3(7075, 300, -600),  -- d003     UP
  1095.                                 ["133655"] = Vector3(6875, 100, -600),  -- c004     RIGHT
  1096.                                 ["133651"] = Vector3(6875, 500, -600),  -- c002     LEFT
  1097.                                 -- c004 : 133659
  1098.                                 ["133613"] = Vector3(7075, 100, -600),  -- d004     UP
  1099.                                 ["133658"] = Vector3(6875, -100, -600), -- c005     RIGHT
  1100.                                 ["133654"] = Vector3(6875, 300, -600),  -- c003     LEFT
  1101.                                 -- c005 : 133662
  1102.                                 ["133619"] = Vector3(7075, -100, -600), -- d005     UP
  1103.                                 ["133661"] = Vector3(6875, -300, -600), -- c006     RIGHT
  1104.                                 ["133657"] = Vector3(6875, 100, -600),  -- c004     LEFT
  1105.                                 -- c006 : 133663
  1106.                                 ["133625"] = Vector3(7075, -300, -600), -- d006     UP
  1107.                                 ["133660"] = Vector3(6875, -100, -600), -- c005     LEFT
  1108.                         -- D --
  1109.                                 -- d001 : 133666
  1110.                                 ["133596"] = Vector3(7275, 700, -600),  -- e001     UP
  1111.                                 ["133664"] = Vector3(7075, 500, -600),  -- d002     RIGHT
  1112.                                 -- d002 : 133669
  1113.                                 ["133602"] = Vector3(7275, 500, -600),  -- e002     UP
  1114.                                 ["133667"] = Vector3(7075, 300, -600),  -- d003     RIGHT
  1115.                                 ["133665"] = Vector3(7075, 700, -600),  -- d001     LEFT
  1116.                                 -- d003 : 133672
  1117.                                 ["133608"] = Vector3(7275, 300, -600),  -- e003     UP
  1118.                                 ["133670"] = Vector3(7075, 100, -600),  -- d004     RIGHT
  1119.                                 ["133668"] = Vector3(7075, 500, -600),  -- d002     LEFT
  1120.                                 -- d004 : 133675
  1121.                                 ["133614"] = Vector3(7275, 100, -600),  -- e004     UP
  1122.                                 ["133673"] = Vector3(7075, -100, -600), -- d005     RIGHT
  1123.                                 ["133671"] = Vector3(7075, 300, -600),  -- d003     LEFT
  1124.                                 -- d005 : 133678
  1125.                                 ["133620"] = Vector3(7275, -100, -600), -- e005     UP
  1126.                                 ["133676"] = Vector3(7075, -300, -600), -- d006     RIGHT
  1127.                                 ["133674"] = Vector3(7075, 100, -600),  -- d004     LEFT
  1128.                                 -- d006 : 133679
  1129.                                 ["133626"] = Vector3(7275, -300, -600), -- e006     UP
  1130.                                 ["133677"] = Vector3(7075, -100, -600), -- d005     LEFT
  1131.                         -- E --
  1132.                                 -- e001 : 133680
  1133.                                 ["133597"] = Vector3(7475, 700, -600),  -- f001     UP
  1134.                                 ["133682"] = Vector3(7275, 500, -600),  -- e002     RIGHT
  1135.                                 -- e002 : 133683
  1136.                                 ["133603"] = Vector3(7475, 500, -600),  -- f002     UP
  1137.                                 ["133684"] = Vector3(7275, 300, -600),  -- e003     RIGHT
  1138.                                 ["133681"] = Vector3(7275, 700, -600),  -- e001     LEFT
  1139.                                 -- e003 : 133686
  1140.                                 ["133609"] = Vector3(7475, 300, -600),  -- f003     UP
  1141.                                 ["133687"] = Vector3(7275, 100, -600),  -- e004     RIGHT
  1142.                                 ["133685"] = Vector3(7275, 500, -600),  -- e002     LEFT
  1143.                                 -- e004 : 133689
  1144.                                 ["133615"] = Vector3(7475, 100, -600),  -- f004     UP
  1145.                                 ["133690"] = Vector3(7275, -100, -600), -- e005     RIGHT
  1146.                                 ["133688"] = Vector3(7275, 300, -600),  -- e003     LEFT
  1147.                                 -- e005 : 133692
  1148.                                 ["133621"] = Vector3(7475, -100, -600), -- f005     UP
  1149.                                 ["133693"] = Vector3(7275, -300, -600), -- e006     RIGHT
  1150.                                 ["133691"] = Vector3(7275, 100, -600),  -- e004     LEFT
  1151.                                 -- e006 : 133695
  1152.                                 ["133627"] = Vector3(7475, -300, -600), -- f006     UP
  1153.                                 ["133694"] = Vector3(7275, -100, -600), -- e005     LEFT
  1154.                         -- F --
  1155.                                 -- f001 : 133696
  1156.                                 ["133598"] = Vector3(7675, 700, -600),  -- g001     UP
  1157.                                 ["133698"] = Vector3(7475, 500, -600),  -- f002     RIGHT
  1158.                                 -- f002 : 133699
  1159.                                 ["133604"] = Vector3(7675, 500, -600),  -- g002     UP
  1160.                                 ["133700"] = Vector3(7475, 300, -600),  -- f003     RIGHT
  1161.                                 ["133697"] = Vector3(7475, 700, -600),  -- f001     LEFT
  1162.                                 -- f003 : 133702
  1163.                                 ["133610"] = Vector3(7675, 300, -600),  -- g003     UP
  1164.                                 ["133703"] = Vector3(7475, 100, -600),  -- f004     RIGHT
  1165.                                 ["133701"] = Vector3(7475, 500, -600),  -- f002     LEFT
  1166.                                 -- f004 : 133705
  1167.                                 ["133616"] = Vector3(7675, 100, -600),  -- g004     UP
  1168.                                 ["133706"] = Vector3(7475, -100, -600), -- f005     RIGHT
  1169.                                 ["133704"] = Vector3(7475, 300, -600),  -- f003     LEFT
  1170.                                 -- f005 : 133708
  1171.                                 ["133622"] = Vector3(7675, -100, -600), -- g005     UP
  1172.                                 ["133709"] = Vector3(7475, -300, -600), -- f006     RIGHT
  1173.                                 ["133707"] = Vector3(7475, 100, -600),  -- f004     LEFT
  1174.                                 -- f006 : 133711
  1175.                                 ["133628"] = Vector3(7675, -300, -600), -- g006     UP
  1176.                                 ["133710"] = Vector3(7475, -100, -600), -- f005     LEFT
  1177.                         -- G --
  1178.                                 -- g001 : 133712
  1179.                                 ["133599"] = Vector3(7875, 700, -600),  -- h001     UP
  1180.                                 ["133714"] = Vector3(7675, 500, -600),  -- g002     RIGHT
  1181.                                 -- g002 : 133715
  1182.                                 ["133605"] = Vector3(7875, 500, -600),  -- h002     UP
  1183.                                 ["133716"] = Vector3(7675, 300, -600),  -- g003     RIGHT
  1184.                                 ["133713"] = Vector3(7675, 700, -600),  -- g001     LEFT
  1185.                                 -- g003 : 133718
  1186.                                 ["133611"] = Vector3(7875, 300, -600),  -- h003     UP
  1187.                                 ["133719"] = Vector3(7675, 100, -600),  -- g004     RIGHT
  1188.                                 ["133717"] = Vector3(7675, 500, -600),  -- g002     LEFT
  1189.                                 -- g004 : 133721
  1190.                                 ["133617"] = Vector3(7875, 100, -600),  -- h004     UP
  1191.                                 ["133722"] = Vector3(7675, -100, -600), -- g005     RIGHT
  1192.                                 ["133720"] = Vector3(7675, 300, -600),  -- g003     LEFT
  1193.                                 -- g005 : 133724
  1194.                                 ["133623"] = Vector3(7875, -100, -600), -- h005     UP
  1195.                                 ["133725"] = Vector3(7675, -300, -600), -- g006     RIGHT
  1196.                                 ["133723"] = Vector3(7675, 100, -600),  -- g004     LEFT
  1197.                                 -- g006 : 133727
  1198.                                 ["133629"] = Vector3(7875, -300, -600), -- h006     UP
  1199.                                 ["133726"] = Vector3(7675, -100, -600), -- g005     LEFT
  1200.                         -- H --
  1201.                                 -- h001 : 133728
  1202.                                 ["133600"] = Vector3(8075, 700, -600),  -- i001     UP
  1203.                                 ["133730"] = Vector3(7875, 500, -600),  -- h002     RIGHT
  1204.                                 -- h002 : 133731
  1205.                                 ["133606"] = Vector3(8075, 500, -600),  -- i002     UP
  1206.                                 ["133732"] = Vector3(7875, 300, -600),  -- h003     RIGHT
  1207.                                 ["133729"] = Vector3(7875, 700, -600),  -- h001     LEFT
  1208.                                 -- h003 : 133734
  1209.                                 ["133612"] = Vector3(8075, 300, -600),  -- i003     UP
  1210.                                 ["133735"] = Vector3(7875, 100, -600),  -- h004     RIGHT
  1211.                                 ["133733"] = Vector3(7875, 500, -600),  -- h002     LEFT
  1212.                                 -- h004 : 133737
  1213.                                 ["133618"] = Vector3(8075, 100, -600),  -- i004     UP
  1214.                                 ["133738"] = Vector3(7875, -100, -600), -- h005     RIGHT
  1215.                                 ["133736"] = Vector3(7875, 300, -600),  -- h003     LEFT
  1216.                                 -- h005 : 133740
  1217.                                 ["133624"] = Vector3(8075, -100, -600), -- i005     UP
  1218.                                 ["133741"] = Vector3(7875, -300, -600), -- h006     RIGHT
  1219.                                 ["133739"] = Vector3(7875, 100, -600),  -- h004     LEFT
  1220.                                 -- h006 : 133743
  1221.                                 ["133630"] = Vector3(8075, -300, -600), -- i006     UP
  1222.                                 ["133742"] = Vector3(7875, -100, -600), -- h005     LEFT
  1223.                             }
  1224.                                
  1225.                             if _path_terminated == false then
  1226.                               if _path_ok > 1 then
  1227.                                 local tile_1 = managers.mission:script("default")._elements[133576]._values.on_executed[1].id
  1228.                                 managers.hud:add_waypoint( 'hudz_base_'..'tile_1', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_1)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1229.                               if _path_ok > 2 then
  1230.                                 local tile_2 = managers.mission:script("default")._elements[tile_1]._values.on_executed[1].id
  1231.                                 managers.hud:add_waypoint( 'hudz_base_'..'tile_2', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_2)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1232.                               if _path_ok > 3 then
  1233.                                 local tile_3 = managers.mission:script("default")._elements[tile_2]._values.on_executed[1].id
  1234.                                 local tile_3b = managers.mission:script("default")._elements[tile_3]._values.on_executed[1].id
  1235.                                 if tile_3 == 133631 or tile_3 == 133633 or tile_3 == 133634 or tile_3 == 133635 or tile_3 == 133636 or tile_3 == 133637 or tile_3 == 133650
  1236.                                 or tile_3 == 133653 or tile_3 == 133656 or tile_3 == 133659 or tile_3 == 133662 or tile_3 == 133663 or tile_3 == 133666 or tile_3 == 133669
  1237.                                 or tile_3 == 133672 or tile_3 == 133675 or tile_3 == 133678 or tile_3 == 133679 or tile_3 == 133680 or tile_3 == 133683 or tile_3 == 133686
  1238.                                 or tile_3 == 133689 or tile_3 == 133692 or tile_3 == 133695 or tile_3 == 133696 or tile_3 == 133699 or tile_3 == 133702 or tile_3 == 133705
  1239.                                 or tile_3 == 133708 or tile_3 == 133711 or tile_3 == 133712 or tile_3 == 133715 or tile_3 == 133718 or tile_3 == 133721 or tile_3 == 133724
  1240.                                 or tile_3 == 133727 or tile_3 == 133728 or tile_3 == 133731 or tile_3 == 133734 or tile_3 == 133737 or tile_3 == 133740 or tile_3 == 133743
  1241.                                 then
  1242.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_3', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_3b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1243.                                     _path_tile = tile_3b
  1244.                                 else
  1245.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_3', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_3)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1246.                                     _path_tile = tile_3
  1247.                                 end
  1248.                               if _path_ok > 4 then
  1249.                                 local tile_4_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1250.                                 local tile_4 = managers.mission:script("default")._elements[tile_4_0]._values.on_executed[1].id
  1251.                                 local tile_4b = managers.mission:script("default")._elements[tile_4]._values.on_executed[1].id
  1252.                                 if tile_4 == 133631 or tile_4 == 133633 or tile_4 == 133634 or tile_4 == 133635 or tile_4 == 133636 or tile_4 == 133637 or tile_4 == 133650
  1253.                                 or tile_4 == 133653 or tile_4 == 133656 or tile_4 == 133659 or tile_4 == 133662 or tile_4 == 133663 or tile_4 == 133666 or tile_4 == 133669
  1254.                                 or tile_4 == 133672 or tile_4 == 133675 or tile_4 == 133678 or tile_4 == 133679 or tile_4 == 133680 or tile_4 == 133683 or tile_4 == 133686
  1255.                                 or tile_4 == 133689 or tile_4 == 133692 or tile_4 == 133695 or tile_4 == 133696 or tile_4 == 133699 or tile_4 == 133702 or tile_4 == 133705
  1256.                                 or tile_4 == 133708 or tile_4 == 133711 or tile_4 == 133712 or tile_4 == 133715 or tile_4 == 133718 or tile_4 == 133721 or tile_4 == 133724
  1257.                                 or tile_4 == 133727 or tile_4 == 133728 or tile_4 == 133731 or tile_4 == 133734 or tile_4 == 133737 or tile_4 == 133740 or tile_4 == 133743
  1258.                                 then
  1259.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_4', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_4b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1260.                                     _path_tile = tile_4b
  1261.                                 else
  1262.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_4', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_4)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1263.                                     _path_tile = tile_4
  1264.                                 end
  1265.                               if _path_ok > 5 then
  1266.                                 local tile_5_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1267.                                 local tile_5 = managers.mission:script("default")._elements[tile_5_0]._values.on_executed[1].id
  1268.                                 local tile_5b = managers.mission:script("default")._elements[tile_5]._values.on_executed[1].id
  1269.                                 if tile_5 == 133631 or tile_5 == 133633 or tile_5 == 133634 or tile_5 == 133635 or tile_5 == 133636 or tile_5 == 133637 or tile_5 == 133650
  1270.                                 or tile_5 == 133653 or tile_5 == 133656 or tile_5 == 133659 or tile_5 == 133662 or tile_5 == 133663 or tile_5 == 133666 or tile_5 == 133669
  1271.                                 or tile_5 == 133672 or tile_5 == 133675 or tile_5 == 133678 or tile_5 == 133679 or tile_5 == 133680 or tile_5 == 133683 or tile_5 == 133686
  1272.                                 or tile_5 == 133689 or tile_5 == 133692 or tile_5 == 133695 or tile_5 == 133696 or tile_5 == 133699 or tile_5 == 133702 or tile_5 == 133705
  1273.                                 or tile_5 == 133708 or tile_5 == 133711 or tile_5 == 133712 or tile_5 == 133715 or tile_5 == 133718 or tile_5 == 133721 or tile_5 == 133724
  1274.                                 or tile_5 == 133727 or tile_5 == 133728 or tile_5 == 133731 or tile_5 == 133734 or tile_5 == 133737 or tile_5 == 133740 or tile_5 == 133743
  1275.                                 then
  1276.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_5', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_5b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1277.                                     _path_tile = tile_5b
  1278.                                 else
  1279.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_5', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_5)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1280.                                     _path_tile = tile_5
  1281.                                 end
  1282.                               if _path_ok > 6 then
  1283.                                 local tile_6_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1284.                                 local tile_6 = managers.mission:script("default")._elements[tile_6_0]._values.on_executed[1].id
  1285.                                 local tile_6b = managers.mission:script("default")._elements[tile_6]._values.on_executed[1].id
  1286.                                 if tile_6 == 133631 or tile_6 == 133633 or tile_6 == 133634 or tile_6 == 133635 or tile_6 == 133636 or tile_6 == 133637 or tile_6 == 133650
  1287.                                 or tile_6 == 133653 or tile_6 == 133656 or tile_6 == 133659 or tile_6 == 133662 or tile_6 == 133663 or tile_6 == 133666 or tile_6 == 133669
  1288.                                 or tile_6 == 133672 or tile_6 == 133675 or tile_6 == 133678 or tile_6 == 133679 or tile_6 == 133680 or tile_6 == 133683 or tile_6 == 133686
  1289.                                 or tile_6 == 133689 or tile_6 == 133692 or tile_6 == 133695 or tile_6 == 133696 or tile_6 == 133699 or tile_6 == 133702 or tile_6 == 133705
  1290.                                 or tile_6 == 133708 or tile_6 == 133711 or tile_6 == 133712 or tile_6 == 133715 or tile_6 == 133718 or tile_6 == 133721 or tile_6 == 133724
  1291.                                 or tile_6 == 133727 or tile_6 == 133728 or tile_6 == 133731 or tile_6 == 133734 or tile_6 == 133737 or tile_6 == 133740 or tile_6 == 133743
  1292.                                 then
  1293.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_6', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_6b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1294.                                     _path_tile = tile_6b
  1295.                                 else
  1296.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_6', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_6)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1297.                                     _path_tile = tile_6
  1298.                                 end
  1299.                               if _path_ok > 7 then
  1300.                                 local tile_7_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1301.                                 local tile_7 = managers.mission:script("default")._elements[tile_7_0]._values.on_executed[1].id
  1302.                                 local tile_7b = managers.mission:script("default")._elements[tile_7]._values.on_executed[1].id
  1303.                                 if tile_7 == 133631 or tile_7 == 133633 or tile_7 == 133634 or tile_7 == 133635 or tile_7 == 133636 or tile_7 == 133637 or tile_7 == 133650
  1304.                                 or tile_7 == 133653 or tile_7 == 133656 or tile_7 == 133659 or tile_7 == 133662 or tile_7 == 133663 or tile_7 == 133666 or tile_7 == 133669
  1305.                                 or tile_7 == 133672 or tile_7 == 133675 or tile_7 == 133678 or tile_7 == 133679 or tile_7 == 133680 or tile_7 == 133683 or tile_7 == 133686
  1306.                                 or tile_7 == 133689 or tile_7 == 133692 or tile_7 == 133695 or tile_7 == 133696 or tile_7 == 133699 or tile_7 == 133702 or tile_7 == 133705
  1307.                                 or tile_7 == 133708 or tile_7 == 133711 or tile_7 == 133712 or tile_7 == 133715 or tile_7 == 133718 or tile_7 == 133721 or tile_7 == 133724
  1308.                                 or tile_7 == 133727 or tile_7 == 133728 or tile_7 == 133731 or tile_7 == 133734 or tile_7 == 133737 or tile_7 == 133740 or tile_7 == 133743
  1309.                                 then
  1310.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_7', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_7b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1311.                                     _path_tile = tile_7b
  1312.                                 else
  1313.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_7', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_7)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1314.                                     _path_tile = tile_7
  1315.                                 end
  1316.                               if _path_ok > 8 then
  1317.                                 local tile_8_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1318.                                 local tile_8 = managers.mission:script("default")._elements[tile_8_0]._values.on_executed[1].id
  1319.                                 local tile_8b = managers.mission:script("default")._elements[tile_8]._values.on_executed[1].id
  1320.                                 if tile_8 == 133631 or tile_8 == 133633 or tile_8 == 133634 or tile_8 == 133635 or tile_8 == 133636 or tile_8 == 133637 or tile_8 == 133650
  1321.                                 or tile_8 == 133653 or tile_8 == 133656 or tile_8 == 133659 or tile_8 == 133662 or tile_8 == 133663 or tile_8 == 133666 or tile_8 == 133669
  1322.                                 or tile_8 == 133672 or tile_8 == 133675 or tile_8 == 133678 or tile_8 == 133679 or tile_8 == 133680 or tile_8 == 133683 or tile_8 == 133686
  1323.                                 or tile_8 == 133689 or tile_8 == 133692 or tile_8 == 133695 or tile_8 == 133696 or tile_8 == 133699 or tile_8 == 133702 or tile_8 == 133705
  1324.                                 or tile_8 == 133708 or tile_8 == 133711 or tile_8 == 133712 or tile_8 == 133715 or tile_8 == 133718 or tile_8 == 133721 or tile_8 == 133724
  1325.                                 or tile_8 == 133727 or tile_8 == 133728 or tile_8 == 133731 or tile_8 == 133734 or tile_8 == 133737 or tile_8 == 133740 or tile_8 == 133743
  1326.                                 then
  1327.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_8', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_8b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1328.                                     _path_tile = tile_8b
  1329.                                 else
  1330.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_8', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_8)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1331.                                     _path_tile = tile_8
  1332.                                 end
  1333.                               if _path_ok > 9 then
  1334.                                 local tile_9_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1335.                                 local tile_9 = managers.mission:script("default")._elements[tile_9_0]._values.on_executed[1].id
  1336.                                 local tile_9b = managers.mission:script("default")._elements[tile_9]._values.on_executed[1].id
  1337.                                 if tile_9 == 133631 or tile_9 == 133633 or tile_9 == 133634 or tile_9 == 133635 or tile_9 == 133636 or tile_9 == 133637 or tile_9 == 133650
  1338.                                 or tile_9 == 133653 or tile_9 == 133656 or tile_9 == 133659 or tile_9 == 133662 or tile_9 == 133663 or tile_9 == 133666 or tile_9 == 133669
  1339.                                 or tile_9 == 133672 or tile_9 == 133675 or tile_9 == 133678 or tile_9 == 133679 or tile_9 == 133680 or tile_9 == 133683 or tile_9 == 133686
  1340.                                 or tile_9 == 133689 or tile_9 == 133692 or tile_9 == 133695 or tile_9 == 133696 or tile_9 == 133699 or tile_9 == 133702 or tile_9 == 133705
  1341.                                 or tile_9 == 133708 or tile_9 == 133711 or tile_9 == 133712 or tile_9 == 133715 or tile_9 == 133718 or tile_9 == 133721 or tile_9 == 133724
  1342.                                 or tile_9 == 133727 or tile_9 == 133728 or tile_9 == 133731 or tile_9 == 133734 or tile_9 == 133737 or tile_9 == 133740 or tile_9 == 133743
  1343.                                 then
  1344.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_9', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_9b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1345.                                     _path_tile = tile_9b
  1346.                                 else
  1347.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_9', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_9)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1348.                                     _path_tile = tile_9
  1349.                                 end
  1350.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1351.                                     -- LAST TILE!
  1352.                                     _path_terminated = true
  1353.                                 end
  1354.                               end end end end end end end end end
  1355.                             end
  1356.                             if _path_ok > 10 then
  1357.                             if _path_terminated == false then
  1358.                                 local tile_10_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1359.                                 local tile_10 = managers.mission:script("default")._elements[tile_10_0]._values.on_executed[1].id
  1360.                                 local tile_10b = managers.mission:script("default")._elements[tile_10]._values.on_executed[1].id
  1361.                                 if tile_10 == 133631 or tile_10 == 133633   or tile_10 == 133634 or tile_10 == 133635 or tile_10 == 133636 or tile_10 == 133637 or tile_10 == 133650
  1362.                                 or tile_10 == 133653 or tile_10 == 133656 or tile_10 == 133659 or tile_10 == 133662 or tile_10 == 133663 or tile_10 == 133666 or tile_10 == 133669
  1363.                                 or tile_10 == 133672 or tile_10 == 133675 or tile_10 == 133678 or tile_10 == 133679 or tile_10 == 133680 or tile_10 == 133683 or tile_10 == 133686
  1364.                                 or tile_10 == 133689 or tile_10 == 133692 or tile_10 == 133695 or tile_10 == 133696 or tile_10 == 133699 or tile_10 == 133702 or tile_10 == 133705
  1365.                                 or tile_10 == 133708 or tile_10 == 133711 or tile_10 == 133712 or tile_10 == 133715 or tile_10 == 133718 or tile_10 == 133721 or tile_10 == 133724
  1366.                                 or tile_10 == 133727 or tile_10 == 133728 or tile_10 == 133731 or tile_10 == 133734 or tile_10 == 133737 or tile_10 == 133740 or tile_10 == 133743
  1367.                                 then
  1368.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_10', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_10b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1369.                                     _path_tile = tile_10b
  1370.                                 else
  1371.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_10', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_10)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1372.                                     _path_tile = tile_10
  1373.                                 end
  1374.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1375.                                     -- LAST TILE!
  1376.                                     _path_terminated = true
  1377.                                 end
  1378.                             end
  1379.                             if _path_terminated == false then
  1380.                                 local tile_11_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1381.                                 local tile_11 = managers.mission:script("default")._elements[tile_11_0]._values.on_executed[1].id
  1382.                                 local tile_11b = managers.mission:script("default")._elements[tile_11]._values.on_executed[1].id
  1383.                                 if tile_11 == 133631 or tile_11 == 133633   or tile_11 == 133634 or tile_11 == 133635 or tile_11 == 133636 or tile_11 == 133637 or tile_11 == 133650
  1384.                                 or tile_11 == 133653 or tile_11 == 133656 or tile_11 == 133659 or tile_11 == 133662 or tile_11 == 133663 or tile_11 == 133666 or tile_11 == 133669
  1385.                                 or tile_11 == 133672 or tile_11 == 133675 or tile_11 == 133678 or tile_11 == 133679 or tile_11 == 133680 or tile_11 == 133683 or tile_11 == 133686
  1386.                                 or tile_11 == 133689 or tile_11 == 133692 or tile_11 == 133695 or tile_11 == 133696 or tile_11 == 133699 or tile_11 == 133702 or tile_11 == 133705
  1387.                                 or tile_11 == 133708 or tile_11 == 133711 or tile_11 == 133712 or tile_11 == 133715 or tile_11 == 133718 or tile_11 == 133721 or tile_11 == 133724
  1388.                                 or tile_11 == 133727 or tile_11 == 133728 or tile_11 == 133731 or tile_11 == 133734 or tile_11 == 133737 or tile_11 == 133740 or tile_11 == 133743
  1389.                                 then
  1390.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_11', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_11b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1391.                                     _path_tile = tile_11b
  1392.                                 else
  1393.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_11', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_11)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1394.                                     _path_tile = tile_11
  1395.                                 end
  1396.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1397.                                     -- LAST TILE!
  1398.                                     _path_terminated = true
  1399.                                 end
  1400.                             end
  1401.                             if _path_terminated == false then
  1402.                                 local tile_12_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1403.                                 local tile_12 = managers.mission:script("default")._elements[tile_12_0]._values.on_executed[1].id
  1404.                                 local tile_12b = managers.mission:script("default")._elements[tile_12]._values.on_executed[1].id
  1405.                                 if tile_12 == 133631 or tile_12 == 133633   or tile_12 == 133634 or tile_12 == 133635 or tile_12 == 133636 or tile_12 == 133637 or tile_12 == 133650
  1406.                                 or tile_12 == 133653 or tile_12 == 133656 or tile_12 == 133659 or tile_12 == 133662 or tile_12 == 133663 or tile_12 == 133666 or tile_12 == 133669
  1407.                                 or tile_12 == 133672 or tile_12 == 133675 or tile_12 == 133678 or tile_12 == 133679 or tile_12 == 133680 or tile_12 == 133683 or tile_12 == 133686
  1408.                                 or tile_12 == 133689 or tile_12 == 133692 or tile_12 == 133695 or tile_12 == 133696 or tile_12 == 133699 or tile_12 == 133702 or tile_12 == 133705
  1409.                                 or tile_12 == 133708 or tile_12 == 133711 or tile_12 == 133712 or tile_12 == 133715 or tile_12 == 133718 or tile_12 == 133721 or tile_12 == 133724
  1410.                                 or tile_12 == 133727 or tile_12 == 133728 or tile_12 == 133731 or tile_12 == 133734 or tile_12 == 133737 or tile_12 == 133740 or tile_12 == 133743
  1411.                                 then
  1412.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_12', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_12b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1413.                                     _path_tile = tile_12b
  1414.                                 else
  1415.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_12', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_12)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1416.                                     _path_tile = tile_12
  1417.                                 end
  1418.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1419.                                     -- LAST TILE!
  1420.                                     _path_terminated = true
  1421.                                 end
  1422.                             end
  1423.                             if _path_terminated == false then
  1424.                                 local tile_13_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1425.                                 local tile_13 = managers.mission:script("default")._elements[tile_13_0]._values.on_executed[1].id
  1426.                                 local tile_13b = managers.mission:script("default")._elements[tile_13]._values.on_executed[1].id
  1427.                                 if tile_13 == 133631 or tile_13 == 133633   or tile_13 == 133634 or tile_13 == 133635 or tile_13 == 133636 or tile_13 == 133637 or tile_13 == 133650
  1428.                                 or tile_13 == 133653 or tile_13 == 133656 or tile_13 == 133659 or tile_13 == 133662 or tile_13 == 133663 or tile_13 == 133666 or tile_13 == 133669
  1429.                                 or tile_13 == 133672 or tile_13 == 133675 or tile_13 == 133678 or tile_13 == 133679 or tile_13 == 133680 or tile_13 == 133683 or tile_13 == 133686
  1430.                                 or tile_13 == 133689 or tile_13 == 133692 or tile_13 == 133695 or tile_13 == 133696 or tile_13 == 133699 or tile_13 == 133702 or tile_13 == 133705
  1431.                                 or tile_13 == 133708 or tile_13 == 133711 or tile_13 == 133712 or tile_13 == 133715 or tile_13 == 133718 or tile_13 == 133721 or tile_13 == 133724
  1432.                                 or tile_13 == 133727 or tile_13 == 133728 or tile_13 == 133731 or tile_13 == 133734 or tile_13 == 133737 or tile_13 == 133740 or tile_13 == 133743
  1433.                                 then
  1434.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_13', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_13b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1435.                                     _path_tile = tile_13b
  1436.                                 else
  1437.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_13', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_13)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1438.                                     _path_tile = tile_13
  1439.                                 end
  1440.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1441.                                     -- LAST TILE!
  1442.                                     _path_terminated = true
  1443.                                 end
  1444.                             end
  1445.                             if _path_terminated == false then
  1446.                                 local tile_14_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1447.                                 local tile_14 = managers.mission:script("default")._elements[tile_14_0]._values.on_executed[1].id
  1448.                                 local tile_14b = managers.mission:script("default")._elements[tile_14]._values.on_executed[1].id
  1449.                                 if tile_14 == 133631 or tile_14 == 133633   or tile_14 == 133634 or tile_14 == 133635 or tile_14 == 133636 or tile_14 == 133637 or tile_14 == 133650
  1450.                                 or tile_14 == 133653 or tile_14 == 133656 or tile_14 == 133659 or tile_14 == 133662 or tile_14 == 133663 or tile_14 == 133666 or tile_14 == 133669
  1451.                                 or tile_14 == 133672 or tile_14 == 133675 or tile_14 == 133678 or tile_14 == 133679 or tile_14 == 133680 or tile_14 == 133683 or tile_14 == 133686
  1452.                                 or tile_14 == 133689 or tile_14 == 133692 or tile_14 == 133695 or tile_14 == 133696 or tile_14 == 133699 or tile_14 == 133702 or tile_14 == 133705
  1453.                                 or tile_14 == 133708 or tile_14 == 133711 or tile_14 == 133712 or tile_14 == 133715 or tile_14 == 133718 or tile_14 == 133721 or tile_14 == 133724
  1454.                                 or tile_14 == 133727 or tile_14 == 133728 or tile_14 == 133731 or tile_14 == 133734 or tile_14 == 133737 or tile_14 == 133740 or tile_14 == 133743
  1455.                                 then
  1456.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_14', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_14b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1457.                                     _path_tile = tile_14b
  1458.                                 else
  1459.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_14', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_14)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1460.                                     _path_tile = tile_14
  1461.                                 end
  1462.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1463.                                     -- LAST TILE!
  1464.                                     _path_terminated = true
  1465.                                 end
  1466.                             end
  1467.                             if _path_terminated == false then
  1468.                                 local tile_15_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1469.                                 local tile_15 = managers.mission:script("default")._elements[tile_15_0]._values.on_executed[1].id
  1470.                                 local tile_15b = managers.mission:script("default")._elements[tile_15]._values.on_executed[1].id
  1471.                                 if tile_15 == 133631 or tile_15 == 133633   or tile_15 == 133634 or tile_15 == 133635 or tile_15 == 133636 or tile_15 == 133637 or tile_15 == 133650
  1472.                                 or tile_15 == 133653 or tile_15 == 133656 or tile_15 == 133659 or tile_15 == 133662 or tile_15 == 133663 or tile_15 == 133666 or tile_15 == 133669
  1473.                                 or tile_15 == 133672 or tile_15 == 133675 or tile_15 == 133678 or tile_15 == 133679 or tile_15 == 133680 or tile_15 == 133683 or tile_15 == 133686
  1474.                                 or tile_15 == 133689 or tile_15 == 133692 or tile_15 == 133695 or tile_15 == 133696 or tile_15 == 133699 or tile_15 == 133702 or tile_15 == 133705
  1475.                                 or tile_15 == 133708 or tile_15 == 133711 or tile_15 == 133712 or tile_15 == 133715 or tile_15 == 133718 or tile_15 == 133721 or tile_15 == 133724
  1476.                                 or tile_15 == 133727 or tile_15 == 133728 or tile_15 == 133731 or tile_15 == 133734 or tile_15 == 133737 or tile_15 == 133740 or tile_15 == 133743
  1477.                                 then
  1478.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_15', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_15b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1479.                                     _path_tile = tile_15b
  1480.                                 else
  1481.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_15', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_15)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1482.                                     _path_tile = tile_15
  1483.                                 end
  1484.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1485.                                     -- LAST TILE!
  1486.                                     _path_terminated = true
  1487.                                 end
  1488.                             end
  1489.                             if _path_terminated == false then
  1490.                                 local tile_16_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1491.                                 local tile_16 = managers.mission:script("default")._elements[tile_16_0]._values.on_executed[1].id
  1492.                                 local tile_16b = managers.mission:script("default")._elements[tile_16]._values.on_executed[1].id
  1493.                                 if tile_16 == 133631 or tile_16 == 133633   or tile_16 == 133634 or tile_16 == 133635 or tile_16 == 133636 or tile_16 == 133637 or tile_16 == 133650
  1494.                                 or tile_16 == 133653 or tile_16 == 133656 or tile_16 == 133659 or tile_16 == 133662 or tile_16 == 133663 or tile_16 == 133666 or tile_16 == 133669
  1495.                                 or tile_16 == 133672 or tile_16 == 133675 or tile_16 == 133678 or tile_16 == 133679 or tile_16 == 133680 or tile_16 == 133683 or tile_16 == 133686
  1496.                                 or tile_16 == 133689 or tile_16 == 133692 or tile_16 == 133695 or tile_16 == 133696 or tile_16 == 133699 or tile_16 == 133702 or tile_16 == 133705
  1497.                                 or tile_16 == 133708 or tile_16 == 133711 or tile_16 == 133712 or tile_16 == 133715 or tile_16 == 133718 or tile_16 == 133721 or tile_16 == 133724
  1498.                                 or tile_16 == 133727 or tile_16 == 133728 or tile_16 == 133731 or tile_16 == 133734 or tile_16 == 133737 or tile_16 == 133740 or tile_16 == 133743
  1499.                                 then
  1500.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_16', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_16b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1501.                                     _path_tile = tile_16b
  1502.                                 else
  1503.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_16', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_16)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1504.                                     _path_tile = tile_16
  1505.                                 end
  1506.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1507.                                     -- LAST TILE!
  1508.                                     _path_terminated = true
  1509.                                 end
  1510.                             end
  1511.                             if _path_terminated == false then
  1512.                                 local tile_17_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1513.                                 local tile_17 = managers.mission:script("default")._elements[tile_17_0]._values.on_executed[1].id
  1514.                                 local tile_17b = managers.mission:script("default")._elements[tile_17]._values.on_executed[1].id
  1515.                                 if tile_17 == 133631 or tile_17 == 133633   or tile_17 == 133634 or tile_17 == 133635 or tile_17 == 133636 or tile_17 == 133637 or tile_17 == 133650
  1516.                                 or tile_17 == 133653 or tile_17 == 133656 or tile_17 == 133659 or tile_17 == 133662 or tile_17 == 133663 or tile_17 == 133666 or tile_17 == 133669
  1517.                                 or tile_17 == 133672 or tile_17 == 133675 or tile_17 == 133678 or tile_17 == 133679 or tile_17 == 133680 or tile_17 == 133683 or tile_17 == 133686
  1518.                                 or tile_17 == 133689 or tile_17 == 133692 or tile_17 == 133695 or tile_17 == 133696 or tile_17 == 133699 or tile_17 == 133702 or tile_17 == 133705
  1519.                                 or tile_17 == 133708 or tile_17 == 133711 or tile_17 == 133712 or tile_17 == 133715 or tile_17 == 133718 or tile_17 == 133721 or tile_17 == 133724
  1520.                                 or tile_17 == 133727 or tile_17 == 133728 or tile_17 == 133731 or tile_17 == 133734 or tile_17 == 133737 or tile_17 == 133740 or tile_17 == 133743
  1521.                                 then
  1522.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_17', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_17b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1523.                                     _path_tile = tile_17b
  1524.                                 else
  1525.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_17', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_17)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1526.                                     _path_tile = tile_17
  1527.                                 end
  1528.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1529.                                     -- LAST TILE!
  1530.                                     _path_terminated = true
  1531.                                 end
  1532.                             end
  1533.                             if _path_terminated == false then
  1534.                                 local tile_18_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1535.                                 local tile_18 = managers.mission:script("default")._elements[tile_18_0]._values.on_executed[1].id
  1536.                                 local tile_18b = managers.mission:script("default")._elements[tile_18]._values.on_executed[1].id
  1537.                                 if tile_18 == 133631 or tile_18 == 133633   or tile_18 == 133634 or tile_18 == 133635 or tile_18 == 133636 or tile_18 == 133637 or tile_18 == 133650
  1538.                                 or tile_18 == 133653 or tile_18 == 133656 or tile_18 == 133659 or tile_18 == 133662 or tile_18 == 133663 or tile_18 == 133666 or tile_18 == 133669
  1539.                                 or tile_18 == 133672 or tile_18 == 133675 or tile_18 == 133678 or tile_18 == 133679 or tile_18 == 133680 or tile_18 == 133683 or tile_18 == 133686
  1540.                                 or tile_18 == 133689 or tile_18 == 133692 or tile_18 == 133695 or tile_18 == 133696 or tile_18 == 133699 or tile_18 == 133702 or tile_18 == 133705
  1541.                                 or tile_18 == 133708 or tile_18 == 133711 or tile_18 == 133712 or tile_18 == 133715 or tile_18 == 133718 or tile_18 == 133721 or tile_18 == 133724
  1542.                                 or tile_18 == 133727 or tile_18 == 133728 or tile_18 == 133731 or tile_18 == 133734 or tile_18 == 133737 or tile_18 == 133740 or tile_18 == 133743
  1543.                                 then
  1544.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_18', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_18b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1545.                                     _path_tile = tile_18b
  1546.                                 else
  1547.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_18', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_18)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1548.                                     _path_tile = tile_18
  1549.                                 end
  1550.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1551.                                     -- LAST TILE!
  1552.                                     _path_terminated = true
  1553.                                 end
  1554.                             end
  1555.                             if _path_terminated == false then
  1556.                                 local tile_19_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1557.                                 local tile_19 = managers.mission:script("default")._elements[tile_19_0]._values.on_executed[1].id
  1558.                                 local tile_19b = managers.mission:script("default")._elements[tile_19]._values.on_executed[1].id
  1559.                                 if tile_19 == 133631 or tile_19 == 133633   or tile_19 == 133634 or tile_19 == 133635 or tile_19 == 133636 or tile_19 == 133637 or tile_19 == 133650
  1560.                                 or tile_19 == 133653 or tile_19 == 133656 or tile_19 == 133659 or tile_19 == 133662 or tile_19 == 133663 or tile_19 == 133666 or tile_19 == 133669
  1561.                                 or tile_19 == 133672 or tile_19 == 133675 or tile_19 == 133678 or tile_19 == 133679 or tile_19 == 133680 or tile_19 == 133683 or tile_19 == 133686
  1562.                                 or tile_19 == 133689 or tile_19 == 133692 or tile_19 == 133695 or tile_19 == 133696 or tile_19 == 133699 or tile_19 == 133702 or tile_19 == 133705
  1563.                                 or tile_19 == 133708 or tile_19 == 133711 or tile_19 == 133712 or tile_19 == 133715 or tile_19 == 133718 or tile_19 == 133721 or tile_19 == 133724
  1564.                                 or tile_19 == 133727 or tile_19 == 133728 or tile_19 == 133731 or tile_19 == 133734 or tile_19 == 133737 or tile_19 == 133740 or tile_19 == 133743
  1565.                                 then
  1566.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_19', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_19b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1567.                                     _path_tile = tile_19b
  1568.                                 else
  1569.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_19', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_19)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1570.                                     _path_tile = tile_19
  1571.                                 end
  1572.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1573.                                     -- LAST TILE!
  1574.                                     _path_terminated = true
  1575.                                 end
  1576.                             end
  1577.                             if _path_terminated == false then
  1578.                                 local tile_20_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  1579.                                 local tile_20 = managers.mission:script("default")._elements[tile_20_0]._values.on_executed[1].id
  1580.                                 local tile_20b = managers.mission:script("default")._elements[tile_20]._values.on_executed[1].id
  1581.                                 if tile_20 == 133631 or tile_20 == 133633   or tile_20 == 133634 or tile_20 == 133635 or tile_20 == 133636 or tile_20 == 133637 or tile_20 == 133650
  1582.                                 or tile_20 == 133653 or tile_20 == 133656 or tile_20 == 133659 or tile_20 == 133662 or tile_20 == 133663 or tile_20 == 133666 or tile_20 == 133669
  1583.                                 or tile_20 == 133672 or tile_20 == 133675 or tile_20 == 133678 or tile_20 == 133679 or tile_20 == 133680 or tile_20 == 133683 or tile_20 == 133686
  1584.                                 or tile_20 == 133689 or tile_20 == 133692 or tile_20 == 133695 or tile_20 == 133696 or tile_20 == 133699 or tile_20 == 133702 or tile_20 == 133705
  1585.                                 or tile_20 == 133708 or tile_20 == 133711 or tile_20 == 133712 or tile_20 == 133715 or tile_20 == 133718 or tile_20 == 133721 or tile_20 == 133724
  1586.                                 or tile_20 == 133727 or tile_20 == 133728 or tile_20 == 133731 or tile_20 == 133734 or tile_20 == 133737 or tile_20 == 133740 or tile_20 == 133743
  1587.                                 then
  1588.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_20', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_20b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1589.                                     _path_tile = tile_20b
  1590.                                 else
  1591.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_20', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_20)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1592.                                     _path_tile = tile_20
  1593.                                 end
  1594.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  1595.                                     -- LAST TILE!
  1596.                                     _path_terminated = true
  1597.                                 end
  1598.                             end
  1599.                             end
  1600.                         end
  1601.                         -- THE BOMB : DOCKYARD
  1602.                         if managers.job:current_level_id() == 'crojob2' then
  1603.                             -- computers
  1604.                             if v:interaction().tweak_data == 'uload_database' and _uldatabase_found == false then
  1605.                                 managers.hud:add_waypoint( 'hudz_uload'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1606.                             end
  1607.                             -- right position of the bomb
  1608.                             if v:interaction().tweak_data == 'hold_pku_disassemble_cro_loot' and _bomb_ok == false then
  1609.                                 _bomb_pos = v:position()
  1610.                                 _bomb_ok = true
  1611.                             end
  1612.                             -- 4 positions of the bomb + right position
  1613.                             if v:interaction().tweak_data == 'hold_pku_disassemble_cro_loot'
  1614.                             and _bomb_ok == true and _bomb_used > 3 and _bomb_used <= 8
  1615.                             then
  1616.                                 managers.hud:remove_waypoint( 'hudz_Robj_'..'bomb' )
  1617.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1618.                             end
  1619.                             if v:interaction().tweak_data == 'hold_open_bomb_case' and (_bomb_used == 4 or _bomb_used == 3) then
  1620.                                 if v:position() == _bomb_pos then
  1621.                                     managers.hud:add_waypoint( 'hudz_Robj_'..'bomb', { icon = 'wp_target', distance = bShowDistance, position = _bomb_pos, no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1622.                                 else
  1623.                                     managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  1624.                                 end
  1625.                             elseif v:interaction().tweak_data == 'hold_open_bomb_case' and _bomb_used > 3 then
  1626.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  1627.                             end
  1628.                         end
  1629.                         -- THE BOMB : FOREST
  1630.                         if managers.job:current_level_id() == 'crojob3' then
  1631.                             -- Cargo door
  1632.                             if v:interaction().tweak_data == 'open_train_cargo_door' then
  1633.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_door', distance = false, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1634.                             end
  1635.                             -- Ladder
  1636.                             if v:interaction().tweak_data == 'pick_lock_easy_no_skill' or v:interaction().tweak_data == 'hold_remove_ladder' then
  1637.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_ladder', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  1638.                             end
  1639.                             -- Chainsaw
  1640.                             if v:interaction().tweak_data == 'take_chainsaw' then
  1641.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_chainsaw', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  1642.                             end
  1643.                             if v:interaction().tweak_data == 'use_chainsaw' then
  1644.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_chainsaw', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1645.                             end
  1646.                         end
  1647.                         -- CAR SHOP
  1648.                         if managers.job:current_level_id() == 'cage' then
  1649.                             --security_station_keyboard
  1650.                             if (v:interaction().tweak_data == 'security_station_keyboard' or v:interaction().tweak_data == 'gage_assignment') and _comp_used == false and isHost() then
  1651.                                 local cage1 = tostring(managers.mission:script("default")._elements[104929]._original_on_executed[1].id)
  1652.                                 local cage1 = tostring(managers.mission:script("default")._elements[104929]._values.on_executed[1].id)
  1653.                                 local cmpts = {
  1654.                                     ["104797"] = Vector3(2465.98, 660.75, -149.996),
  1655.                                     ["104804"] = Vector3(2615.98, 660.75, -149.996),
  1656.                                     ["104811"] = Vector3(2890.98, 660.75, -149.996),
  1657.                                     ["104818"] = Vector3(3040.98, 660.75, -149.996),
  1658.                                     ["104826"] = Vector3(3045.98, 405.75, -149.996),
  1659.                                     ["104833"] = Vector3(2887.98, 407.75, -149.996),
  1660.                                     ["104841"] = Vector3(2615.98, 410.75, -149.996),
  1661.                                     ["104848"] = Vector3(2465.98, 407.75, -149.996),
  1662.                                     ["104857"] = Vector3(1077.98, 255.751, 250.004),
  1663.                                     ["104866"] = Vector3(924.978, 255.75, 250.004),
  1664.                                     ["104873"] = Vector3(617.978, 255.75, 250.004),
  1665.                                     ["104880"] = Vector3(468.978, 255.749, 250.004),
  1666.                                     ["104887"] = Vector3(423.024, 142.249, 250.004),
  1667.                                     ["104899"] = Vector3(590.024, 142.25, 250.004),
  1668.                                     ["104907"] = Vector3(880.024, 142.25, 250.004),
  1669.                                     ["104919"] = Vector3(1049.02, 142.251, 250.004),
  1670.                                     ["104927"] = Vector3(254.75, -1490.98, 249.503)
  1671.                                 }
  1672.                                 managers.hud:add_waypoint( 'hudz_Robj_'..'cage', { icon = 'wp_target', distance = bShowDistance, position = cmpts[cage1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1673.                             end
  1674.                         end
  1675.                         -- HOXTON REVENGE
  1676.                         if managers.job:current_level_id() == 'hox_3' then
  1677.                             if v:interaction().tweak_data == 'gen_pku_evidence_bag' then
  1678.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_evidence', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1679.                             end
  1680.                             if v:interaction().tweak_data == 'mcm_fbi_taperecorder' then
  1681.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_talk', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1682.                             end
  1683.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard_1' then
  1684.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1685.                             end
  1686.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard_2' then
  1687.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1688.                             end
  1689.                             if v:interaction().tweak_data == 'mcm_break_planks' then
  1690.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1691.                             end
  1692.                             if v:interaction().tweak_data == 'open_slash_close_sec_box' or v:interaction().tweak_data == 'hospital_security_cable' then
  1693.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_wirecutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1694.                             end
  1695.                             if v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'rewire_electric_box' or v:interaction().tweak_data == 'use_server_device' then
  1696.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1697.                             end
  1698.                             if v:interaction().tweak_data == 'mcm_laptop' then
  1699.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'laptop_objective', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  1700.                             end
  1701.                             local hox3 = tostring(managers.mission:script("default")._elements[101779]._values.on_executed[1].id)
  1702.                             local phone_poles =
  1703.                             {
  1704.                                 ["101764"] = Vector3(3058.81, -103.151, -4),
  1705.                                 ["101765"] = Vector3(3040.08, 1912.44, 1141),
  1706.                                 ["101766"] = Vector3(-3563.02, 1813.98, -164.391),
  1707.                                 ["101776"] = Vector3(-3041.99, -2321.82, -23.1596),
  1708.                                 ["101780"] = Vector3(-236.471, -2545, 262.968)
  1709.                             }
  1710.                             managers.hud:add_waypoint( 'hudz_Robj_'..'hox3', { icon = 'pd2_phone', distance = bShowDistance, position = phone_poles[hox3], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  1711.                         end
  1712.                         -- MELTDOWN
  1713.                         if managers.job:current_level_id() == 'shoutout_raid' then
  1714.                             if v:interaction().tweak_data == 'driving_drive' then
  1715.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ejection_seat', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1716.                             end
  1717.                             if v:interaction().tweak_data == 'gen_pku_warhead_box' then
  1718.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1719.                             end
  1720.                             if v:interaction().tweak_data == 'gen_pku_warhead' then
  1721.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1722.                             end
  1723.                             if v:interaction().tweak_data == 'gen_pku_crowbar' then
  1724.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_crowbar', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 260, color = Color.green, blend_mode = "add" }  )
  1725.                             end
  1726.                             if v:interaction().tweak_data == 'atm_interaction' then
  1727.                                 -- managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 260, color = Color.green, blend_mode = "add" }  )
  1728.                             end
  1729.                             -- Container waypoint..
  1730.                             if isHost() then
  1731.                                 for _, script in pairs(managers.mission:scripts()) do
  1732.                                     for id, element in pairs(script:elements()) do
  1733.                                         --if id == 132928 then element:on_executed() end
  1734.                                     end
  1735.                                 end
  1736.                             end
  1737.                         end
  1738.                         -- THE ALESSO HEIST
  1739.                         if managers.job:current_level_id() == 'arena' then
  1740.                             -- Security room
  1741.                             if v:interaction().tweak_data == 'hack_suburbia' or v:interaction().tweak_data == 'access_camera' then
  1742.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1743.                             end
  1744.                             -- Doors
  1745.                             if v:interaction().tweak_data == 'pick_lock_hard_no_skill_deactivated' then
  1746.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_door', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1747.                             end
  1748.                             -- Bag shortcuts
  1749.                             if v:interaction().tweak_data == 'push_button' then
  1750.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_ladder', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1751.                             end
  1752.                             -- Forklift
  1753.                             if v:interaction().tweak_data == 'driving_drive' then
  1754.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ejection_seat', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1755.                             end
  1756.                             -- C4
  1757.                             if v:interaction().tweak_data == 'hold_search_c4' then
  1758.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'pd2_c4', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1759.                             end
  1760.                             -- Extinguisher
  1761.                             if v:interaction().tweak_data == 'hold_take_fire_extinguisher' then
  1762.                                 managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'pd2_fire', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1763.                             end
  1764.                             -- Cutter
  1765.                             if v:interaction().tweak_data == 'hold_circle_cutter' then
  1766.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_cutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1767.                             end
  1768.                             -- Useless..
  1769.                             if v:interaction().tweak_data == 'are_turn_on_tv' or v:interaction().tweak_data == 'button_infopad' then
  1770.                                 -- managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1771.                             end
  1772.                             -- Vault.. useless too..
  1773.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard' then
  1774.                                 -- managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1775.                             end
  1776.                         end
  1777.                        
  1778.                         -- GOAT SIMULATOR
  1779.                         if managers.job:current_level_id() == 'peta' then
  1780.                             -- GOAT
  1781.                             if v:interaction().tweak_data == 'hold_grab_goat' then
  1782.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1783.                             end
  1784.                         end
  1785.  
  1786.                         -- BOILING POINT
  1787.                         if managers.job:current_level_id() == 'mad' then
  1788.                             if v:interaction().tweak_data == 'gen_pku_body' then --Body
  1789.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1790.                             end
  1791.                             if v:interaction().tweak_data == 'hold_turn_off_gas' then --Gas canister leaking in to vents
  1792.                                 managers.hud:add_waypoint( 'hudz_coke2_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1793.                             end
  1794.                             if v:interaction().tweak_data == 'hold_pku_briefcase' then --Breifcase
  1795.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_briefcase', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1796.                             end
  1797.                             if v:interaction().tweak_data == 'hold_remove_hand' then --Hand
  1798.                                 managers.hud:add_waypoint( 'hudz_cop_'..k, { icon = 'equipment_hand', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.blue, blend_mode = "add" }  )
  1799.                             end
  1800.                         end
  1801.     ------7---------
  1802.                     elseif _toggleWaypointAIO2 == 7 then
  1803.                         -- Mus The Diamond
  1804.                         if managers.job:current_level_id() == 'mus' then
  1805.                             -- glass / artifact
  1806.                             --if v:interaction().tweak_data == 'cut_glass'
  1807.                             if v:interaction().tweak_data == 'gen_pku_artifact' then
  1808.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_saw', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1809.                             end
  1810.                         end
  1811.                         -- Money
  1812.                         if v:interaction().tweak_data == 'money_wrap_updating' then
  1813.                             managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  1814.                         end
  1815.                         -- money
  1816.                         if v:interaction().tweak_data == 'money_wrap_single_bundle' and bShowSmallLoot then
  1817.                             managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1818.                         elseif v:interaction().tweak_data == 'cash_register' and bShowSmallLoot then
  1819.                             if managers.job:current_level_id() == "jewelry_store" or managers.job:current_level_id() == "ukrainian_job" then
  1820.                                 if v:position() == Vector3(1844, 665, 117.732) then
  1821.                                 else
  1822.                                     managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1823.                                 end
  1824.                             else
  1825.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1826.                             end
  1827.                         elseif v:interaction().tweak_data == 'money_small' then
  1828.                             managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1829.                         elseif v:interaction().tweak_data == 'money_wrap' then
  1830.                             if managers.job:current_level_id() == "arm_for" then
  1831.                                 if v:position().z < -1500 then
  1832.                                     --
  1833.                                 else
  1834.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1835.                                 end
  1836.                             elseif managers.job:current_level_id() == "welcome_to_the_jungle_1" then
  1837.                                 if v:position() == Vector3(9200, -4300, 100) then
  1838.                                 else
  1839.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1840.                                 end
  1841.                             elseif managers.job:current_level_id() == "family" then
  1842.                                 if v:position() == Vector3(1400, 200, 1100) then
  1843.                                 else
  1844.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1845.                                 end
  1846.                             elseif managers.job:current_level_id() == "mia_1" then
  1847.                                 if v:position() == Vector3(5400, 1400, -300) then
  1848.                                 else
  1849.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1850.                                 end
  1851.                             else
  1852.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1853.                             end
  1854.                         -- gold
  1855.                         elseif v:interaction().tweak_data == 'gold_pile' then
  1856.                             if managers.job:current_level_id() == "welcome_to_the_jungle_1" then
  1857.                                 if v:position() == Vector3(9200, -4400, 100) then
  1858.                                 else
  1859.                                     managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_gold', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  1860.                                 end
  1861.                             else
  1862.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_gold', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  1863.                             end
  1864.                         -- diamonds/jewels
  1865.                         elseif v:interaction().tweak_data == 'diamond_pickup' and bShowSmallLoot then
  1866.                             if managers.job:current_level_id() == "ukrainian_job" and v:position().z > 0 then
  1867.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_diamond', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1868.                             else
  1869.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_diamond', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1870.                             end
  1871.                         elseif v:interaction().tweak_data == 'gen_pku_jewelry' then
  1872.                             if managers.job:current_level_id() == "ukrainian_job" and v:position().z > 0 then
  1873.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1874.                             else
  1875.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1876.                             end
  1877.                         -- ATMS
  1878.                         elseif v:interaction().tweak_data == 'requires_ecm_jammer_atm' then
  1879.                             managers.hud:add_waypoint( 'hudz_atm_'..k, { icon = 'equipment_ecm_jammer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.blue, blend_mode = "add" }  )
  1880.                         -- safe loot
  1881.                         elseif v:interaction().tweak_data == 'safe_loot_pickup' and bShowSmallLoot then
  1882.                             if managers.job:current_level_id() == "family" then
  1883.                                 if v:position().z > 1000 then   -- Vector3(1400, 100, 1100)
  1884.                                     --
  1885.                                 else
  1886.                                     managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1887.                                 end
  1888.                             else
  1889.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1890.                             end
  1891.                         end
  1892.                         -- train heist ammo
  1893.                         if v:interaction().tweak_data == 'take_ammo' and managers.job:current_level_id() == "arm_for" then
  1894.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_sentry', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1895.                         end
  1896.     ------8---------
  1897.                     elseif _toggleWaypointAIO2 == 8 then   
  1898.                         if v:interaction().tweak_data == 'gage_assignment' and bShowGagePackages then
  1899.                             if managers.job:current_level_id() == 'hox_2' and v:interaction():interact_position() == Vector3(-200, -200, 4102.5) then
  1900.                             else
  1901.                                  --[[Yellow]]
  1902.                                 if tostring(v:name()) == "Idstring(@IDe8088e3bdae0ab9e@)" then
  1903.                                     managers.hud:add_waypoint( 'hudz_pkgY_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.yellow, blend_mode = "add" }  )
  1904.                                  --[[Blue]]
  1905.                                 elseif tostring(v:name()) == "Idstring(@ID05956ff396f3c58e@)" then
  1906.                                     managers.hud:add_waypoint( 'hudz_pkgB_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.blue, blend_mode = "add" }  )
  1907.                                  --[[Purple]]
  1908.                                 elseif tostring(v:name()) == "Idstring(@IDc90378ad89058c7d@)" then
  1909.                                     managers.hud:add_waypoint( 'hudz_pkgP_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.purple, blend_mode = "add" }  )
  1910.                                 --[[Red]]
  1911.                                 elseif tostring(v:name()) == "Idstring(@ID96504ebd40f8cf98@)" then
  1912.                                     managers.hud:add_waypoint( 'hudz_pkgR_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.red, blend_mode = "add" }  )
  1913.                                  --[[Green]]
  1914.                                 elseif tostring(v:name()) == "Idstring(@IDb3cc2abe1734636c@)" then
  1915.                                     managers.hud:add_waypoint( 'hudz_pkgG_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.green, blend_mode = "add" }  )
  1916.                                 else
  1917.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 320, color = Color.white, blend_mode = "add" }  )
  1918.                                 end
  1919.                             end
  1920.                         end
  1921.                         -- Keycard
  1922.                         if v:interaction().tweak_data == 'pickup_keycard' then
  1923.                             if managers.job:current_level_id() == 'roberts' and v:position() == Vector3(250, 6750, -64.2354) then
  1924.                             elseif managers.job:current_level_id() == 'big' and v:position() == Vector3(3000, -3500, 949.99) then
  1925.                             elseif managers.job:current_level_id() == 'firestarter_2' and v:position() == Vector3(-1800, -3600, 400) then
  1926.                             else
  1927.                                 managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  1928.                             end
  1929.                         end
  1930.                         -- CIV with keycard
  1931.                         for u_key,u_data in pairs(managers.enemy:all_civilians()) do
  1932.                             local player_pos = Vector3(0,0,0)  -- managers.player:player_unit():camera():position()
  1933.                             local unit_pos = u_data.unit:movement():m_head_pos()
  1934.                             local vec = unit_pos - player_pos
  1935.                             if isHost() and (u_data.unit.contour and alive(u_data.unit)) and u_data.unit:character_damage():pickup() then
  1936.                                 local max_angle = 360
  1937.                                 local ray = World:raycast("ray", player_pos, unit_pos, "slot_mask", managers.slot:get_mask( "AI_visibility" ), "ray_type", "ai_vision", "ignore_unit", { u_data.unit } )
  1938.                                 if (ray and ray.unit) then
  1939.                                     local cHealth = u_data.unit:character_damage() and u_data.unit:character_damage()._health
  1940.                                     if cHealth then
  1941.                                         local full = u_data.unit:character_damage()._HEALTH_INIT
  1942.                                         local supp = u_data.unit:character_damage()._suppression_data
  1943.                                         if full and (cHealth > 0) then
  1944.                                             -- ALIVE
  1945.                                             managers.hud:add_waypoint( 'hudz_civ_'..tostring(unit_pos), { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = unit_pos, no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1946.                                         else
  1947.                                             -- DEAD
  1948.                                         end
  1949.                                     end
  1950.                                 end
  1951.                             end
  1952.                         end  
  1953.                         -- COP with keycard
  1954.                         for u_key, u_data in pairs(managers.enemy:all_enemies()) do
  1955.                             local player_pos = Vector3(0,0,0) -- managers.player:player_unit():camera():position()
  1956.                             local unit_pos = u_data.unit:movement():m_head_pos()
  1957.                             local vec = unit_pos - player_pos
  1958.                             if isHost() and u_data.unit.contour and alive(u_data.unit) and u_data.unit:character_damage():pickup() and u_data.unit:character_damage():pickup() ~= "ammo" then
  1959.                                 local max_angle = 360
  1960.                                 local ray = World:raycast("ray", player_pos, unit_pos, "slot_mask", managers.slot:get_mask( "AI_visibility" ), "ray_type", "ai_vision", "ignore_unit", { u_data.unit } )
  1961.                                 if (ray and ray.unit) then
  1962.                                     local cHealth = u_data.unit:character_damage() and u_data.unit:character_damage()._health
  1963.                                     if cHealth then
  1964.                                         local full = u_data.unit:character_damage()._HEALTH_INIT
  1965.                                         local supp = u_data.unit:character_damage()._suppression_data
  1966.                                         if full and (cHealth > 0) then
  1967.                                             -- ALIVE
  1968.                                             managers.hud:add_waypoint( 'hudz_cop_'..tostring(unit_pos), { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = unit_pos, no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.purple, blend_mode = "add" }  )
  1969.                                         else
  1970.                                             -- DEAD
  1971.                                         end
  1972.                                     end
  1973.                                 end
  1974.                             end
  1975.                         end
  1976.                         -- big bank keys
  1977.                         if (v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'take_keys') and managers.job:current_level_id() == 'big' then
  1978.                             managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_chavez_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  1979.                         -- security door
  1980.                         elseif (v:interaction().tweak_data == 'key' or v:interaction().tweak_data == 'key_double' or v:interaction().tweak_data == 'hold_close_keycard') and managers.job:current_level_id() ~= "arm_for" then
  1981.                             if bShowSecuDoors then
  1982.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  1983.                             end
  1984.                         --DIAMOND STORE KEYPAD
  1985.                         elseif managers.job:current_level_id() == "family" and v:interaction().tweak_data == 'numpad_keycard' then
  1986.                             managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  1987.                         end
  1988.                         -- weapons
  1989.                         if v:interaction().tweak_data == 'weapon_case' or v:interaction().tweak_data == 'take_weapons' then
  1990.                             managers.hud:add_waypoint( 'hudz_wpn_'..k, { icon = 'ak', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.purple, blend_mode = "add" }  )
  1991.                         -- coke
  1992.                         elseif v:interaction().tweak_data == 'gen_pku_cocaine' then
  1993.                             managers.hud:add_waypoint( 'hudz_coke_'..k, { icon = 'wp_vial', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  1994.                         end
  1995.                         -- planks
  1996.                         if v:interaction().tweak_data == 'stash_planks_pickup' and bShowPlanks then
  1997.                             managers.hud:add_waypoint( 'hudz_plk_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  1998.                         elseif v:interaction().tweak_data == 'pickup_boards' and bShowPlanks then
  1999.                             managers.hud:add_waypoint( 'hudz_plk_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2000.                         end
  2001.                         -- crowbar
  2002.                         if v:interaction().tweak_data == 'gen_pku_crowbar' then
  2003.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_crowbar', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2004.                         -- shadow raid crates location
  2005.                         elseif v:interaction().tweak_data == 'crate_loot_crowbar' and bShowCrates then
  2006.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2007.                         -- election day 2 crates location
  2008.                         elseif v:interaction().tweak_data == 'crate_loot' and bShowCrates then
  2009.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2010.                         end
  2011.                         if managers.job:current_level_id() == 'framing_frame_1' or managers.job:current_level_id() == 'gallery' then
  2012.                             -- framing frame day 1 paintings
  2013.                             if v:interaction().tweak_data == 'hold_take_painting' and managers.job:current_level_id() ~= "kosugi" then
  2014.                                 managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'equipment_ticket', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2015.                             end
  2016.                         end
  2017.                         -- framing frame day 3 computer location
  2018.                         if v:interaction().tweak_data == 'use_computer' then
  2019.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'laptop_objective', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2020.                         -- framing frame day 3 phone location
  2021.                         elseif v:interaction().tweak_data == 'pickup_phone' then
  2022.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_phone', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2023.                         -- framing frame day 3 tablet location
  2024.                         elseif v:interaction().tweak_data == 'pickup_tablet' then
  2025.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_hack_ipad', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2026.                         -- framing frame day 3 servers location
  2027.                         elseif (v:interaction().tweak_data == 'hold_take_server' or v:interaction().tweak_data == 'stash_server_pickup') and managers.job:current_level_id() == "framing_frame_3" then
  2028.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2029.                         end
  2030.                         -- Framing Frame day 3 server
  2031.                         if managers.job:current_level_id() == 'framing_frame_3' then
  2032.                             if isHost() then
  2033.                                 local servers =
  2034.                                 {
  2035.                                     ["105507"] = "Server Room 1",
  2036.                                     ["105508"] = "Server Room 2",
  2037.                                     ["100650"] = "Server Room 3"
  2038.                                 }
  2039.                                 local keyboard =
  2040.                                 {
  2041.                                     ["105507"] = "58cb6c4c6221c415",
  2042.                                     ["105508"] = "58cb6c4c6221c415",
  2043.                                     ["100650"] = "58cb6c4c6221c415"
  2044.                                 }
  2045.                                 local server_vectors =
  2046.                                 {
  2047.                                     ["105507"] = Vector3(-3937.26, 5644.73, 3474.5), -- Office
  2048.                                     ["105508"] = Vector3(-3169.57, 4563.03, 3074.5), -- Hallway
  2049.                                     ["100650"] = Vector3(-4920, 3737, 3074.5)    -- Living Room
  2050.                                 }
  2051.                                 local svectors = tostring(managers.mission:script("default")._elements[105506]._values.on_executed[1].id)
  2052.                                 -- WAYPOINT SERVER
  2053.                                 if _FF3_used == false then
  2054.                                     managers.hud:add_waypoint( 'hudz_base_'..svectors, { icon = 'interaction_keyboard', distance = bShowDistance, position = server_vectors[svectors], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2055.                                 end                    
  2056.                             elseif isClient() then
  2057.                             end
  2058.                         end
  2059.                         -- rats day 1
  2060.                         if v:interaction().tweak_data == 'caustic_soda' then
  2061.                             managers.hud:add_waypoint( 'hudz_coke1_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2062.                         elseif v:interaction().tweak_data == 'hydrogen_chloride' then
  2063.                             managers.hud:add_waypoint( 'hudz_coke2_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2064.                         elseif v:interaction().tweak_data == 'muriatic_acid' then
  2065.                             managers.hud:add_waypoint( 'hudz_coke3_'..k, { icon = 'pd2_methlab', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  2066.                         end
  2067.                         -- rats day 2
  2068.                         if managers.job:current_level_id() == 'alex_2' then
  2069.                             if isHost() then
  2070.                                 local values =
  2071.                                 {
  2072.                                     ["103805"] = "Intel Revealer: Safe_01",
  2073.                                     ["103806"] = "Intel Revealer: Safe_02",
  2074.                                     ["103807"] = "Intel Revealer: Safe_03",    
  2075.                                     ["103808"] = "Intel Revealer: Safe_04",
  2076.                                     ["103809"] = "Intel Revealer: Safe_05",
  2077.                                     ["103810"] = "Intel Revealer: Safe_06",
  2078.                                     ["103811"] = "Intel Revealer: Safe_07",
  2079.                                     ["103812"] = "Intel Revealer: Safe_08",
  2080.                                     ["103813"] = "Intel Revealer: Safe_09",
  2081.                                     ["103814"] = "Intel Revealer: Safe_10",
  2082.                                     ["103815"] = "Intel Revealer: Safe_11",
  2083.                                     ["103816"] = "Intel Revealer: Safe_12",
  2084.                                     ["103817"] = "Intel Revealer: Safe_13",
  2085.                                     ["103818"] = "Intel Revealer: Safe_14",
  2086.                                     ["103819"] = "Intel Revealer: Safe_15",
  2087.                                     ["103820"] = "Intel Revealer: Safe_16"
  2088.                                 }
  2089.                                 local bo_safes = {
  2090.                                     ["103805"] = Vector3(791, 1426, 50),
  2091.                                     ["103806"] = Vector3(326, 1673, 50),
  2092.                                     ["103807"] = Vector3(365, 2022, 103.2),
  2093.                                     ["103808"] = Vector3(560, 2175, 127.603),
  2094.                                     ["103809"] = Vector3(2220, 1273, 82.103),
  2095.                                     ["103810"] = Vector3(2079, 1013, 117.503),
  2096.                                     ["103811"] = Vector3(2502, 1015, 50),
  2097.                                     ["103812"] = Vector3(2332, 1100, 50),
  2098.                                     ["103813"] = Vector3(3162, 2742, 82.1028),
  2099.                                     ["103814"] = Vector3(2704, 2342, 114.325),
  2100.                                     ["103815"] = Vector3(3400,2662,117.285),
  2101.                                     ["103816"] = Vector3(2440, 2747, 50),
  2102.                                     ["103817"] = Vector3(2474, 3414, 250),
  2103.                                     ["103818"] = Vector3(3181, 3696, 250),
  2104.                                     ["103819"] = Vector3(2625, 4003, 250),
  2105.                                     ["103820"] = Vector3(2755, 3901, 250)
  2106.                                 }
  2107.                                 local bo_intel = tostring(managers.mission:script("default")._elements[103759]._values.on_executed[1].id)
  2108.                                 if _intel_used == false then
  2109.                                     managers.hud:add_waypoint( 'hudz_base_'..bo_intel, { icon = 'interaction_patientfile', distance = bShowDistance, position = bo_safes[bo_intel], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2110.                                 end
  2111.                             elseif isClient() then
  2112.                                 --managers.chat:_receive_message(1, "*WARNING*", "Intel Revealer is unavailable for you. Host ONLY.",  Color.red)
  2113.                                 -- 2 safes
  2114.                                 if (v:interaction().tweak_data == 'drill' or v:interaction().tweak_data == 'take_confidential_folder') then
  2115.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_patientfile', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2116.                                 end
  2117.                             end
  2118.                         end
  2119.                         -- Ukrainian Job Power
  2120.                         if v:interaction().tweak_data == 'circuit_breaker' then
  2121.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2122.                         end
  2123.                         -- Ukrainian Job Tiara location
  2124.                         if managers.job:current_level_id() == "ukrainian_job" and _tiara_used == false then
  2125.                             if isHost() or isClient() then
  2126.                                 local unit_list = World:find_units_quick( "all" )
  2127.                                 for _,unit in ipairs( unit_list ) do
  2128.                                     if unit:base() and tostring(unit:name()) == "Idstring(@ID077636ce1f33c8d0@)" --[[TIARA]] then
  2129.                                         managers.hud:add_waypoint( 'hudz_Robj_'.._, { icon = 'pd2_loot', distance = bShowDistance, position = unit:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2130.                                     end
  2131.                                 end
  2132.                             end
  2133.                         end
  2134.                         -- election day 1, computer location
  2135.                         if managers.job:current_level_id() == 'election_day_1' and v:interaction().tweak_data == 'uload_database' then
  2136.                             managers.hud:add_waypoint( 'hudz_uload'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2137.                         end
  2138.                         -- Election Day 1 Truck
  2139.                         if managers.job:current_level_id() == 'election_day_1' then
  2140.                             if isHost() then
  2141.                                 local trucks =
  2142.                                 {
  2143.                                     ["100636"] = "1",
  2144.                                     ["100633"] = "2",
  2145.                                     ["100637"] = "3",
  2146.                                     ["100634"] = "4",
  2147.                                     ["100639"] = "5",
  2148.                                     ["100635"] = "6"
  2149.                                 }
  2150.                                 local truckid =
  2151.                                 {
  2152.                                     ["100633"] = "3b0947a2434bdc93",
  2153.                                     ["100634"] = "3b0947a2434bdc93",
  2154.                                     ["100635"] = "3b0947a2434bdc93",
  2155.                                     ["100636"] = "3b0947a2434bdc93",
  2156.                                     ["100637"] = "3b0947a2434bdc93",
  2157.                                     ["100639"] = "3b0947a2434bdc93"
  2158.                                 }
  2159.                                 local truck_vectors =
  2160.                                 {
  2161.                                     ["100636"] = Vector3(150, -3900, 0), -- 1st
  2162.                                     ["100633"] = Vector3(878.392, -3360.24, 0), --2nd
  2163.                                     ["100637"] = Vector3(149.999, -2775, 0), --3rd
  2164.                                     ["100634"] = Vector3(828.07, -2222.45, 0), --4th
  2165.                                     ["100639"] = Vector3(149.998, -1625, 0), --5th
  2166.                                     ["100635"] = Vector3(848.961, -1084.9, 0) --6th
  2167.                                 }
  2168.                                 local truckv = tostring(managers.mission:script("default")._elements[100631]._values.on_executed[1].id)
  2169.                                 -- WAYPOINT SERVER
  2170.                                 if _gps_used == false then
  2171.                                     managers.hud:add_waypoint( 'hudz_Robj_'..truckv, { icon = 'wp_target', distance = bShowDistance, position = truck_vectors[truckv], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2172.                                 end                    
  2173.                             else
  2174.                             end
  2175.                         end
  2176.                         -- election day 2, machines
  2177.                         if v:interaction().tweak_data == 'votingmachine2' then
  2178.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2179.                         end
  2180.                         -- election day 3, keyboard
  2181.                         if managers.job:current_level_id() == 'election_day_3_skip1' and v:interaction().tweak_data == 'security_station_keyboard' then
  2182.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2183.                         end
  2184.                         -- firestarter day 2 security boxes location
  2185.                         if v:interaction().tweak_data == 'open_slash_close_sec_box' and managers.groupai:state():whisper_mode() and managers.job:current_level_id() == 'firestarter_2' then
  2186.                             if isHost() then
  2187.                                 bo_boxes = {
  2188.                                     ["105819"] = Vector3(-2710, -2830, 552),    -- Box 001
  2189.                                     ["105794"] = Vector3(-1840, -3195, 552),    -- Box 002
  2190.                                     ["105810"] = Vector3(-1540, -2195, 552),    -- Box 003
  2191.                                     ["105824"] = Vector3(-1005, -3365, 552),    -- Box 004
  2192.                                     ["105837"] = Vector3(-635, -1705, 552), -- Box 005
  2193.                                     ["105851"] = Vector3(-1095, -210, 152), -- Box 006
  2194.                                     ["106183"] = Vector3(-1230, 1510, 152), -- Box 007
  2195.                                     ["106529"] = Vector3(-1415, -795, 152), -- Box 008
  2196.                                     ["106543"] = Vector3(-1160, 395, 152),  -- Box 009
  2197.                                     ["106556"] = Vector3(-5, 735, 152), -- Box 010
  2198.                                     ["106581"] = Vector3(1360, 5, 552), -- Box 011
  2199.                                     ["106594"] = Vector3(795, -898, 552),   -- Box 012
  2200.                                     ["106607"] = Vector3(795, -3240, 552),  -- Box 013
  2201.                                     ["106620"] = Vector3(1060, -2195, 552), -- Box 014
  2202.                                     ["106633"] = Vector3(204, 540, 578),    -- Box 015
  2203.                                     ["106646"] = Vector3(-1085, -1205, 552),    -- Box 016
  2204.                                     ["106659"] = Vector3(-2135, 395, 552),  -- Box 017
  2205.                                     ["106672"] = Vector3(-2405, -840, 552), -- Box 018
  2206.                                     ["106685"] = Vector3(-2005, -1640, 552),    -- Box 019
  2207.                                     ["106698"] = Vector3(-2715, -1595, 552),    -- Box 020
  2208.                                                     ["106711"] = Vector3(-500, -650, 1300), -- Box 021
  2209.                                                     ["106724"] = Vector3(-400, -650, 1300), -- Box 022
  2210.                                                     ["106737"] = Vector3(-300, -650, 1300), -- Box 023      UNAVAILABLE
  2211.                                                     ["106750"] = Vector3(-200, -650, 1300), -- Box 024
  2212.                                                     ["106763"] = Vector3(-100, -650, 1300), -- Box 025
  2213.                                     ["106776"] = Vector3(-635, -1205, 152), -- Box 026
  2214.                                     ["106789"] = Vector3(-1040, -95, 552),  -- Box 027
  2215.                                     ["106802"] = Vector3(615, 395, 152),    -- Box 028
  2216.                                     ["106815"] = Vector3(1890, -1805, 152), -- Box 029
  2217.                                     ["106828"] = Vector3(215, -1805, 152)   -- Box 030
  2218.                                 }
  2219.                                 SecBox1 = tostring(managers.mission:script("default")._elements[106836]._values.on_executed[1].id)
  2220.                                 SecBox2 = tostring(managers.mission:script("default")._elements[106836]._values.on_executed[2].id)
  2221.                                 if _box1_used == false then
  2222.                                     managers.hud:add_waypoint( 'hudz_Robj_'..SecBox1, { icon = 'interaction_wirecutter', distance = bShowDistance, position = bo_boxes[SecBox1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2223.                                 end
  2224.                                 if _box2_used == false then
  2225.                                     managers.hud:add_waypoint( 'hudz_Robj_'..SecBox2, { icon = 'interaction_wirecutter', distance = bShowDistance, position = bo_boxes[SecBox2], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2226.                                 end
  2227.                             elseif isClient() then
  2228.                                 nb = nb + 1
  2229.                                 if clientBox[nb] ~= 0 then
  2230.                                     clientBox[nb] = v:position()
  2231.                                     -- managers.chat:_receive_message(1, "Box_Client"..nb, tostring(clientBox[nb]),  Color.green)
  2232.                                     managers.hud:add_waypoint( 'hudz_box_'..k, { icon = 'interaction_wirecutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  2233.                                 end
  2234.                             end
  2235.                         end
  2236.                         if nb == 5 then nb = 0 end
  2237.                         -- Big Oil day 1 intel
  2238.                         if v:interaction().tweak_data == 'hold_take_blueprints' then
  2239.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2240.                         elseif v:interaction().tweak_data == 'take_confidential_folder' then
  2241.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2242.                         elseif v:interaction().tweak_data == 'pickup_asset' then
  2243.                             managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_chavez_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  2244.                         end
  2245.                         -- Big Oil day 1 Safe
  2246.                         if managers.job:current_level_id() == "welcome_to_the_jungle_1" and v:interaction().tweak_data == 'drill' then
  2247.                             managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_drill', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2248.                         end
  2249.                         -- Big Oil day 2 engine + server
  2250.                         if managers.job:current_level_id() == 'welcome_to_the_jungle_2' then
  2251.                             if isHost() then
  2252.                                 values =
  2253.                                 {
  2254.                                     ["103703"] = "engine_01",
  2255.                                     ["103704"] = "engine_02",
  2256.                                     ["103705"] = "engine_03",
  2257.                                     ["103706"] = "engine_04",
  2258.                                     ["103707"] = "engine_05",
  2259.                                     ["103708"] = "engine_06",
  2260.                                     ["103709"] = "engine_07",
  2261.                                     ["103711"] = "engine_08",
  2262.                                     ["103714"] = "engine_09",
  2263.                                     ["103715"] = "engine_10",
  2264.                                     ["103716"] = "engine_11",
  2265.                                     ["103717"] = "engine_12"
  2266.                                 }
  2267.                                 engine_pos =
  2268.                                 {
  2269.                                     ['103703'] = Vector3(-1830,-2182,-313.49200439453),             -- 1
  2270.                                     ['103704'] = Vector3(-1200,-2050,-313.49200439453),             -- 2
  2271.                                     ['103705'] = Vector3(-1849,-1869,-313.49200439453),             -- 3
  2272.                                     ['103706'] = Vector3(-1200,-1735,-313.49200439453),             -- 4
  2273.                                     ['103707'] = Vector3(-1849,-1429,-313.49200439453),             -- 5
  2274.                                     ['103708'] = Vector3(-1200,-1415,-313.49200439453),             -- 6
  2275.  
  2276.                                     ['103709'] = Vector3(-175,-2025,-313.49200439453),              -- 7
  2277.                                     ['103711'] = Vector3(-24.999900817871,-1350,-313.49200439453),  -- 8
  2278.                                     ['103714'] = Vector3(-175,-1675,-313.49200439453),              -- 9
  2279.                                     ['103715'] = Vector3(35,-1733,-314),                            -- 10
  2280.                                     ['103716'] = Vector3(-175,-1350,-313.49200439453),              -- 11
  2281.                                     ['103717'] = Vector3(25,-2050,-313.49200439453)                 -- 12
  2282.                                 }
  2283.                                 local srooms =
  2284.                                 {
  2285.                                     ["101865"] = "Server Room Revealer: 1st floor, Back of the property",
  2286.                                     ["101866"] = "Server Room Revealer: 1st floor, Front of the property",
  2287.                                     ["101915"] = "Server Room Revealer: Ground floor"
  2288.                                 }
  2289.                                 local keyboard_id =
  2290.                                 {
  2291.                                     ["101865"] = "8efe34cd3f706348",
  2292.                                     ["101866"] = "8efe34cd3f706348",
  2293.                                     ["101915"] = "8efe34cd3f706348"
  2294.                                 }
  2295.                                 local bo_servers =
  2296.                                 {
  2297.                                     ["101865"] = Vector3(-662, -2142, 475), -- Room 1
  2298.                                     ["101866"] = Vector3(-2129, 391, 475), -- Room 2
  2299.                                     ["101915"] = Vector3(-384, -96, 75) -- Room 3
  2300.                                 }
  2301.                                 local bo_keyboard = tostring(managers.mission:script("default")._elements[101916]._values.on_executed[1].id)           
  2302.                                 correct_id = tostring(managers.mission:script('default')._elements[103718]._values.on_executed[1].id)
  2303.                                 if lp == false then
  2304.                                     -- CHAT
  2305.                                     if _keyboard_used == false then
  2306.                                         managers.chat:_receive_message(1, "Server Room", srooms[tostring(managers.mission:script("default")._elements[101916]._values.on_executed[1].id)],  tweak_data.system_chat_color)
  2307.                                     end
  2308.                                     if _engine_used == false then
  2309.                                         managers.chat:_receive_message(1, "Big Oil", values[tostring(managers.mission:script("default")._elements[103718]._values.on_executed[1].id)],  tweak_data.system_chat_color)
  2310.                                     end
  2311.                                     lp = true
  2312.                                 end
  2313.                                 -- WAYPOINT SERVER
  2314.                                 if _keyboard_used == false then
  2315.                                     managers.hud:add_waypoint( 'hudz_base_'..bo_keyboard, { icon = 'interaction_keyboard', distance = bShowDistance, position = bo_servers[bo_keyboard], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2316.                                 end
  2317.                                 -- WAYPOINT ENGINE
  2318.                                 if _engine_used == false then
  2319.                                     managers.hud:add_waypoint( 'hudz_Robj_'..correct_id, { icon = 'pd2_loot', distance = bShowDistance, position = engine_pos[correct_id], no_sync = true, present_timer = 0, state = 'present', radius = 800, color = Color.green, blend_mode = 'add' }  )
  2320.                                 end
  2321.                                 if v:interaction().tweak_data == 'carry_drop' and _checking_bags then
  2322.                                     if v:carry_data():carry_id() == values[correct_id] then
  2323.                                         managers.hud:add_waypoint( 'hudz_Robj_'..correct_id..'b', { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2324.                                     end
  2325.                                 end
  2326.                             end
  2327.                         end
  2328.                         -- shadow raid server
  2329.                         if (v:interaction().tweak_data == 'hold_take_server' or v:interaction().tweak_data == 'stash_server_pickup') and managers.job:current_level_id() == "kosugi" then
  2330.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2331.                         -- shadow raid paintings
  2332.                         elseif v:interaction().tweak_data == 'hold_take_painting' and managers.job:current_level_id() == "kosugi" then
  2333.                             managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2334.                         -- shadow raid statue inside crate
  2335.                         elseif v:interaction().tweak_data == 'gen_pku_artifact_statue' or v:interaction().tweak_data == 'samurai_armor' then
  2336.                             managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_scrubs', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2337.                         -- shadow raid sewer manhole
  2338.                         elseif v:interaction().tweak_data == 'sewer_manhole' and managers.job:current_level_id() == "kosugi" and bShowSewerManHole then
  2339.                             managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'interaction_open_door', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2340.                         -- shadow raid sewer thermite
  2341.                         elseif v:interaction().tweak_data == 'apply_thermite_paste' and managers.job:current_level_id() == "kosugi" and bShowThermite then
  2342.                             managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'equipment_thermite', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2343.                         end
  2344.                         -- intel train heist
  2345.                         if (managers.job:current_level_id() == 'arm_hcm'
  2346.                             or managers.job:current_level_id() == 'arm_cro'
  2347.                             or managers.job:current_level_id() == 'arm_fac'
  2348.                             or managers.job:current_level_id() == 'arm_par'
  2349.                             or managers.job:current_level_id() == 'arm_und')
  2350.                         and v:interaction().tweak_data == 'take_confidential_folder_event' then
  2351.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_patientfile', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2352.                         end
  2353.                         -- train heist turret
  2354.                         if v:interaction().tweak_data == 'disassemble_turret' and managers.job:current_level_id() == "arm_for" then
  2355.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_sentry', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2356.                         end
  2357.                         if managers.job:current_level_id() == "arm_for" then
  2358.                             if isHost() then
  2359.                                 local vault1 = tostring(managers.mission:script("default")._elements[104736]._values.on_executed[1].id)
  2360.                                 local vault2 = tostring(managers.mission:script("default")._elements[104737]._values.on_executed[1].id)
  2361.                                 local vault3 = tostring(managers.mission:script("default")._elements[104738]._values.on_executed[1].id)
  2362.                                 if _drill1_used == false then
  2363.                                     if vault1 == '104731' then
  2364.                                         managers.hud:add_waypoint( 'hudz_base_'..vault1, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-2710, -1152, 666), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2365.                                     elseif vault1 == '104729' then
  2366.                                         managers.hud:add_waypoint( 'hudz_base_'..vault1, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-1707, -1157, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2367.                                     end
  2368.                                 end
  2369.                                 if _drill2_used == false then
  2370.                                     if vault2 == '104732' then
  2371.                                         managers.hud:add_waypoint( 'hudz_base_'..vault2, { icon = 'wp_target', distance = bShowDistance, position = Vector3(-192, -1152, 668), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2372.                                     elseif vault2 == '104733' then
  2373.                                         managers.hud:add_waypoint( 'hudz_base_'..vault2, { icon = 'wp_target', distance = bShowDistance, position = Vector3(794, -1161, 668), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2374.                                     end
  2375.                                 end
  2376.                                 if _drill3_used == false then
  2377.                                     if vault3 == '104734' then
  2378.                                         managers.hud:add_waypoint( 'hudz_base_'..vault3, { icon = 'wp_target', distance = bShowDistance, position = Vector3(2291, -1155, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2379.                                     elseif vault3 == '104735' then
  2380.                                         managers.hud:add_waypoint( 'hudz_base_'..vault3, { icon = 'wp_target', distance = bShowDistance, position = Vector3(3308, -1151, 667), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2381.                                     end
  2382.                                 end
  2383.                             end
  2384.                         end
  2385.                         -- big bank server
  2386.                         if managers.job:current_level_id() == 'big' and v:interaction().tweak_data == 'big_computer_server' then
  2387.                             if _bbserv_used == false then
  2388.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2389.                             end
  2390.                         end
  2391.                         -- big bank keyboards location
  2392.                         if v:interaction().tweak_data == 'big_computer_hackable' then
  2393.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  2394.                         end
  2395.                         -- Hotline miami day 1
  2396.                         if managers.job:current_level_id() == 'mia_1' then
  2397.                             if v:interaction().tweak_data == 'hold_take_gas_can' then
  2398.                                 managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'equipment_thermite', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2399.                             end
  2400.                             if v:interaction().tweak_data == 'hlm_roll_carpet' then
  2401.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2402.                             end
  2403.                         end
  2404.                         -- Hotline miami day 2
  2405.                         if managers.job:current_level_id() == 'mia_2' then
  2406.                             if v:interaction().tweak_data == 'disarm_bomb' then
  2407.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2408.                             end
  2409.                             if v:interaction().tweak_data == 'hold_hlm_open_circuitbreaker' or v:interaction().tweak_data == 'hold_remove_cover' or v:interaction().tweak_data == 'hold_cut_cable' then
  2410.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2411.                             end
  2412.                             if v:interaction().tweak_data == 'c4_mission_door' then
  2413.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_c4', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2414.                             end
  2415.                         end
  2416.                         -- Hox day 1
  2417.                         if managers.job:current_level_id() == 'hox_1' then
  2418.                             if v:interaction().tweak_data == 'security_station_keyboard' then
  2419.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2420.                             end
  2421.                         end
  2422.                         -- Hox day 2
  2423.                         if managers.job:current_level_id() == 'hox_2' then
  2424.                             if v:interaction().tweak_data == 'firstaid_box'
  2425.                             or v:interaction().tweak_data == 'invisible_interaction_open'
  2426.                             --or v:interaction().tweak_data == 'invisible_interaction_close'
  2427.                             then
  2428.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_doctor_bag', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2429.                             end
  2430.                             if v:interaction().tweak_data == 'grenade_crate' or v:interaction().tweak_data == 'ammo_bag' then
  2431.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ammo_bag', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2432.                             end
  2433.                             if v:interaction().tweak_data == 'hold_download_keys' then
  2434.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2435.                             end
  2436.                             if v:interaction().tweak_data == 'invisible_interaction_gathering' then
  2437.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_evidence', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2438.                             end
  2439.                             -- Files
  2440.                             if v:interaction().tweak_data == 'search_files_false' then
  2441.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'equipment_files', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2442.                             end
  2443.                             -- Correct file
  2444.                             if v:interaction().tweak_data == 'invisible_interaction_searching' then
  2445.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_files', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2446.                             end
  2447.                             if v:interaction().tweak_data == 'grab_server' then
  2448.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_stash_server', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2449.                             end
  2450.                         end
  2451.                         -- White Xmas
  2452.                         if managers.job:current_level_id() == 'pines' then
  2453.                             -- xmas presents
  2454.                             if v:interaction().tweak_data == 'hold_open_xmas_present' then
  2455.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_christmas_present', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2456.                             end
  2457.                             -- coke
  2458.                             if v:interaction().tweak_data == 'gen_pku_cocaine_pure' then
  2459.                                 managers.hud:add_waypoint( 'hudz_coke_'..k, { icon = 'wp_vial', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" } )
  2460.                             end
  2461.                             -- Almir's Toast
  2462.                             if v:interaction().tweak_data == 'gen_pku_sandwich' then
  2463.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" } )
  2464.                             end
  2465.                         end
  2466.                         -- The Diamond
  2467.                         if managers.job:current_level_id() == 'mus' then
  2468.                             -- electric box
  2469.                             if (v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'rewire_electric_box') and v:interaction():interact_position() ~= Vector3(6150, 549, -500) then
  2470.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powersupply', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  2471.                             end
  2472.                             -- glass / artifact
  2473.                             --if v:interaction().tweak_data == 'cut_glass'
  2474.                             if v:interaction().tweak_data == 'gen_pku_artifact' then
  2475.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_saw', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2476.                             end
  2477.                             if v:interaction().tweak_data == 'mus_pku_artifact' then
  2478.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2479.                             end
  2480.                             if v:interaction().tweak_data == 'gen_pku_artifact_painting'
  2481.                             and v:interaction():interact_position() ~= Vector3(-2271.7534179688, -2397.224609375, -221.53845214844)
  2482.                             and v:interaction():interact_position() ~= Vector3(-1425, -2260, -633.00500488281)
  2483.                             then
  2484.                                 managers.hud:add_waypoint( 'hudz_ptn_'..k, { icon = 'equipment_ticket', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  2485.                             end
  2486.                             -- security room - keyboard
  2487.                             if v:interaction().tweak_data == 'hack_suburbia' or v:interaction().tweak_data == 'access_camera' then
  2488.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  2489.                             end
  2490.                         end
  2491.                         -- THE DIAMOND - PUZZLE
  2492.                         local _path_ok = _script_activated - _path_created
  2493.                         if _path_ok > 0 then _hack_ok = true else _hack_ok = false end
  2494.                         if managers.job:current_level_id() == 'mus' and v:interaction().tweak_data == 'mus_hold_open_display' and isHost() and _hack_ok == true then
  2495.                             _path_terminated = false
  2496.                             local tiles_all = {
  2497.                         -- FLOOR
  2498.                                 ["133577"] = Vector3(6475, 700, -600),  -- a001
  2499.                                 ["133578"] = Vector3(6475, 500, -600),  -- a002
  2500.                                 ["133579"] = Vector3(6475, 300, -600),  -- a003
  2501.                                 ["133580"] = Vector3(6475, 100, -600),  -- a004
  2502.                                 ["133581"] = Vector3(6475, -100, -600), -- a005
  2503.                                 ["133582"] = Vector3(6475, -300, -600), -- a006
  2504.                         -- A --
  2505.                                 ["133583"] = Vector3(6675, 700, -600),  -- b001     UP
  2506.                                 ["133584"] = Vector3(6675, 500, -600),  -- b002     UP
  2507.                                 ["133585"] = Vector3(6675, 300, -600),  -- b003     UP
  2508.                                 ["133586"] = Vector3(6675, 100, -600),  -- b004     UP
  2509.                                 ["133587"] = Vector3(6675, -100, -600), -- b005     UP
  2510.                                 ["133588"] = Vector3(6675, -300, -600), -- b006     UP
  2511.                         -- B --
  2512.                                 -- b001 : 133631
  2513.                                 ["133638"] = Vector3(6675, 500, -600),  -- b002     RIGHT
  2514.                                 ["133589"] = Vector3(6875, 700, -600),  -- c001     UP
  2515.                                 -- b002 : 133633
  2516.                                 ["133640"] = Vector3(6675, 300, -600),  -- b003     RIGHT
  2517.                                 ["133590"] = Vector3(6675, 300, -600),  -- c002     UP
  2518.                                 ["133639"] = Vector3(6675, 700, -600),  -- b001     LEFT
  2519.                                 -- b003 : 133634
  2520.                                 ["133591"] = Vector3(6875, 300, -600),  -- c003     UP
  2521.                                 ["133642"] = Vector3(6675, 100, -600),  -- b004     RIGHT
  2522.                                 ["133641"] = Vector3(6675, 500, -600),  -- b002     LEFT
  2523.                                 -- b004 : 133635
  2524.                                 ["133592"] = Vector3(6875, 100, -600),  -- c004     UP
  2525.                                 ["133643"] = Vector3(6675, 300, -600),  -- b003     LEFT
  2526.                                 ["133645"] = Vector3(6675, -100, -600), -- b005     RIGHT
  2527.                                 -- b005 : 133636
  2528.                                 ["133593"] = Vector3(6875, -100, -600), -- c005     UP
  2529.                                 ["133647"] = Vector3(6675, -300, -600), -- b006     RIGHT
  2530.                                 ["133644"] = Vector3(6675, 100, -600),  -- b004     LEFT
  2531.                                 -- b006 : 133637
  2532.                                 ["133594"] = Vector3(6875, -300, -600), -- c005     UP
  2533.                                 ["133646"] = Vector3(6675, -100, -600), -- b005     LEFT
  2534.                         -- C --
  2535.                                 -- c001 : 133650
  2536.                                 ["133595"] = Vector3(7075, 700, -600),  -- d001     UP
  2537.                                 ["133648"] = Vector3(6875, 500, -600),  -- c002     RIGHT
  2538.                                 -- c002 : 133653
  2539.                                 ["133601"] = Vector3(7075, 500, -600),  -- d002     UP
  2540.                                 ["133652"] = Vector3(6875, 300, -600),  -- c003     RIGHT
  2541.                                 ["133649"] = Vector3(6875, 700, -600),  -- c001     LEFT
  2542.                                 -- c003 : 133656
  2543.                                 ["133607"] = Vector3(7075, 300, -600),  -- d003     UP
  2544.                                 ["133655"] = Vector3(6875, 100, -600),  -- c004     RIGHT
  2545.                                 ["133651"] = Vector3(6875, 500, -600),  -- c002     LEFT
  2546.                                 -- c004 : 133659
  2547.                                 ["133613"] = Vector3(7075, 100, -600),  -- d004     UP
  2548.                                 ["133658"] = Vector3(6875, -100, -600), -- c005     RIGHT
  2549.                                 ["133654"] = Vector3(6875, 300, -600),  -- c003     LEFT
  2550.                                 -- c005 : 133662
  2551.                                 ["133619"] = Vector3(7075, -100, -600), -- d005     UP
  2552.                                 ["133661"] = Vector3(6875, -300, -600), -- c006     RIGHT
  2553.                                 ["133657"] = Vector3(6875, 100, -600),  -- c004     LEFT
  2554.                                 -- c006 : 133663
  2555.                                 ["133625"] = Vector3(7075, -300, -600), -- d006     UP
  2556.                                 ["133660"] = Vector3(6875, -100, -600), -- c005     LEFT
  2557.                         -- D --
  2558.                                 -- d001 : 133666
  2559.                                 ["133596"] = Vector3(7275, 700, -600),  -- e001     UP
  2560.                                 ["133664"] = Vector3(7075, 500, -600),  -- d002     RIGHT
  2561.                                 -- d002 : 133669
  2562.                                 ["133602"] = Vector3(7275, 500, -600),  -- e002     UP
  2563.                                 ["133667"] = Vector3(7075, 300, -600),  -- d003     RIGHT
  2564.                                 ["133665"] = Vector3(7075, 700, -600),  -- d001     LEFT
  2565.                                 -- d003 : 133672
  2566.                                 ["133608"] = Vector3(7275, 300, -600),  -- e003     UP
  2567.                                 ["133670"] = Vector3(7075, 100, -600),  -- d004     RIGHT
  2568.                                 ["133668"] = Vector3(7075, 500, -600),  -- d002     LEFT
  2569.                                 -- d004 : 133675
  2570.                                 ["133614"] = Vector3(7275, 100, -600),  -- e004     UP
  2571.                                 ["133673"] = Vector3(7075, -100, -600), -- d005     RIGHT
  2572.                                 ["133671"] = Vector3(7075, 300, -600),  -- d003     LEFT
  2573.                                 -- d005 : 133678
  2574.                                 ["133620"] = Vector3(7275, -100, -600), -- e005     UP
  2575.                                 ["133676"] = Vector3(7075, -300, -600), -- d006     RIGHT
  2576.                                 ["133674"] = Vector3(7075, 100, -600),  -- d004     LEFT
  2577.                                 -- d006 : 133679
  2578.                                 ["133626"] = Vector3(7275, -300, -600), -- e006     UP
  2579.                                 ["133677"] = Vector3(7075, -100, -600), -- d005     LEFT
  2580.                         -- E --
  2581.                                 -- e001 : 133680
  2582.                                 ["133597"] = Vector3(7475, 700, -600),  -- f001     UP
  2583.                                 ["133682"] = Vector3(7275, 500, -600),  -- e002     RIGHT
  2584.                                 -- e002 : 133683
  2585.                                 ["133603"] = Vector3(7475, 500, -600),  -- f002     UP
  2586.                                 ["133684"] = Vector3(7275, 300, -600),  -- e003     RIGHT
  2587.                                 ["133681"] = Vector3(7275, 700, -600),  -- e001     LEFT
  2588.                                 -- e003 : 133686
  2589.                                 ["133609"] = Vector3(7475, 300, -600),  -- f003     UP
  2590.                                 ["133687"] = Vector3(7275, 100, -600),  -- e004     RIGHT
  2591.                                 ["133685"] = Vector3(7275, 500, -600),  -- e002     LEFT
  2592.                                 -- e004 : 133689
  2593.                                 ["133615"] = Vector3(7475, 100, -600),  -- f004     UP
  2594.                                 ["133690"] = Vector3(7275, -100, -600), -- e005     RIGHT
  2595.                                 ["133688"] = Vector3(7275, 300, -600),  -- e003     LEFT
  2596.                                 -- e005 : 133692
  2597.                                 ["133621"] = Vector3(7475, -100, -600), -- f005     UP
  2598.                                 ["133693"] = Vector3(7275, -300, -600), -- e006     RIGHT
  2599.                                 ["133691"] = Vector3(7275, 100, -600),  -- e004     LEFT
  2600.                                 -- e006 : 133695
  2601.                                 ["133627"] = Vector3(7475, -300, -600), -- f006     UP
  2602.                                 ["133694"] = Vector3(7275, -100, -600), -- e005     LEFT
  2603.                         -- F --
  2604.                                 -- f001 : 133696
  2605.                                 ["133598"] = Vector3(7675, 700, -600),  -- g001     UP
  2606.                                 ["133698"] = Vector3(7475, 500, -600),  -- f002     RIGHT
  2607.                                 -- f002 : 133699
  2608.                                 ["133604"] = Vector3(7675, 500, -600),  -- g002     UP
  2609.                                 ["133700"] = Vector3(7475, 300, -600),  -- f003     RIGHT
  2610.                                 ["133697"] = Vector3(7475, 700, -600),  -- f001     LEFT
  2611.                                 -- f003 : 133702
  2612.                                 ["133610"] = Vector3(7675, 300, -600),  -- g003     UP
  2613.                                 ["133703"] = Vector3(7475, 100, -600),  -- f004     RIGHT
  2614.                                 ["133701"] = Vector3(7475, 500, -600),  -- f002     LEFT
  2615.                                 -- f004 : 133705
  2616.                                 ["133616"] = Vector3(7675, 100, -600),  -- g004     UP
  2617.                                 ["133706"] = Vector3(7475, -100, -600), -- f005     RIGHT
  2618.                                 ["133704"] = Vector3(7475, 300, -600),  -- f003     LEFT
  2619.                                 -- f005 : 133708
  2620.                                 ["133622"] = Vector3(7675, -100, -600), -- g005     UP
  2621.                                 ["133709"] = Vector3(7475, -300, -600), -- f006     RIGHT
  2622.                                 ["133707"] = Vector3(7475, 100, -600),  -- f004     LEFT
  2623.                                 -- f006 : 133711
  2624.                                 ["133628"] = Vector3(7675, -300, -600), -- g006     UP
  2625.                                 ["133710"] = Vector3(7475, -100, -600), -- f005     LEFT
  2626.                         -- G --
  2627.                                 -- g001 : 133712
  2628.                                 ["133599"] = Vector3(7875, 700, -600),  -- h001     UP
  2629.                                 ["133714"] = Vector3(7675, 500, -600),  -- g002     RIGHT
  2630.                                 -- g002 : 133715
  2631.                                 ["133605"] = Vector3(7875, 500, -600),  -- h002     UP
  2632.                                 ["133716"] = Vector3(7675, 300, -600),  -- g003     RIGHT
  2633.                                 ["133713"] = Vector3(7675, 700, -600),  -- g001     LEFT
  2634.                                 -- g003 : 133718
  2635.                                 ["133611"] = Vector3(7875, 300, -600),  -- h003     UP
  2636.                                 ["133719"] = Vector3(7675, 100, -600),  -- g004     RIGHT
  2637.                                 ["133717"] = Vector3(7675, 500, -600),  -- g002     LEFT
  2638.                                 -- g004 : 133721
  2639.                                 ["133617"] = Vector3(7875, 100, -600),  -- h004     UP
  2640.                                 ["133722"] = Vector3(7675, -100, -600), -- g005     RIGHT
  2641.                                 ["133720"] = Vector3(7675, 300, -600),  -- g003     LEFT
  2642.                                 -- g005 : 133724
  2643.                                 ["133623"] = Vector3(7875, -100, -600), -- h005     UP
  2644.                                 ["133725"] = Vector3(7675, -300, -600), -- g006     RIGHT
  2645.                                 ["133723"] = Vector3(7675, 100, -600),  -- g004     LEFT
  2646.                                 -- g006 : 133727
  2647.                                 ["133629"] = Vector3(7875, -300, -600), -- h006     UP
  2648.                                 ["133726"] = Vector3(7675, -100, -600), -- g005     LEFT
  2649.                         -- H --
  2650.                                 -- h001 : 133728
  2651.                                 ["133600"] = Vector3(8075, 700, -600),  -- i001     UP
  2652.                                 ["133730"] = Vector3(7875, 500, -600),  -- h002     RIGHT
  2653.                                 -- h002 : 133731
  2654.                                 ["133606"] = Vector3(8075, 500, -600),  -- i002     UP
  2655.                                 ["133732"] = Vector3(7875, 300, -600),  -- h003     RIGHT
  2656.                                 ["133729"] = Vector3(7875, 700, -600),  -- h001     LEFT
  2657.                                 -- h003 : 133734
  2658.                                 ["133612"] = Vector3(8075, 300, -600),  -- i003     UP
  2659.                                 ["133735"] = Vector3(7875, 100, -600),  -- h004     RIGHT
  2660.                                 ["133733"] = Vector3(7875, 500, -600),  -- h002     LEFT
  2661.                                 -- h004 : 133737
  2662.                                 ["133618"] = Vector3(8075, 100, -600),  -- i004     UP
  2663.                                 ["133738"] = Vector3(7875, -100, -600), -- h005     RIGHT
  2664.                                 ["133736"] = Vector3(7875, 300, -600),  -- h003     LEFT
  2665.                                 -- h005 : 133740
  2666.                                 ["133624"] = Vector3(8075, -100, -600), -- i005     UP
  2667.                                 ["133741"] = Vector3(7875, -300, -600), -- h006     RIGHT
  2668.                                 ["133739"] = Vector3(7875, 100, -600),  -- h004     LEFT
  2669.                                 -- h006 : 133743
  2670.                                 ["133630"] = Vector3(8075, -300, -600), -- i006     UP
  2671.                                 ["133742"] = Vector3(7875, -100, -600), -- h005     LEFT
  2672.                             }
  2673.                                
  2674.                             if _path_terminated == false then
  2675.                               if _path_ok > 1 then
  2676.                                 local tile_1 = managers.mission:script("default")._elements[133576]._values.on_executed[1].id
  2677.                                 managers.hud:add_waypoint( 'hudz_base_'..'tile_1', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_1)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2678.                               if _path_ok > 2 then
  2679.                                 local tile_2 = managers.mission:script("default")._elements[tile_1]._values.on_executed[1].id
  2680.                                 managers.hud:add_waypoint( 'hudz_base_'..'tile_2', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_2)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2681.                               if _path_ok > 3 then
  2682.                                 local tile_3 = managers.mission:script("default")._elements[tile_2]._values.on_executed[1].id
  2683.                                 local tile_3b = managers.mission:script("default")._elements[tile_3]._values.on_executed[1].id
  2684.                                 if tile_3 == 133631 or tile_3 == 133633 or tile_3 == 133634 or tile_3 == 133635 or tile_3 == 133636 or tile_3 == 133637 or tile_3 == 133650
  2685.                                 or tile_3 == 133653 or tile_3 == 133656 or tile_3 == 133659 or tile_3 == 133662 or tile_3 == 133663 or tile_3 == 133666 or tile_3 == 133669
  2686.                                 or tile_3 == 133672 or tile_3 == 133675 or tile_3 == 133678 or tile_3 == 133679 or tile_3 == 133680 or tile_3 == 133683 or tile_3 == 133686
  2687.                                 or tile_3 == 133689 or tile_3 == 133692 or tile_3 == 133695 or tile_3 == 133696 or tile_3 == 133699 or tile_3 == 133702 or tile_3 == 133705
  2688.                                 or tile_3 == 133708 or tile_3 == 133711 or tile_3 == 133712 or tile_3 == 133715 or tile_3 == 133718 or tile_3 == 133721 or tile_3 == 133724
  2689.                                 or tile_3 == 133727 or tile_3 == 133728 or tile_3 == 133731 or tile_3 == 133734 or tile_3 == 133737 or tile_3 == 133740 or tile_3 == 133743
  2690.                                 then
  2691.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_3', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_3b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2692.                                     _path_tile = tile_3b
  2693.                                 else
  2694.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_3', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_3)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2695.                                     _path_tile = tile_3
  2696.                                 end
  2697.                               if _path_ok > 4 then
  2698.                                 local tile_4_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2699.                                 local tile_4 = managers.mission:script("default")._elements[tile_4_0]._values.on_executed[1].id
  2700.                                 local tile_4b = managers.mission:script("default")._elements[tile_4]._values.on_executed[1].id
  2701.                                 if tile_4 == 133631 or tile_4 == 133633 or tile_4 == 133634 or tile_4 == 133635 or tile_4 == 133636 or tile_4 == 133637 or tile_4 == 133650
  2702.                                 or tile_4 == 133653 or tile_4 == 133656 or tile_4 == 133659 or tile_4 == 133662 or tile_4 == 133663 or tile_4 == 133666 or tile_4 == 133669
  2703.                                 or tile_4 == 133672 or tile_4 == 133675 or tile_4 == 133678 or tile_4 == 133679 or tile_4 == 133680 or tile_4 == 133683 or tile_4 == 133686
  2704.                                 or tile_4 == 133689 or tile_4 == 133692 or tile_4 == 133695 or tile_4 == 133696 or tile_4 == 133699 or tile_4 == 133702 or tile_4 == 133705
  2705.                                 or tile_4 == 133708 or tile_4 == 133711 or tile_4 == 133712 or tile_4 == 133715 or tile_4 == 133718 or tile_4 == 133721 or tile_4 == 133724
  2706.                                 or tile_4 == 133727 or tile_4 == 133728 or tile_4 == 133731 or tile_4 == 133734 or tile_4 == 133737 or tile_4 == 133740 or tile_4 == 133743
  2707.                                 then
  2708.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_4', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_4b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2709.                                     _path_tile = tile_4b
  2710.                                 else
  2711.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_4', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_4)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2712.                                     _path_tile = tile_4
  2713.                                 end
  2714.                               if _path_ok > 5 then
  2715.                                 local tile_5_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2716.                                 local tile_5 = managers.mission:script("default")._elements[tile_5_0]._values.on_executed[1].id
  2717.                                 local tile_5b = managers.mission:script("default")._elements[tile_5]._values.on_executed[1].id
  2718.                                 if tile_5 == 133631 or tile_5 == 133633 or tile_5 == 133634 or tile_5 == 133635 or tile_5 == 133636 or tile_5 == 133637 or tile_5 == 133650
  2719.                                 or tile_5 == 133653 or tile_5 == 133656 or tile_5 == 133659 or tile_5 == 133662 or tile_5 == 133663 or tile_5 == 133666 or tile_5 == 133669
  2720.                                 or tile_5 == 133672 or tile_5 == 133675 or tile_5 == 133678 or tile_5 == 133679 or tile_5 == 133680 or tile_5 == 133683 or tile_5 == 133686
  2721.                                 or tile_5 == 133689 or tile_5 == 133692 or tile_5 == 133695 or tile_5 == 133696 or tile_5 == 133699 or tile_5 == 133702 or tile_5 == 133705
  2722.                                 or tile_5 == 133708 or tile_5 == 133711 or tile_5 == 133712 or tile_5 == 133715 or tile_5 == 133718 or tile_5 == 133721 or tile_5 == 133724
  2723.                                 or tile_5 == 133727 or tile_5 == 133728 or tile_5 == 133731 or tile_5 == 133734 or tile_5 == 133737 or tile_5 == 133740 or tile_5 == 133743
  2724.                                 then
  2725.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_5', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_5b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2726.                                     _path_tile = tile_5b
  2727.                                 else
  2728.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_5', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_5)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2729.                                     _path_tile = tile_5
  2730.                                 end
  2731.                               if _path_ok > 6 then
  2732.                                 local tile_6_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2733.                                 local tile_6 = managers.mission:script("default")._elements[tile_6_0]._values.on_executed[1].id
  2734.                                 local tile_6b = managers.mission:script("default")._elements[tile_6]._values.on_executed[1].id
  2735.                                 if tile_6 == 133631 or tile_6 == 133633 or tile_6 == 133634 or tile_6 == 133635 or tile_6 == 133636 or tile_6 == 133637 or tile_6 == 133650
  2736.                                 or tile_6 == 133653 or tile_6 == 133656 or tile_6 == 133659 or tile_6 == 133662 or tile_6 == 133663 or tile_6 == 133666 or tile_6 == 133669
  2737.                                 or tile_6 == 133672 or tile_6 == 133675 or tile_6 == 133678 or tile_6 == 133679 or tile_6 == 133680 or tile_6 == 133683 or tile_6 == 133686
  2738.                                 or tile_6 == 133689 or tile_6 == 133692 or tile_6 == 133695 or tile_6 == 133696 or tile_6 == 133699 or tile_6 == 133702 or tile_6 == 133705
  2739.                                 or tile_6 == 133708 or tile_6 == 133711 or tile_6 == 133712 or tile_6 == 133715 or tile_6 == 133718 or tile_6 == 133721 or tile_6 == 133724
  2740.                                 or tile_6 == 133727 or tile_6 == 133728 or tile_6 == 133731 or tile_6 == 133734 or tile_6 == 133737 or tile_6 == 133740 or tile_6 == 133743
  2741.                                 then
  2742.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_6', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_6b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2743.                                     _path_tile = tile_6b
  2744.                                 else
  2745.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_6', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_6)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2746.                                     _path_tile = tile_6
  2747.                                 end
  2748.                               if _path_ok > 7 then
  2749.                                 local tile_7_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2750.                                 local tile_7 = managers.mission:script("default")._elements[tile_7_0]._values.on_executed[1].id
  2751.                                 local tile_7b = managers.mission:script("default")._elements[tile_7]._values.on_executed[1].id
  2752.                                 if tile_7 == 133631 or tile_7 == 133633 or tile_7 == 133634 or tile_7 == 133635 or tile_7 == 133636 or tile_7 == 133637 or tile_7 == 133650
  2753.                                 or tile_7 == 133653 or tile_7 == 133656 or tile_7 == 133659 or tile_7 == 133662 or tile_7 == 133663 or tile_7 == 133666 or tile_7 == 133669
  2754.                                 or tile_7 == 133672 or tile_7 == 133675 or tile_7 == 133678 or tile_7 == 133679 or tile_7 == 133680 or tile_7 == 133683 or tile_7 == 133686
  2755.                                 or tile_7 == 133689 or tile_7 == 133692 or tile_7 == 133695 or tile_7 == 133696 or tile_7 == 133699 or tile_7 == 133702 or tile_7 == 133705
  2756.                                 or tile_7 == 133708 or tile_7 == 133711 or tile_7 == 133712 or tile_7 == 133715 or tile_7 == 133718 or tile_7 == 133721 or tile_7 == 133724
  2757.                                 or tile_7 == 133727 or tile_7 == 133728 or tile_7 == 133731 or tile_7 == 133734 or tile_7 == 133737 or tile_7 == 133740 or tile_7 == 133743
  2758.                                 then
  2759.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_7', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_7b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2760.                                     _path_tile = tile_7b
  2761.                                 else
  2762.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_7', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_7)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2763.                                     _path_tile = tile_7
  2764.                                 end
  2765.                               if _path_ok > 8 then
  2766.                                 local tile_8_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2767.                                 local tile_8 = managers.mission:script("default")._elements[tile_8_0]._values.on_executed[1].id
  2768.                                 local tile_8b = managers.mission:script("default")._elements[tile_8]._values.on_executed[1].id
  2769.                                 if tile_8 == 133631 or tile_8 == 133633 or tile_8 == 133634 or tile_8 == 133635 or tile_8 == 133636 or tile_8 == 133637 or tile_8 == 133650
  2770.                                 or tile_8 == 133653 or tile_8 == 133656 or tile_8 == 133659 or tile_8 == 133662 or tile_8 == 133663 or tile_8 == 133666 or tile_8 == 133669
  2771.                                 or tile_8 == 133672 or tile_8 == 133675 or tile_8 == 133678 or tile_8 == 133679 or tile_8 == 133680 or tile_8 == 133683 or tile_8 == 133686
  2772.                                 or tile_8 == 133689 or tile_8 == 133692 or tile_8 == 133695 or tile_8 == 133696 or tile_8 == 133699 or tile_8 == 133702 or tile_8 == 133705
  2773.                                 or tile_8 == 133708 or tile_8 == 133711 or tile_8 == 133712 or tile_8 == 133715 or tile_8 == 133718 or tile_8 == 133721 or tile_8 == 133724
  2774.                                 or tile_8 == 133727 or tile_8 == 133728 or tile_8 == 133731 or tile_8 == 133734 or tile_8 == 133737 or tile_8 == 133740 or tile_8 == 133743
  2775.                                 then
  2776.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_8', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_8b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2777.                                     _path_tile = tile_8b
  2778.                                 else
  2779.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_8', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_8)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2780.                                     _path_tile = tile_8
  2781.                                 end
  2782.                               if _path_ok > 9 then
  2783.                                 local tile_9_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2784.                                 local tile_9 = managers.mission:script("default")._elements[tile_9_0]._values.on_executed[1].id
  2785.                                 local tile_9b = managers.mission:script("default")._elements[tile_9]._values.on_executed[1].id
  2786.                                 if tile_9 == 133631 or tile_9 == 133633 or tile_9 == 133634 or tile_9 == 133635 or tile_9 == 133636 or tile_9 == 133637 or tile_9 == 133650
  2787.                                 or tile_9 == 133653 or tile_9 == 133656 or tile_9 == 133659 or tile_9 == 133662 or tile_9 == 133663 or tile_9 == 133666 or tile_9 == 133669
  2788.                                 or tile_9 == 133672 or tile_9 == 133675 or tile_9 == 133678 or tile_9 == 133679 or tile_9 == 133680 or tile_9 == 133683 or tile_9 == 133686
  2789.                                 or tile_9 == 133689 or tile_9 == 133692 or tile_9 == 133695 or tile_9 == 133696 or tile_9 == 133699 or tile_9 == 133702 or tile_9 == 133705
  2790.                                 or tile_9 == 133708 or tile_9 == 133711 or tile_9 == 133712 or tile_9 == 133715 or tile_9 == 133718 or tile_9 == 133721 or tile_9 == 133724
  2791.                                 or tile_9 == 133727 or tile_9 == 133728 or tile_9 == 133731 or tile_9 == 133734 or tile_9 == 133737 or tile_9 == 133740 or tile_9 == 133743
  2792.                                 then
  2793.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_9', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_9b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2794.                                     _path_tile = tile_9b
  2795.                                 else
  2796.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_9', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_9)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2797.                                     _path_tile = tile_9
  2798.                                 end
  2799.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2800.                                     -- LAST TILE!
  2801.                                     _path_terminated = true
  2802.                                 end
  2803.                               end end end end end end end end end
  2804.                             end
  2805.                             if _path_ok > 10 then
  2806.                             if _path_terminated == false then
  2807.                                 local tile_10_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2808.                                 local tile_10 = managers.mission:script("default")._elements[tile_10_0]._values.on_executed[1].id
  2809.                                 local tile_10b = managers.mission:script("default")._elements[tile_10]._values.on_executed[1].id
  2810.                                 if tile_10 == 133631 or tile_10 == 133633   or tile_10 == 133634 or tile_10 == 133635 or tile_10 == 133636 or tile_10 == 133637 or tile_10 == 133650
  2811.                                 or tile_10 == 133653 or tile_10 == 133656 or tile_10 == 133659 or tile_10 == 133662 or tile_10 == 133663 or tile_10 == 133666 or tile_10 == 133669
  2812.                                 or tile_10 == 133672 or tile_10 == 133675 or tile_10 == 133678 or tile_10 == 133679 or tile_10 == 133680 or tile_10 == 133683 or tile_10 == 133686
  2813.                                 or tile_10 == 133689 or tile_10 == 133692 or tile_10 == 133695 or tile_10 == 133696 or tile_10 == 133699 or tile_10 == 133702 or tile_10 == 133705
  2814.                                 or tile_10 == 133708 or tile_10 == 133711 or tile_10 == 133712 or tile_10 == 133715 or tile_10 == 133718 or tile_10 == 133721 or tile_10 == 133724
  2815.                                 or tile_10 == 133727 or tile_10 == 133728 or tile_10 == 133731 or tile_10 == 133734 or tile_10 == 133737 or tile_10 == 133740 or tile_10 == 133743
  2816.                                 then
  2817.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_10', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_10b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2818.                                     _path_tile = tile_10b
  2819.                                 else
  2820.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_10', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_10)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2821.                                     _path_tile = tile_10
  2822.                                 end
  2823.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2824.                                     -- LAST TILE!
  2825.                                     _path_terminated = true
  2826.                                 end
  2827.                             end
  2828.                             if _path_terminated == false then
  2829.                                 local tile_11_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2830.                                 local tile_11 = managers.mission:script("default")._elements[tile_11_0]._values.on_executed[1].id
  2831.                                 local tile_11b = managers.mission:script("default")._elements[tile_11]._values.on_executed[1].id
  2832.                                 if tile_11 == 133631 or tile_11 == 133633   or tile_11 == 133634 or tile_11 == 133635 or tile_11 == 133636 or tile_11 == 133637 or tile_11 == 133650
  2833.                                 or tile_11 == 133653 or tile_11 == 133656 or tile_11 == 133659 or tile_11 == 133662 or tile_11 == 133663 or tile_11 == 133666 or tile_11 == 133669
  2834.                                 or tile_11 == 133672 or tile_11 == 133675 or tile_11 == 133678 or tile_11 == 133679 or tile_11 == 133680 or tile_11 == 133683 or tile_11 == 133686
  2835.                                 or tile_11 == 133689 or tile_11 == 133692 or tile_11 == 133695 or tile_11 == 133696 or tile_11 == 133699 or tile_11 == 133702 or tile_11 == 133705
  2836.                                 or tile_11 == 133708 or tile_11 == 133711 or tile_11 == 133712 or tile_11 == 133715 or tile_11 == 133718 or tile_11 == 133721 or tile_11 == 133724
  2837.                                 or tile_11 == 133727 or tile_11 == 133728 or tile_11 == 133731 or tile_11 == 133734 or tile_11 == 133737 or tile_11 == 133740 or tile_11 == 133743
  2838.                                 then
  2839.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_11', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_11b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2840.                                     _path_tile = tile_11b
  2841.                                 else
  2842.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_11', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_11)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2843.                                     _path_tile = tile_11
  2844.                                 end
  2845.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2846.                                     -- LAST TILE!
  2847.                                     _path_terminated = true
  2848.                                 end
  2849.                             end
  2850.                             if _path_terminated == false then
  2851.                                 local tile_12_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2852.                                 local tile_12 = managers.mission:script("default")._elements[tile_12_0]._values.on_executed[1].id
  2853.                                 local tile_12b = managers.mission:script("default")._elements[tile_12]._values.on_executed[1].id
  2854.                                 if tile_12 == 133631 or tile_12 == 133633   or tile_12 == 133634 or tile_12 == 133635 or tile_12 == 133636 or tile_12 == 133637 or tile_12 == 133650
  2855.                                 or tile_12 == 133653 or tile_12 == 133656 or tile_12 == 133659 or tile_12 == 133662 or tile_12 == 133663 or tile_12 == 133666 or tile_12 == 133669
  2856.                                 or tile_12 == 133672 or tile_12 == 133675 or tile_12 == 133678 or tile_12 == 133679 or tile_12 == 133680 or tile_12 == 133683 or tile_12 == 133686
  2857.                                 or tile_12 == 133689 or tile_12 == 133692 or tile_12 == 133695 or tile_12 == 133696 or tile_12 == 133699 or tile_12 == 133702 or tile_12 == 133705
  2858.                                 or tile_12 == 133708 or tile_12 == 133711 or tile_12 == 133712 or tile_12 == 133715 or tile_12 == 133718 or tile_12 == 133721 or tile_12 == 133724
  2859.                                 or tile_12 == 133727 or tile_12 == 133728 or tile_12 == 133731 or tile_12 == 133734 or tile_12 == 133737 or tile_12 == 133740 or tile_12 == 133743
  2860.                                 then
  2861.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_12', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_12b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2862.                                     _path_tile = tile_12b
  2863.                                 else
  2864.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_12', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_12)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2865.                                     _path_tile = tile_12
  2866.                                 end
  2867.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2868.                                     -- LAST TILE!
  2869.                                     _path_terminated = true
  2870.                                 end
  2871.                             end
  2872.                             if _path_terminated == false then
  2873.                                 local tile_13_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2874.                                 local tile_13 = managers.mission:script("default")._elements[tile_13_0]._values.on_executed[1].id
  2875.                                 local tile_13b = managers.mission:script("default")._elements[tile_13]._values.on_executed[1].id
  2876.                                 if tile_13 == 133631 or tile_13 == 133633   or tile_13 == 133634 or tile_13 == 133635 or tile_13 == 133636 or tile_13 == 133637 or tile_13 == 133650
  2877.                                 or tile_13 == 133653 or tile_13 == 133656 or tile_13 == 133659 or tile_13 == 133662 or tile_13 == 133663 or tile_13 == 133666 or tile_13 == 133669
  2878.                                 or tile_13 == 133672 or tile_13 == 133675 or tile_13 == 133678 or tile_13 == 133679 or tile_13 == 133680 or tile_13 == 133683 or tile_13 == 133686
  2879.                                 or tile_13 == 133689 or tile_13 == 133692 or tile_13 == 133695 or tile_13 == 133696 or tile_13 == 133699 or tile_13 == 133702 or tile_13 == 133705
  2880.                                 or tile_13 == 133708 or tile_13 == 133711 or tile_13 == 133712 or tile_13 == 133715 or tile_13 == 133718 or tile_13 == 133721 or tile_13 == 133724
  2881.                                 or tile_13 == 133727 or tile_13 == 133728 or tile_13 == 133731 or tile_13 == 133734 or tile_13 == 133737 or tile_13 == 133740 or tile_13 == 133743
  2882.                                 then
  2883.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_13', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_13b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2884.                                     _path_tile = tile_13b
  2885.                                 else
  2886.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_13', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_13)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2887.                                     _path_tile = tile_13
  2888.                                 end
  2889.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2890.                                     -- LAST TILE!
  2891.                                     _path_terminated = true
  2892.                                 end
  2893.                             end
  2894.                             if _path_terminated == false then
  2895.                                 local tile_14_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2896.                                 local tile_14 = managers.mission:script("default")._elements[tile_14_0]._values.on_executed[1].id
  2897.                                 local tile_14b = managers.mission:script("default")._elements[tile_14]._values.on_executed[1].id
  2898.                                 if tile_14 == 133631 or tile_14 == 133633   or tile_14 == 133634 or tile_14 == 133635 or tile_14 == 133636 or tile_14 == 133637 or tile_14 == 133650
  2899.                                 or tile_14 == 133653 or tile_14 == 133656 or tile_14 == 133659 or tile_14 == 133662 or tile_14 == 133663 or tile_14 == 133666 or tile_14 == 133669
  2900.                                 or tile_14 == 133672 or tile_14 == 133675 or tile_14 == 133678 or tile_14 == 133679 or tile_14 == 133680 or tile_14 == 133683 or tile_14 == 133686
  2901.                                 or tile_14 == 133689 or tile_14 == 133692 or tile_14 == 133695 or tile_14 == 133696 or tile_14 == 133699 or tile_14 == 133702 or tile_14 == 133705
  2902.                                 or tile_14 == 133708 or tile_14 == 133711 or tile_14 == 133712 or tile_14 == 133715 or tile_14 == 133718 or tile_14 == 133721 or tile_14 == 133724
  2903.                                 or tile_14 == 133727 or tile_14 == 133728 or tile_14 == 133731 or tile_14 == 133734 or tile_14 == 133737 or tile_14 == 133740 or tile_14 == 133743
  2904.                                 then
  2905.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_14', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_14b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2906.                                     _path_tile = tile_14b
  2907.                                 else
  2908.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_14', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_14)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2909.                                     _path_tile = tile_14
  2910.                                 end
  2911.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2912.                                     -- LAST TILE!
  2913.                                     _path_terminated = true
  2914.                                 end
  2915.                             end
  2916.                             if _path_terminated == false then
  2917.                                 local tile_15_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2918.                                 local tile_15 = managers.mission:script("default")._elements[tile_15_0]._values.on_executed[1].id
  2919.                                 local tile_15b = managers.mission:script("default")._elements[tile_15]._values.on_executed[1].id
  2920.                                 if tile_15 == 133631 or tile_15 == 133633   or tile_15 == 133634 or tile_15 == 133635 or tile_15 == 133636 or tile_15 == 133637 or tile_15 == 133650
  2921.                                 or tile_15 == 133653 or tile_15 == 133656 or tile_15 == 133659 or tile_15 == 133662 or tile_15 == 133663 or tile_15 == 133666 or tile_15 == 133669
  2922.                                 or tile_15 == 133672 or tile_15 == 133675 or tile_15 == 133678 or tile_15 == 133679 or tile_15 == 133680 or tile_15 == 133683 or tile_15 == 133686
  2923.                                 or tile_15 == 133689 or tile_15 == 133692 or tile_15 == 133695 or tile_15 == 133696 or tile_15 == 133699 or tile_15 == 133702 or tile_15 == 133705
  2924.                                 or tile_15 == 133708 or tile_15 == 133711 or tile_15 == 133712 or tile_15 == 133715 or tile_15 == 133718 or tile_15 == 133721 or tile_15 == 133724
  2925.                                 or tile_15 == 133727 or tile_15 == 133728 or tile_15 == 133731 or tile_15 == 133734 or tile_15 == 133737 or tile_15 == 133740 or tile_15 == 133743
  2926.                                 then
  2927.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_15', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_15b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2928.                                     _path_tile = tile_15b
  2929.                                 else
  2930.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_15', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_15)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2931.                                     _path_tile = tile_15
  2932.                                 end
  2933.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2934.                                     -- LAST TILE!
  2935.                                     _path_terminated = true
  2936.                                 end
  2937.                             end
  2938.                             if _path_terminated == false then
  2939.                                 local tile_16_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2940.                                 local tile_16 = managers.mission:script("default")._elements[tile_16_0]._values.on_executed[1].id
  2941.                                 local tile_16b = managers.mission:script("default")._elements[tile_16]._values.on_executed[1].id
  2942.                                 if tile_16 == 133631 or tile_16 == 133633   or tile_16 == 133634 or tile_16 == 133635 or tile_16 == 133636 or tile_16 == 133637 or tile_16 == 133650
  2943.                                 or tile_16 == 133653 or tile_16 == 133656 or tile_16 == 133659 or tile_16 == 133662 or tile_16 == 133663 or tile_16 == 133666 or tile_16 == 133669
  2944.                                 or tile_16 == 133672 or tile_16 == 133675 or tile_16 == 133678 or tile_16 == 133679 or tile_16 == 133680 or tile_16 == 133683 or tile_16 == 133686
  2945.                                 or tile_16 == 133689 or tile_16 == 133692 or tile_16 == 133695 or tile_16 == 133696 or tile_16 == 133699 or tile_16 == 133702 or tile_16 == 133705
  2946.                                 or tile_16 == 133708 or tile_16 == 133711 or tile_16 == 133712 or tile_16 == 133715 or tile_16 == 133718 or tile_16 == 133721 or tile_16 == 133724
  2947.                                 or tile_16 == 133727 or tile_16 == 133728 or tile_16 == 133731 or tile_16 == 133734 or tile_16 == 133737 or tile_16 == 133740 or tile_16 == 133743
  2948.                                 then
  2949.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_16', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_16b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2950.                                     _path_tile = tile_16b
  2951.                                 else
  2952.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_16', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_16)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2953.                                     _path_tile = tile_16
  2954.                                 end
  2955.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2956.                                     -- LAST TILE!
  2957.                                     _path_terminated = true
  2958.                                 end
  2959.                             end
  2960.                             if _path_terminated == false then
  2961.                                 local tile_17_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2962.                                 local tile_17 = managers.mission:script("default")._elements[tile_17_0]._values.on_executed[1].id
  2963.                                 local tile_17b = managers.mission:script("default")._elements[tile_17]._values.on_executed[1].id
  2964.                                 if tile_17 == 133631 or tile_17 == 133633   or tile_17 == 133634 or tile_17 == 133635 or tile_17 == 133636 or tile_17 == 133637 or tile_17 == 133650
  2965.                                 or tile_17 == 133653 or tile_17 == 133656 or tile_17 == 133659 or tile_17 == 133662 or tile_17 == 133663 or tile_17 == 133666 or tile_17 == 133669
  2966.                                 or tile_17 == 133672 or tile_17 == 133675 or tile_17 == 133678 or tile_17 == 133679 or tile_17 == 133680 or tile_17 == 133683 or tile_17 == 133686
  2967.                                 or tile_17 == 133689 or tile_17 == 133692 or tile_17 == 133695 or tile_17 == 133696 or tile_17 == 133699 or tile_17 == 133702 or tile_17 == 133705
  2968.                                 or tile_17 == 133708 or tile_17 == 133711 or tile_17 == 133712 or tile_17 == 133715 or tile_17 == 133718 or tile_17 == 133721 or tile_17 == 133724
  2969.                                 or tile_17 == 133727 or tile_17 == 133728 or tile_17 == 133731 or tile_17 == 133734 or tile_17 == 133737 or tile_17 == 133740 or tile_17 == 133743
  2970.                                 then
  2971.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_17', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_17b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2972.                                     _path_tile = tile_17b
  2973.                                 else
  2974.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_17', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_17)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2975.                                     _path_tile = tile_17
  2976.                                 end
  2977.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  2978.                                     -- LAST TILE!
  2979.                                     _path_terminated = true
  2980.                                 end
  2981.                             end
  2982.                             if _path_terminated == false then
  2983.                                 local tile_18_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  2984.                                 local tile_18 = managers.mission:script("default")._elements[tile_18_0]._values.on_executed[1].id
  2985.                                 local tile_18b = managers.mission:script("default")._elements[tile_18]._values.on_executed[1].id
  2986.                                 if tile_18 == 133631 or tile_18 == 133633   or tile_18 == 133634 or tile_18 == 133635 or tile_18 == 133636 or tile_18 == 133637 or tile_18 == 133650
  2987.                                 or tile_18 == 133653 or tile_18 == 133656 or tile_18 == 133659 or tile_18 == 133662 or tile_18 == 133663 or tile_18 == 133666 or tile_18 == 133669
  2988.                                 or tile_18 == 133672 or tile_18 == 133675 or tile_18 == 133678 or tile_18 == 133679 or tile_18 == 133680 or tile_18 == 133683 or tile_18 == 133686
  2989.                                 or tile_18 == 133689 or tile_18 == 133692 or tile_18 == 133695 or tile_18 == 133696 or tile_18 == 133699 or tile_18 == 133702 or tile_18 == 133705
  2990.                                 or tile_18 == 133708 or tile_18 == 133711 or tile_18 == 133712 or tile_18 == 133715 or tile_18 == 133718 or tile_18 == 133721 or tile_18 == 133724
  2991.                                 or tile_18 == 133727 or tile_18 == 133728 or tile_18 == 133731 or tile_18 == 133734 or tile_18 == 133737 or tile_18 == 133740 or tile_18 == 133743
  2992.                                 then
  2993.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_18', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_18b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2994.                                     _path_tile = tile_18b
  2995.                                 else
  2996.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_18', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_18)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  2997.                                     _path_tile = tile_18
  2998.                                 end
  2999.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  3000.                                     -- LAST TILE!
  3001.                                     _path_terminated = true
  3002.                                 end
  3003.                             end
  3004.                             if _path_terminated == false then
  3005.                                 local tile_19_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  3006.                                 local tile_19 = managers.mission:script("default")._elements[tile_19_0]._values.on_executed[1].id
  3007.                                 local tile_19b = managers.mission:script("default")._elements[tile_19]._values.on_executed[1].id
  3008.                                 if tile_19 == 133631 or tile_19 == 133633   or tile_19 == 133634 or tile_19 == 133635 or tile_19 == 133636 or tile_19 == 133637 or tile_19 == 133650
  3009.                                 or tile_19 == 133653 or tile_19 == 133656 or tile_19 == 133659 or tile_19 == 133662 or tile_19 == 133663 or tile_19 == 133666 or tile_19 == 133669
  3010.                                 or tile_19 == 133672 or tile_19 == 133675 or tile_19 == 133678 or tile_19 == 133679 or tile_19 == 133680 or tile_19 == 133683 or tile_19 == 133686
  3011.                                 or tile_19 == 133689 or tile_19 == 133692 or tile_19 == 133695 or tile_19 == 133696 or tile_19 == 133699 or tile_19 == 133702 or tile_19 == 133705
  3012.                                 or tile_19 == 133708 or tile_19 == 133711 or tile_19 == 133712 or tile_19 == 133715 or tile_19 == 133718 or tile_19 == 133721 or tile_19 == 133724
  3013.                                 or tile_19 == 133727 or tile_19 == 133728 or tile_19 == 133731 or tile_19 == 133734 or tile_19 == 133737 or tile_19 == 133740 or tile_19 == 133743
  3014.                                 then
  3015.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_19', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_19b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3016.                                     _path_tile = tile_19b
  3017.                                 else
  3018.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_19', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_19)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3019.                                     _path_tile = tile_19
  3020.                                 end
  3021.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  3022.                                     -- LAST TILE!
  3023.                                     _path_terminated = true
  3024.                                 end
  3025.                             end
  3026.                             if _path_terminated == false then
  3027.                                 local tile_20_0 = managers.mission:script("default")._elements[_path_tile]._values.on_executed[1].id
  3028.                                 local tile_20 = managers.mission:script("default")._elements[tile_20_0]._values.on_executed[1].id
  3029.                                 local tile_20b = managers.mission:script("default")._elements[tile_20]._values.on_executed[1].id
  3030.                                 if tile_20 == 133631 or tile_20 == 133633   or tile_20 == 133634 or tile_20 == 133635 or tile_20 == 133636 or tile_20 == 133637 or tile_20 == 133650
  3031.                                 or tile_20 == 133653 or tile_20 == 133656 or tile_20 == 133659 or tile_20 == 133662 or tile_20 == 133663 or tile_20 == 133666 or tile_20 == 133669
  3032.                                 or tile_20 == 133672 or tile_20 == 133675 or tile_20 == 133678 or tile_20 == 133679 or tile_20 == 133680 or tile_20 == 133683 or tile_20 == 133686
  3033.                                 or tile_20 == 133689 or tile_20 == 133692 or tile_20 == 133695 or tile_20 == 133696 or tile_20 == 133699 or tile_20 == 133702 or tile_20 == 133705
  3034.                                 or tile_20 == 133708 or tile_20 == 133711 or tile_20 == 133712 or tile_20 == 133715 or tile_20 == 133718 or tile_20 == 133721 or tile_20 == 133724
  3035.                                 or tile_20 == 133727 or tile_20 == 133728 or tile_20 == 133731 or tile_20 == 133734 or tile_20 == 133737 or tile_20 == 133740 or tile_20 == 133743
  3036.                                 then
  3037.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_20', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_20b)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3038.                                     _path_tile = tile_20b
  3039.                                 else
  3040.                                     managers.hud:add_waypoint( 'hudz_base_'..'tile_20', { icon = 'wp_target', distance = false, position = tiles_all[tostring(tile_20)], no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3041.                                     _path_tile = tile_20
  3042.                                 end
  3043.                                 if _path_tile == 133600 or _path_tile == 133606 or _path_tile == 133612 or _path_tile == 133618 or _path_tile == 133624 or _path_tile == 133630 then
  3044.                                     -- LAST TILE!
  3045.                                     _path_terminated = true
  3046.                                 end
  3047.                             end
  3048.                             end
  3049.                         end
  3050.                         -- THE BOMB : DOCKYARD
  3051.                         if managers.job:current_level_id() == 'crojob2' then
  3052.                             -- computers
  3053.                             if v:interaction().tweak_data == 'uload_database' and _uldatabase_found == false then
  3054.                                 managers.hud:add_waypoint( 'hudz_uload'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3055.                             end
  3056.                             -- right position of the bomb
  3057.                             if v:interaction().tweak_data == 'hold_pku_disassemble_cro_loot' and _bomb_ok == false then
  3058.                                 _bomb_pos = v:position()
  3059.                                 _bomb_ok = true
  3060.                             end
  3061.                             -- 4 positions of the bomb + right position
  3062.                             if v:interaction().tweak_data == 'hold_pku_disassemble_cro_loot'
  3063.                             and _bomb_ok == true and _bomb_used > 3 and _bomb_used <= 8
  3064.                             then
  3065.                                 managers.hud:remove_waypoint( 'hudz_Robj_'..'bomb' )
  3066.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3067.                             end
  3068.                             if v:interaction().tweak_data == 'hold_open_bomb_case' and (_bomb_used == 4 or _bomb_used == 3) then
  3069.                                 if v:position() == _bomb_pos then
  3070.                                     managers.hud:add_waypoint( 'hudz_Robj_'..'bomb', { icon = 'wp_target', distance = bShowDistance, position = _bomb_pos, no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3071.                                 else
  3072.                                     managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  3073.                                 end
  3074.                             elseif v:interaction().tweak_data == 'hold_open_bomb_case' and _bomb_used > 3 then
  3075.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  3076.                             end
  3077.                         end
  3078.                         -- THE BOMB : FOREST
  3079.                         if managers.job:current_level_id() == 'crojob3' then
  3080.                             -- Cargo door
  3081.                             if v:interaction().tweak_data == 'open_train_cargo_door' then
  3082.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_door', distance = false, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3083.                             end
  3084.                             -- Ladder
  3085.                             if v:interaction().tweak_data == 'pick_lock_easy_no_skill' or v:interaction().tweak_data == 'hold_remove_ladder' then
  3086.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_ladder', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.green, blend_mode = "add" }  )
  3087.                             end
  3088.                             -- Chainsaw
  3089.                             if v:interaction().tweak_data == 'take_chainsaw' then
  3090.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_chainsaw', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.red, blend_mode = "add" }  )
  3091.                             end
  3092.                             if v:interaction().tweak_data == 'use_chainsaw' then
  3093.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_chainsaw', distance = true, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3094.                             end
  3095.                         end
  3096.                         -- MELTDOWN
  3097.                         if v:interaction().tweak_data == 'driving_drive' and managers.job:current_level_id() == 'shoutout_raid' then
  3098.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ejection_seat', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3099.                         end
  3100.                         if v:interaction().tweak_data == 'gen_pku_warhead_box' and managers.job:current_level_id() == 'shoutout_raid' then
  3101.                             managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3102.                         end
  3103.                         if v:interaction().tweak_data == 'gen_pku_warhead' and managers.job:current_level_id() == 'shoutout_raid' then
  3104.                             managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3105.                         end
  3106.                         if v:interaction().tweak_data == 'gen_pku_crowbar' and managers.job:current_level_id() == "shoutout_raid" then
  3107.                             managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_crowbar', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 260, color = Color.green, blend_mode = "add" }  )
  3108.                         end
  3109.                         -- Mus The Diamond
  3110.                         if managers.job:current_level_id() == 'mus' then
  3111.                             -- glass / artifact
  3112.                             --if v:interaction().tweak_data == 'cut_glass'
  3113.                             if v:interaction().tweak_data == 'gen_pku_artifact' then
  3114.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'wp_saw', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3115.                             end
  3116.                         end
  3117.                         -- money
  3118.                         if v:interaction().tweak_data == 'money_wrap_single_bundle' and bShowSmallLoot then
  3119.                             managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3120.                         elseif v:interaction().tweak_data == 'cash_register' and bShowSmallLoot then
  3121.                             if managers.job:current_level_id() == "jewelry_store" or managers.job:current_level_id() == "ukrainian_job" then
  3122.                                 if v:position() == Vector3(1844, 665, 117.732) then
  3123.                                 else
  3124.                                     managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3125.                                 end
  3126.                             else
  3127.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3128.                             end
  3129.                         elseif v:interaction().tweak_data == 'money_small' then
  3130.                             managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3131.                         elseif v:interaction().tweak_data == 'money_wrap' then
  3132.                             if managers.job:current_level_id() == "arm_for" then
  3133.                                 if v:position().z < -1500 then
  3134.                                     --
  3135.                                 else
  3136.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3137.                                 end
  3138.                             elseif managers.job:current_level_id() == "welcome_to_the_jungle_1" then
  3139.                                 if v:position() == Vector3(9200, -4300, 100) then
  3140.                                 else
  3141.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3142.                                 end
  3143.                             elseif managers.job:current_level_id() == "family" then
  3144.                                 if v:position() == Vector3(1400, 200, 1100) then
  3145.                                 else
  3146.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3147.                                 end
  3148.                             elseif managers.job:current_level_id() == "mia_1" then
  3149.                                 if v:position() == Vector3(5400, 1400, -300) then
  3150.                                 else
  3151.                                     managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3152.                                 end
  3153.                             else
  3154.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3155.                             end
  3156.                         -- gold
  3157.                         elseif v:interaction().tweak_data == 'gold_pile' then
  3158.                             if managers.job:current_level_id() == "welcome_to_the_jungle_1" then
  3159.                                 if v:position() == Vector3(9200, -4400, 100) then
  3160.                                 else
  3161.                                     managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_gold', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  3162.                                 end
  3163.                             else
  3164.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_gold', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.red, blend_mode = "add" }  )
  3165.                             end
  3166.                         -- diamonds/jewels
  3167.                         elseif v:interaction().tweak_data == 'diamond_pickup' and bShowSmallLoot then
  3168.                             if managers.job:current_level_id() == "ukrainian_job" and v:position().z > 0 then
  3169.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_diamond', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3170.                             else
  3171.                                 managers.hud:add_waypoint( 'hudz_gold_'..k, { icon = 'interaction_diamond', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3172.                             end
  3173.                         elseif v:interaction().tweak_data == 'gen_pku_jewelry' then
  3174.                             if managers.job:current_level_id() == "ukrainian_job" and v:position().z > 0 then
  3175.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3176.                             else
  3177.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'wp_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3178.                             end
  3179.                         -- ATMS
  3180.                         elseif v:interaction().tweak_data == 'requires_ecm_jammer_atm' then
  3181.                             managers.hud:add_waypoint( 'hudz_atm_'..k, { icon = 'equipment_ecm_jammer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.blue, blend_mode = "add" }  )
  3182.                         -- safe loot
  3183.                         elseif v:interaction().tweak_data == 'safe_loot_pickup' and bShowSmallLoot then
  3184.                             if managers.job:current_level_id() == "family" then
  3185.                                 if v:position().z > 1000 then   -- Vector3(1400, 100, 1100)
  3186.                                     --
  3187.                                 else
  3188.                                     managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3189.                                 end
  3190.                             else
  3191.                                 managers.hud:add_waypoint( 'hudz_cash_'..k, { icon = 'interaction_money_wrap', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3192.                             end
  3193.                         end
  3194.                         -- train heist ammo
  3195.                         if v:interaction().tweak_data == 'take_ammo' and managers.job:current_level_id() == "arm_for" then
  3196.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_sentry', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3197.                         end
  3198.                        
  3199.                         -- BIG BANK
  3200.                         if managers.job:current_level_id() == 'big' then
  3201.                             -- big bank keys
  3202.                             if (v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'take_keys') then
  3203.                                 managers.hud:add_waypoint( 'hudz_key_'..k, { icon = 'equipment_chavez_key', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  3204.                             end
  3205.                             -- big bank server
  3206.                             if v:interaction().tweak_data == 'big_computer_server' then
  3207.                                 if _bbserv_used == false then
  3208.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_computer', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.green, blend_mode = "add" }  )
  3209.                                 end
  3210.                             end
  3211.                             -- big bank keyboards location
  3212.                             if isHost() and v:interaction().tweak_data == 'big_computer_hackable' then
  3213.                                 local big1 = tostring(managers.mission:script("default")._elements[103246]._original_on_executed[1].id)
  3214.                                 local big1 = tostring(managers.mission:script("default")._elements[103246]._values.on_executed[1].id)
  3215.                                 local stfcmpts = {
  3216.                                     ["103250"] = Vector3(2754, 1420, -923),
  3217.                                     ["103229"] = Vector3(2083, 1412, -922.772),
  3218.                                     ["103569"] = Vector3(1941, 1345, -922.772),
  3219.                                     ["103604"] = Vector3(1589, 1419, -922.772),
  3220.                                     ["103647"] = Vector3(2558, 1847, -922.772),
  3221.                                     ["103709"] = Vector3(2448.08, 1849.07, -922.772),
  3222.                                     ["103749"] = Vector3(1859.2, 1832.25, -922.772),
  3223.                                     ["103788"] = Vector3(1732, 1812, -923),
  3224.                                     ["103898"] = Vector3(1090, 1220, -522.772),
  3225.                                     ["103916"] = Vector3(1293.46, 1221.04, -522.772),
  3226.                                     ["103927"] = Vector3(1909, 1389, -522.762),
  3227.                                     ["103948"] = Vector3(1917.69, 1583.79, -522.762),
  3228.                                     ["103966"] = Vector3(2318, 1608, -522.762),
  3229.                                     ["103984"] = Vector3(2319.79, 1407.8, -522.762),
  3230.                                     ["104006"] = Vector3(2716, 1220, -522.772),
  3231.                                     ["104024"] = Vector3(2895.76, 1782.56, -522.772),
  3232.                                     ["104042"] = Vector3(2922, 1218.89, -522.772),
  3233.                                     ["104080"] = nil,
  3234.                                     ["104127"] = nil,
  3235.                                     ["104315"] = nil
  3236.                                 }
  3237.                                 if tostring(stfcmpts[big1]) ~= 'nil' then
  3238.                                     managers.hud:add_waypoint( 'hudz_Robj_'..'big', { icon = 'interaction_keyboard', distance = bShowDistance, position = stfcmpts[big1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3239.                                 end
  3240.                             else
  3241.                                 if v:interaction().tweak_data == 'big_computer_hackable' then
  3242.                                     managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'interaction_keyboard', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3243.                                 end
  3244.                             end
  3245.                         end
  3246.                         -- CAR SHOP
  3247.                         if managers.job:current_level_id() == 'cage' then
  3248.                             --security_station_keyboard
  3249.                             if (v:interaction().tweak_data == 'security_station_keyboard' or v:interaction().tweak_data == 'gage_assignment') and _comp_used == false and isHost() then
  3250.                                 local cage1 = tostring(managers.mission:script("default")._elements[104929]._original_on_executed[1].id)
  3251.                                 local cage1 = tostring(managers.mission:script("default")._elements[104929]._values.on_executed[1].id)
  3252.                                 local cmpts = {
  3253.                                     ["104797"] = Vector3(2465.98, 660.75, -149.996),
  3254.                                     ["104804"] = Vector3(2615.98, 660.75, -149.996),
  3255.                                     ["104811"] = Vector3(2890.98, 660.75, -149.996),
  3256.                                     ["104818"] = Vector3(3040.98, 660.75, -149.996),
  3257.                                     ["104826"] = Vector3(3045.98, 405.75, -149.996),
  3258.                                     ["104833"] = Vector3(2887.98, 407.75, -149.996),
  3259.                                     ["104841"] = Vector3(2615.98, 410.75, -149.996),
  3260.                                     ["104848"] = Vector3(2465.98, 407.75, -149.996),
  3261.                                     ["104857"] = Vector3(1077.98, 255.751, 250.004),
  3262.                                     ["104866"] = Vector3(924.978, 255.75, 250.004),
  3263.                                     ["104873"] = Vector3(617.978, 255.75, 250.004),
  3264.                                     ["104880"] = Vector3(468.978, 255.749, 250.004),
  3265.                                     ["104887"] = Vector3(423.024, 142.249, 250.004),
  3266.                                     ["104899"] = Vector3(590.024, 142.25, 250.004),
  3267.                                     ["104907"] = Vector3(880.024, 142.25, 250.004),
  3268.                                     ["104919"] = Vector3(1049.02, 142.251, 250.004),
  3269.                                     ["104927"] = Vector3(254.75, -1490.98, 249.503)
  3270.                                 }
  3271.                                 managers.hud:add_waypoint( 'hudz_Robj_'..'cage', { icon = 'wp_target', distance = bShowDistance, position = cmpts[cage1], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3272.                             end
  3273.                         end
  3274.                         -- HOXTON REVENGE
  3275.                         if managers.job:current_level_id() == 'hox_3' then
  3276.                             if v:interaction().tweak_data == 'gen_pku_evidence_bag' then
  3277.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_evidence', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3278.                             end
  3279.                             if v:interaction().tweak_data == 'mcm_fbi_taperecorder' then
  3280.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_talk', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3281.                             end
  3282.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard_1' then
  3283.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3284.                             end
  3285.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard_2' then
  3286.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3287.                             end
  3288.                             if v:interaction().tweak_data == 'mcm_break_planks' then
  3289.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_planks', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3290.                             end
  3291.                             if v:interaction().tweak_data == 'open_slash_close_sec_box' or v:interaction().tweak_data == 'hospital_security_cable' then
  3292.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_wirecutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3293.                             end
  3294.                             if v:interaction().tweak_data == 'invisible_interaction_open' or v:interaction().tweak_data == 'rewire_electric_box' or v:interaction().tweak_data == 'use_server_device' then
  3295.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3296.                             end
  3297.                             if v:interaction().tweak_data == 'mcm_laptop' then
  3298.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'laptop_objective', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.orange, blend_mode = "add" }  )
  3299.                             end
  3300.                             local hox3 = tostring(managers.mission:script("default")._elements[101779]._values.on_executed[1].id)
  3301.                             local phone_poles =
  3302.                             {
  3303.                                 ["101764"] = Vector3(3058.81, -103.151, -4),
  3304.                                 ["101765"] = Vector3(3040.08, 1912.44, 1141),
  3305.                                 ["101766"] = Vector3(-3563.02, 1813.98, -164.391),
  3306.                                 ["101776"] = Vector3(-3041.99, -2321.82, -23.1596),
  3307.                                 ["101780"] = Vector3(-236.471, -2545, 262.968)
  3308.                             }
  3309.                             managers.hud:add_waypoint( 'hudz_Robj_'..'hox3', { icon = 'pd2_phone', distance = bShowDistance, position = phone_poles[hox3], no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.yellow, blend_mode = "add" }  )
  3310.                         end
  3311.                         -- DRILLS
  3312.                         if v:interaction().tweak_data == 'drill' and bShowDrills then
  3313.                             managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_drill', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.white, blend_mode = "add" }  )
  3314.                         end
  3315.                         -- MELTDOWN
  3316.                         if managers.job:current_level_id() == 'shoutout_raid' then
  3317.                             if v:interaction().tweak_data == 'driving_drive' then
  3318.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ejection_seat', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3319.                             end
  3320.                             if v:interaction().tweak_data == 'gen_pku_warhead_box' then
  3321.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_lootdrop', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3322.                             end
  3323.                             if v:interaction().tweak_data == 'gen_pku_warhead' then
  3324.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'pd2_loot', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3325.                             end
  3326.                             if v:interaction().tweak_data == 'gen_pku_crowbar' then
  3327.                                 managers.hud:add_waypoint( 'hudz_Robj_'..k, { icon = 'equipment_crowbar', distance = bShowDistance, position = v:position(), no_sync = true, present_timer = 0, state = "present", radius = 260, color = Color.green, blend_mode = "add" }  )
  3328.                             end
  3329.                             if v:interaction().tweak_data == 'atm_interaction' then
  3330.                                 -- managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 260, color = Color.green, blend_mode = "add" }  )
  3331.                             end
  3332.                             -- Container waypoint..
  3333.                             if isHost() then
  3334.                                 for _, script in pairs(managers.mission:scripts()) do
  3335.                                     for id, element in pairs(script:elements()) do
  3336.                                         --if id == 132928 then element:on_executed() end
  3337.                                     end
  3338.                                 end
  3339.                             end
  3340.                         end
  3341.                         -- THE ALESSO HEIST
  3342.                         if managers.job:current_level_id() == 'arena' then
  3343.                             -- Security room
  3344.                             if v:interaction().tweak_data == 'hack_suburbia' or v:interaction().tweak_data == 'access_camera' then
  3345.                                 managers.hud:add_waypoint( 'hudz_door_'..k, { icon = 'wp_powerbutton', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3346.                             end
  3347.                             -- Doors
  3348.                             if v:interaction().tweak_data == 'pick_lock_hard_no_skill_deactivated' then
  3349.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_door', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3350.                             end
  3351.                             -- Bag shortcuts
  3352.                             if v:interaction().tweak_data == 'push_button' then
  3353.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'pd2_ladder', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 800, color = Color.orange, blend_mode = "add" }  )
  3354.                             end
  3355.                             -- Forklift
  3356.                             if v:interaction().tweak_data == 'driving_drive' then
  3357.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_ejection_seat', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3358.                             end
  3359.                             -- C4
  3360.                             if v:interaction().tweak_data == 'hold_search_c4' then
  3361.                                 managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'pd2_c4', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3362.                             end
  3363.                             -- Extinguisher
  3364.                             if v:interaction().tweak_data == 'hold_take_fire_extinguisher' then
  3365.                                 managers.hud:add_waypoint( 'hudz_fire_'..k, { icon = 'pd2_fire', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3366.                             end
  3367.                             -- Money
  3368.                             if v:interaction().tweak_data == 'money_wrap_updating' then
  3369.                                 managers.hud:add_waypoint( 'hudz_cashB_'..k, { icon = 'equipment_money_bag', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3370.                             end
  3371.                             -- Cutter
  3372.                             if v:interaction().tweak_data == 'hold_circle_cutter' then
  3373.                                 managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_cutter', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3374.                             end
  3375.                             -- Useless..
  3376.                             if v:interaction().tweak_data == 'are_turn_on_tv' or v:interaction().tweak_data == 'button_infopad' then
  3377.                                 -- managers.hud:add_waypoint( 'hudz_Wobj_'..k, { icon = 'wp_target', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3378.                             end
  3379.                             -- Vault.. useless too..
  3380.                             if v:interaction().tweak_data == 'mcm_panicroom_keycard' then
  3381.                                 -- managers.hud:add_waypoint( 'hudz_base_'..k, { icon = 'equipment_bank_manager_key', distance = bShowDistance, position = v:interaction():interact_position(), no_sync = true, present_timer = 0, state = "present", radius = 1000, color = Color.white, blend_mode = "add" }  )
  3382.                             end
  3383.                         end
  3384.  
  3385.     ------9---------
  3386.                     elseif _toggleWaypointAIO2 == 9 then   
  3387.                         --
  3388.                     end -- end _toggleWaypointAIO2
  3389.                    
  3390.                     -- THE BOMB : DOCKYARD - Save the position of the bomb
  3391.                     if (_toggleWaypointAIO2 == 0 or _toggleWaypointAIO2 > 0) and _bomb_ok == false then
  3392.                         if managers.job:current_level_id() == 'crojob2' and v:interaction().tweak_data == 'hold_pku_disassemble_cro_loot' then
  3393.                             _bomb_pos = v:position()
  3394.                             _bomb_ok = true
  3395.                         end
  3396.                     end
  3397.                 end
  3398.            
  3399.                 local i = 0
  3400.                 for id,_ in pairs( clone( managers.hud._hud.waypoints ) ) do
  3401.                     id = tostring(id)
  3402.                     if id:sub(1,5) == 'hudz_' then
  3403.                         i = i + 1
  3404.                     end    
  3405.                 end
  3406.                 if i == 0 then
  3407.                     _toggleWaypointAIO2 = _toggleWaypointAIO2 + 1
  3408.                     if _toggleWaypointAIO2 > 8 then
  3409.                         _toggleWaypointAIO2 = 0
  3410.                         -- managers.hud:show_hint( { text = "LOCATOR DISABLED" } )
  3411.                         managers.hud:present_mid_text( { text = "LOCATOR DISABLED", title = "WAYPOINT", time = 1 } )
  3412.                         Overlay:gui():destroy_workspace( _HDmsg.ws)
  3413.                         _HDmsg = nil
  3414.                     end
  3415.                     RefreshItemWaypoints()
  3416.                     return
  3417.                 end
  3418.                 RefreshMsg()
  3419.             end
  3420.         end
  3421.     end
  3422.    
  3423.     -- initialize waypoints
  3424.     RefreshItemWaypoints()
  3425.  
  3426.     --when an item is removed from the game, also refresh waypoints
  3427.     managers.interaction._remove_unit = managers.interaction._remove_unit or managers.interaction.remove_unit
  3428.     function ObjectInteractionManager:remove_unit( unit )
  3429.         local interacted = unit:interaction().tweak_data
  3430.         local result = self:_remove_unit(unit)
  3431.         local position = unit:position()
  3432.         local position2 = unit:interaction():interact_position()
  3433.  
  3434.         -- STATE 1 : PACKAGE
  3435.         if ((_toggleWaypointAIO2 == 1 or _toggleWaypointAIO2 == 8) and interacted == 'gage_assignment')
  3436.         -- STATE 2 : KEYCARD / SECURITY DOOR
  3437.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and interacted == 'pickup_keycard' )
  3438.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and interacted == 'invisible_interaction_open' )
  3439.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and managers.job:current_level_id() == 'big' and (interacted == 'invisible_interaction_open' or interacted == 'take_keys' ))
  3440.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'family' and interacted == 'numpad_keycard'))
  3441.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and (interacted == 'key' or interacted == 'key_double' or interacted == 'hold_close_keycard'))
  3442.         or ((_toggleWaypointAIO2 == 2 or _toggleWaypointAIO2 == 8) and managers.job:current_level_id() == 'roberts' and (interacted == 'open_slash_close_act' or interacted == 'grenade_briefcase'))
  3443.         -- STATE 3 : WEAPON / COKE
  3444.         or ((_toggleWaypointAIO2 == 3 or _toggleWaypointAIO2 == 8) and (interacted == 'weapon_case' or interacted == 'take_weapons' or interacted == 'gen_pku_cocaine' or interacted == 'gen_pku_cocaine_pure'))
  3445.         -- STATE 4 : PLANK
  3446.         or ((_toggleWaypointAIO2 == 4 or _toggleWaypointAIO2 == 8) and (interacted == 'stash_planks_pickup' or interacted == 'pickup_boards'))
  3447.         -- STATE 5 : CROWBAR / CRATE OPENABLE WITH CROWBAR
  3448.         or ((_toggleWaypointAIO2 == 5 or _toggleWaypointAIO2 == 8) and (interacted == 'crate_loot' or interacted == 'crate_loot_crowbar' or interacted == 'crate_loot_close' or interacted == 'gen_pku_crowbar'))
  3449.         -- STATE 6 : MIX
  3450.         or ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (interacted == 'hold_take_server' or interacted == 'stash_server_pickup' or interacted == 'hold_take_painting'
  3451.             or interacted == 'big_computer_hackable' or interacted == 'uload_database' or interacted == 'gen_pku_artifact_statue'
  3452.             or interacted == 'use_computer' or interacted == 'pickup_phone' or interacted == 'pickup_tablet'
  3453.             or interacted == 'big_computer_server' or interacted == 'sewer_manhole' or interacted == 'pickup_asset' or interacted == 'disassemble_turret'
  3454.             or interacted == 'circuit_breaker' or interacted == 'apply_thermite_paste' or interacted == 'take_confidential_folder_event'
  3455.             or interacted == 'hold_take_gas_can' or interacted == 'hlm_roll_carpet' or interacted == 'disarm_bomb'
  3456.             or interacted == 'hold_hlm_open_circuitbreaker' or interacted == 'hold_remove_cover' or interacted == 'hold_cut_cable'
  3457.             or interacted == 'c4_mission_door' or interacted == 'votingmachine2' or interacted == 'gen_pku_artifact_painting'
  3458.             or interacted == 'gen_pku_warhead_box' or interacted == 'gen_pku_warhead' or interacted == "hold_grab_goat" or (managers.job:current_level_id() == 'mad' and interacted == 'gen_pku_body')
  3459.             or interacted == 'hold_turn_off_gas' or interacted == 'hold_pku_briefcase' or interacted == 'hold_remove_hand'
  3460.         ))
  3461.         or ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (interacted == 'caustic_soda' or interacted == 'hydrogen_chloride' or interacted == 'muriatic_acid'))
  3462.         or ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'alex_2' and (interacted == 'take_confidential_folder' or interacted == 'drill')))
  3463.         or ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'welcome_to_the_jungle_1' and (interacted == 'drill')))
  3464.         -- STATE 7 : MONEY MONEY ! ;)
  3465.         or ((_toggleWaypointAIO2 == 7 or _toggleWaypointAIO2 == 8) and (interacted == 'gen_pku_jewelry' or interacted == 'money_wrap' or interacted == 'diamond_pickup' or interacted == 'money_small'
  3466.             or interacted == 'money_wrap_single_bundle' or interacted == 'cash_register' or interacted == 'gold_pile' or interacted == 'requires_ecm_jammer_atm'
  3467.             or interacted == 'invisible_interaction_open' or interacted == 'safe_loot_pickup' or interacted == 'gen_pku_artifact' or interacted == 'mus_pku_artifact'
  3468.         )) then
  3469.             RefreshItemWaypoints()
  3470.         end
  3471.        
  3472.         -- BOMB : DOCKYARD
  3473.         if managers.job:current_level_id() == 'crojob2' and interacted == 'hold_pku_disassemble_cro_loot' then
  3474.             RefreshItemWaypoints()
  3475.         end
  3476.         -- BOMB : FOREST
  3477.         if managers.job:current_level_id() == 'crojob3' then
  3478.             if interacted == 'pick_lock_easy_no_skill' or interacted == 'open_train_cargo_door' or interacted == 'hold_remove_ladder' or interacted == 'take_chainsaw' or interacted == 'use_chainsaw' then
  3479.                 RefreshItemWaypoints()
  3480.             end
  3481.         end
  3482.         -- The Diamond
  3483.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 7 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'mus' and (interacted == 'invisible_interaction_open' or interacted == 'rewire_electric_box' or interacted == 'gen_pku_artifact' or interacted == 'mus_pku_artifact' or interacted == 'gen_pku_artifact_painting' or interacted == 'hack_suburbia' or interacted == 'access_camera'))) then
  3484.             RefreshItemWaypoints()
  3485.         end
  3486.         if managers.job:current_level_id() == 'mus' and interacted == 'hack_electric_box' then
  3487.             RefreshItemWaypoints()
  3488.             _path_created = os.clock()
  3489.             managers.chat:_receive_message(1, "WARNING", "The path is currently being created. \nPlease wait few seconds before reactivating the script.", Color.orange)
  3490.             RefreshItemWaypoints()
  3491.         end
  3492.         -- BIG BANK
  3493.         if (managers.job:current_level_id() == 'big' and interacted == 'big_computer_server') and _bbserv_used == false then
  3494.             _bbserv_used = true
  3495.             RefreshItemWaypoints()
  3496.         end
  3497.         -- STATE 6 HOX 1
  3498.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'hox_1' and (interacted == 'security_station_keyboard'))) then
  3499.             RefreshItemWaypoints()
  3500.         end
  3501.         -- STATE 6 HOX 2
  3502.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'hox_2' and
  3503.             (interacted == 'firstaid_box' or interacted == 'invisible_interaction_open' or interacted == 'grenade_crate' or interacted == 'ammo_bag' or interacted == 'hold_download_keys'
  3504.             or interacted == 'invisible_interaction_gathering' or interacted == 'search_files_false' or interacted == 'invisible_interaction_searching' or interacted == 'grab_server' )))
  3505.         then
  3506.             RefreshItemWaypoints()
  3507.         end
  3508.         -- White Xmas
  3509.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'pines' and (interacted == 'hold_open_xmas_present' or interacted == 'gen_pku_cocaine_pure' or interacted == 'gen_pku_sandwich'))) then
  3510.             RefreshItemWaypoints()
  3511.         end
  3512.         -- BIG OIL DAY 2
  3513.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'welcome_to_the_jungle_2' and interacted == 'security_station_keyboard')) then
  3514.             _keyboard_used = true
  3515.             RefreshItemWaypoints()
  3516.         end
  3517.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'welcome_to_the_jungle_2' and (interacted == 'gen_pku_fusion_reactor' or interacted == 'carry_drop'))) then
  3518.             if position == engine_pos[correct_id] then
  3519.                 _engine_used = true
  3520.                 _checking_bags = true
  3521.             end
  3522.             RefreshItemWaypoints()
  3523.         end
  3524.         -- RATS 2
  3525.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'alex_2' and interacted == 'take_confidential_folder')) then
  3526.             _intel_used = true
  3527.             RefreshItemWaypoints()
  3528.         end
  3529.         -- TIARA
  3530.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'ukrainian_job' and interacted == 'tiara_pickup')) then
  3531.             _tiara_used = true
  3532.             RefreshItemWaypoints()
  3533.         end
  3534.         -- STATE 6 TRAIN HEIST
  3535.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'arm_for' and interacted == 'lance')) then
  3536.             if position == Vector3(-1750, -1200, 685) or position == Vector3(-2650, -1100, 685) then
  3537.             _drill1_used = true -- GREEN
  3538.             elseif position == Vector3(-150, -1100, 685) or position == Vector3(750, -1200, 685) then
  3539.             _drill2_used = true -- ORANGE
  3540.             elseif position == Vector3(3250, -1200, 685) or position == Vector3(2350, -1100, 685) then
  3541.             _drill3_used = true -- RED
  3542.             end
  3543.             RefreshItemWaypoints()
  3544.         end
  3545.         -- STATE 6 FRAMING FRAME DAY 3 SERVER ROOM
  3546.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'framing_frame_3' and interacted == 'security_station_keyboard')) then
  3547.             _FF3_used = true
  3548.             RefreshItemWaypoints()
  3549.         end
  3550.         -- STATE 6 ELECTION DAY 1 TRUCK
  3551.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'election_day_1' and interacted == 'hold_place_gps_tracker')) then
  3552.             _gps_used = true
  3553.             RefreshItemWaypoints()
  3554.         end
  3555.         -- STATE 6 FIRESTARTER DAY 2
  3556.         if ((_toggleWaypointAIO2 == 6 or _toggleWaypointAIO2 == 8) and (managers.job:current_level_id() == 'firestarter_2')) then
  3557.             if isHost() then
  3558.                 if interacted == 'hospital_security_cable' then
  3559.                     tabclk[1] = os.clock()
  3560.                 elseif interacted == 'open_slash_close_sec_box' then
  3561.                     tabclk[2] = os.clock()
  3562.                 end
  3563.  
  3564.                 if (tabclk[1] ~= nil and tabclk[2] ~= nil) or (tabclk[1] == nil and tabclk[2] ~= nil) then
  3565.                     if tabclk[1] == nil then tabclk[1] = 0 end -- to prevent a nil value if you want to cut the first cable
  3566.                     local test = tabclk[2] - tabclk[1]
  3567.                    
  3568.                     if test < 0.5 and test > 0 or test < 0 and test > -0.5 then
  3569.                         -- CLOSING THE BOX
  3570.                     else
  3571.                         -- CUTTING THE CABLE OR OPENING THE BOX
  3572.                         if interacted == 'hospital_security_cable'
  3573.                             and position == bo_boxes[SecBox1]
  3574.                                 then
  3575.                                     _box1_used = true
  3576.                                     RefreshItemWaypoints()
  3577.                         elseif interacted == 'hospital_security_cable'
  3578.                             and position == bo_boxes[SecBox2]
  3579.                                 then
  3580.                                     _box2_used = true
  3581.                                     RefreshItemWaypoints()
  3582.                         end
  3583.                     end
  3584.                 end
  3585.                 if not managers.groupai:state():whisper_mode() then
  3586.                     _box1_used = true
  3587.                     _box2_used = true
  3588.                     RefreshItemWaypoints()
  3589.                 end
  3590.             elseif isClient() then
  3591.                 if not managers.groupai:state():whisper_mode() then
  3592.                     _box1_used = true
  3593.                     _box2_used = true
  3594.                     RefreshItemWaypoints()
  3595.                 end
  3596.                 if interacted == 'hospital_security_cable' then
  3597.                     local vecX = position2.x
  3598.                     local vecY = position2.y
  3599.                     -- local vecZ = position2.z
  3600.                    
  3601.                     for k, v in pairs(clientBox) do
  3602.                         if clientBox[k] ~= 0 then
  3603.                             if
  3604.                                 (vecX < clientBox[k].x + 50 and vecX > clientBox[k].x - 50)
  3605.                             and
  3606.                                 (vecY < clientBox[k].y + 50 and vecY > clientBox[k].y - 50)
  3607.                             then
  3608.                                 clientBox[k] = 0
  3609.                                 clientSucceed = clientSucceed + 1
  3610.                                 RefreshItemWaypoints()
  3611.                             end
  3612.                         end
  3613.                         if clientSucceed == 2 then
  3614.                             clientBox[1] = 0
  3615.                             clientBox[2] = 0
  3616.                             clientBox[3] = 0
  3617.                             clientBox[4] = 0
  3618.                             clientBox[5] = 0
  3619.                             RefreshItemWaypoints()
  3620.                         end
  3621.                     end
  3622.                 end
  3623.             end
  3624.         end
  3625.        
  3626.         -- if ((_toggleWaypointAIO2 ~= nil) and (interacted == 'int1' or interacted == 'int2') then
  3627.             -- RefreshItemWaypoints()
  3628.         -- end
  3629.         -- CAR SHOP
  3630.         if (managers.job:current_level_id() == 'cage' and interacted == 'security_station_keyboard') then
  3631.             _comp_used = true
  3632.             RefreshItemWaypoints()
  3633.         end
  3634.         -- HOX DAY 1
  3635.         if (managers.job:current_level_id() == 'hox_1' and interacted == 'security_station_keyboard') then
  3636.             _comp_used = true
  3637.             RefreshItemWaypoints()
  3638.         end
  3639.         -- HOX REVENGE
  3640.         if (managers.job:current_level_id() == 'hox_3' and interacted == 'gen_pku_evidence_bag' or interacted == 'mcm_fbi_taperecorder'
  3641.         or interacted == 'open_slash_close_sec_box' or interacted == 'hospital_security_cable' or interacted == 'mcm_panicroom_keycard_1'
  3642.         or interacted == 'mcm_panicroom_keycard_2' or interacted == 'mcm_break_planks' or interacted == 'mcm_laptop') then
  3643.             RefreshItemWaypoints()
  3644.         end
  3645.         -- ARENA
  3646.         if interacted == 'hack_suburbia' or interacted == 'pick_lock_hard_no_skill_deactivated'
  3647.         or interacted == 'driving_drive' or interacted == 'hold_search_c4' or interacted == 'hold_take_fire_extinguisher'
  3648.         or interacted == 'money_wrap_updating' or interacted == 'hold_circle_cutter' or interacted == 'hold_search_c4'
  3649.         then
  3650.             RefreshItemWaypoints()
  3651.         end
  3652.  
  3653.         if game_state_machine:current_state_name() == "victoryscreen" or string.find(game_state_machine:current_state_name(), "victoryscreen")
  3654.         or game_state_machine:current_state_name() == "gameoverscreen" or string.find(game_state_machine:current_state_name(), "gameoverscreen") then
  3655.             _toggleWaypointAIO2 = 0
  3656.             -- Overlay:gui():destroy_workspace( _HDmsg.ws)
  3657.             -- _HDmsg = nil
  3658.             if not _HDmsg then
  3659.             else
  3660.                 _HDmsg.lbl:set_text("")
  3661.                 _HDmsg.lbl2:set_text("")
  3662.                 _HDmsg.lbl3:set_text("")
  3663.                 _HDmsg.lbl4:set_text("")
  3664.             end
  3665.         end
  3666.        
  3667.         return result
  3668.     end
  3669.  
  3670.     managers.interaction._add_unit = managers.interaction._add_unit or managers.interaction.add_unit
  3671.     function ObjectInteractionManager:add_unit( unit )
  3672.         local spawned = unit:interaction().tweak_data
  3673.         local result = self:_add_unit(unit)
  3674.         if managers.job:current_level_id() == 'roberts' and (spawned == 'pickup_keycard' or spawned == 'grenade_briefcase') then
  3675.             RefreshItemWaypoints()
  3676.         elseif (spawned == 'pickup_keycard' or spawned == 'grenade_briefcase') then
  3677.             RefreshItemWaypoints()
  3678.         end
  3679.        
  3680.         if spawned == 'gen_pku_cocaine' or spawned == 'gold_pile' or spawned == 'money_wrap'
  3681.         or spawned == 'hold_take_painting' or spawned == 'gen_pku_artifact_statue' or spawned == 'grab_server' or spawned == 'hold_take_gas_can'
  3682.         or spawned == 'hlm_roll_carpet' or spawned == 'money_wrap_single_bundle' or spawned == 'pku_barcode_opa_locka' or spawned == 'pku_barcode_brickell' or spawned == 'pku_barcode_edgewater'
  3683.         or spawned == 'caustic_soda' or spawned == 'muriatic_acid' or spawned == 'hydrogen_chloride' or spawned == 'disarm_bomb' or spawned == 'gen_pku_cocaine_pure'
  3684.         or spawned == 'diamond_pickup' or spawned == 'gen_pku_sandwich' or spawned == 'gen_pku_jewelry' or spawned == 'safe_loot_pickup' or spawned == 'votingmachine2'
  3685.         or spawned == 'hold_turn_off_gas' or spawned == 'hold_pku_briefcase' or spawned == 'hold_remove_hand'
  3686.         or spawned == 'take_confidential_folder_event'
  3687.         then
  3688.             RefreshItemWaypoints()
  3689.         end
  3690.        
  3691.         -- KEYCARD COP/CIV : REMOVE WAYPOINT OF THE UNIT WHEN KEYCARD IS DROPPED
  3692.         if spawned == 'pickup_keycard' then
  3693.             for id,_ in pairs( clone( managers.hud._hud.waypoints ) ) do
  3694.                 id = tostring(id)
  3695.                 if id:sub(1,9) == 'hudz_civ' or id:sub(1,9) == 'hudz_cop' then
  3696.                     managers.hud:remove_waypoint( id )
  3697.                 end
  3698.             end
  3699.             RefreshItemWaypoints()
  3700.         end
  3701.         -- THE BOMB : DOCKYARD
  3702.         if spawned == 'hold_pku_disassemble_cro_loot' then
  3703.             RefreshItemWaypoints()
  3704.             _bomb_used = _bomb_used + 1
  3705.         end
  3706.         if spawned == 'hold_call_captain' then
  3707.             for id,_ in pairs( clone( managers.hud._hud.waypoints ) ) do
  3708.                 id = tostring(id)
  3709.                 if id:sub(1,10) == 'hudz_uload' then
  3710.                     managers.hud:remove_waypoint( id )
  3711.                 end
  3712.             end
  3713.             _uldatabase_found = true
  3714.         end
  3715.         -- THE BOMB : FOREST
  3716.         if spawned == 'take_chainsaw' or spawned == 'use_chainsaw' then
  3717.             RefreshItemWaypoints()
  3718.         end
  3719.         -- ARENA
  3720.         if spawned == 'hold_take_fire_extinguisher' or spawned == 'hold_search_c4' then
  3721.             RefreshItemWaypoints()
  3722.         end
  3723.         return result
  3724.     end
  3725. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement