Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vArrayA = {24, 30, 34, 39, 51, 59, 81, 85}
- PIA = Vector3(-6636, 208, -3584)
- DesertAP = Vector3(-12200, 618, 4763)
- function DrawLines(args)
- if LocalPlayer:GetVehicle() ~= nil and Game:GetState() ~= GUIState.PDA then
- v = LocalPlayer:GetVehicle()
- if table.find(vArrayA, v:GetModelId()) ~= nil then
- if Vector3.Distance(LocalPlayer:GetPosition(), PIA) < 2000 then
- -- Panau Airport Diagonal runway
- -- Runway lines
- Render:DrawLine(Vector3(-6481.38, 208.89, -3064.57), Vector3(-5859.39, 208.89, -3685.43), Color(0, 255, 0))
- Render:DrawLine(Vector3(-5889.76, 208.89, -3715.34), Vector3(-6510.94, 208.89, -3094.17), Color(0, 255, 0))
- -- Approach lines
- Render:DrawLine(Vector3(-5905.80, 208.89, -3670.34), Vector3(-6032.96, 208.89, -3543.13), Color(255, 0, 0))
- Render:DrawLine(Vector3(-5905.80, 208.89, -3668.30), Vector3(-6031.70, 208.89, -3542.40), Color(255, 0, 0))
- -- Panau Airport E-W runway
- -- Runway lines
- Render:DrawLine(Vector3(-6956.94, 208.97, -3013.57), Vector3(-5670.86, 208.97, -3033.57), Color(0, 255, 0))
- Render:DrawLine(Vector3(-6956.94, 208.97, -2971.17), Vector3(-5670.86, 208.97, -2990.60), Color(0, 255, 0))
- -- Approach lines
- Render:DrawLine(Vector3(-5843.99, 208.97, -3010.19), Vector3(-5713.99, 208.97, -3012.10), Color(255, 0, 0))
- Render:DrawLine(Vector3(-5843.99, 208.97, -3008.70), Vector3(-5713.99, 208.97, -3010.70), Color(255, 0, 0))
- end
- if Vector3.Distance(LocalPlayer:GetPosition(), DesertAP) < 2000 then
- -- desertap1, north-facing runway 1
- -- Runway lines
- Render:DrawLine(Vector3(-12285.25, 610.82, 4798.35), Vector3(-11869.56, 610.82, 4020.39), Color(0, 255, 0))
- Render:DrawLine(Vector3(-11907.79, 610.82, 4000.28), Vector3(-12323.21, 610.82, 4777.35), Color(0, 255, 0))
- -- approach lines
- Render:DrawLine(Vector3(-11892.81, 610.82, 4059.59), Vector3(-11927.85, 610.93, 4040.57), Color(255, 0, 0))
- -- desertap1, north-facing runway 2
- -- Runway lines
- Render:DrawLine(Vector3(-11771.16, 611.09, 4073.09), Vector3(-12187.15, 610.09, 4850.25), Color(0, 255, 0))
- Render:DrawLine(Vector3(-12148.86, 611.09, 4870.72), Vector3(-11733.41, 611.09, 4093.61), Color(0, 255, 0))
- -- Approach lines
- Render:DrawLine(Vector3(-11756.13, 611.09, 4132.42), Vector3(-11790.96, 611.09, 4114.00), Color(255, 0, 0))
- -- desertap1, east-facing runway
- -- runway lines
- Render:DrawLine(Vector3(-12337.22, 611.19, 4773.81), Vector3(-11560.67, 611.22, 5189.43), Color(0, 255, 0))
- Render:DrawLine(Vector3(-11580.69, 611.20, 5227.66), Vector3(-12358.28, 611.20, 4811.94), Color(0, 255, 0))
- -- approach lines
- Render:DrawLine(Vector3(-11611.61, 611.22, 5208.95), Vector3(-11592.87, 611.22, 5173.86), Color(255, 0, 0))
- end
- end
- end
- end
- Events:Subscribe("Render", DrawLines)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement