Advertisement
LordNoobIV

cLights

Apr 11th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.79 KB | None | 0 0
  1. vArrayA = {24, 30, 34, 39, 51, 59, 81, 85}
  2.  
  3. PIA = Vector3(-6636, 208, -3584)
  4. DesertAP = Vector3(-12200, 618, 4763)
  5.  
  6. function DrawLines(args)
  7.     if LocalPlayer:GetVehicle() ~= nil and Game:GetState() ~= GUIState.PDA then
  8.         v = LocalPlayer:GetVehicle()
  9.         if table.find(vArrayA, v:GetModelId()) ~= nil then
  10.             if Vector3.Distance(LocalPlayer:GetPosition(), PIA) < 2000 then
  11.                 -- Panau Airport Diagonal runway
  12.                 -- Runway lines
  13.                 Render:DrawLine(Vector3(-6481.38, 208.89, -3064.57), Vector3(-5859.39, 208.89, -3685.43), Color(0, 255, 0))
  14.                 Render:DrawLine(Vector3(-5889.76, 208.89, -3715.34), Vector3(-6510.94, 208.89, -3094.17), Color(0, 255, 0))
  15.                 -- Approach lines
  16.                 Render:DrawLine(Vector3(-5905.80, 208.89, -3670.34), Vector3(-6032.96, 208.89, -3543.13), Color(255, 0, 0))
  17.                 Render:DrawLine(Vector3(-5905.80, 208.89, -3668.30), Vector3(-6031.70, 208.89, -3542.40), Color(255, 0, 0))
  18.                 -- Panau Airport E-W runway
  19.                 -- Runway lines
  20.                 Render:DrawLine(Vector3(-6956.94, 208.97, -3013.57), Vector3(-5670.86, 208.97, -3033.57), Color(0, 255, 0))
  21.                 Render:DrawLine(Vector3(-6956.94, 208.97, -2971.17), Vector3(-5670.86, 208.97, -2990.60), Color(0, 255, 0))
  22.                 -- Approach lines
  23.                 Render:DrawLine(Vector3(-5843.99, 208.97, -3010.19), Vector3(-5713.99, 208.97, -3012.10), Color(255, 0, 0))
  24.                 Render:DrawLine(Vector3(-5843.99, 208.97, -3008.70), Vector3(-5713.99, 208.97, -3010.70), Color(255, 0, 0))
  25.             end
  26.  
  27.             if Vector3.Distance(LocalPlayer:GetPosition(), DesertAP) < 2000 then
  28.                 -- desertap1, north-facing runway 1
  29.                 -- Runway lines
  30.                 Render:DrawLine(Vector3(-12285.25, 610.82, 4798.35), Vector3(-11869.56, 610.82, 4020.39), Color(0, 255, 0))
  31.                 Render:DrawLine(Vector3(-11907.79, 610.82, 4000.28), Vector3(-12323.21, 610.82, 4777.35), Color(0, 255, 0))
  32.                 -- approach lines
  33.                 Render:DrawLine(Vector3(-11892.81, 610.82, 4059.59), Vector3(-11927.85, 610.93, 4040.57), Color(255, 0, 0))
  34.                 -- desertap1, north-facing runway 2
  35.                 -- Runway lines
  36.                 Render:DrawLine(Vector3(-11771.16, 611.09, 4073.09), Vector3(-12187.15, 610.09, 4850.25), Color(0, 255, 0))
  37.                 Render:DrawLine(Vector3(-12148.86, 611.09, 4870.72), Vector3(-11733.41, 611.09, 4093.61), Color(0, 255, 0))
  38.                 -- Approach lines
  39.                 Render:DrawLine(Vector3(-11756.13, 611.09, 4132.42), Vector3(-11790.96, 611.09, 4114.00), Color(255, 0, 0))
  40.                 -- desertap1, east-facing runway
  41.                 -- runway lines
  42.                 Render:DrawLine(Vector3(-12337.22, 611.19, 4773.81), Vector3(-11560.67, 611.22, 5189.43), Color(0, 255, 0))
  43.                 Render:DrawLine(Vector3(-11580.69, 611.20, 5227.66), Vector3(-12358.28, 611.20, 4811.94), Color(0, 255, 0))
  44.                 -- approach lines
  45.                 Render:DrawLine(Vector3(-11611.61, 611.22, 5208.95), Vector3(-11592.87, 611.22, 5173.86), Color(255, 0, 0))
  46.             end
  47.         end
  48.     end
  49. end
  50.  
  51. Events:Subscribe("Render", DrawLines)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement