sollaholla Posted December 21, 2016 Share Posted December 21, 2016 (edited) Is it possible to disable planes from flying into los santos? Edited December 21, 2016 by sollaholla Link to comment https://gtaforums.com/topic/876424-c-how-do-i-disable-planes/ Share on other sites More sharing options...
sollaholla Posted January 1, 2017 Author Share Posted January 1, 2017 (edited) bump EDIT: Nvm I'm stupid, I figured it out. Edited January 1, 2017 by sollaholla Link to comment https://gtaforums.com/topic/876424-c-how-do-i-disable-planes/#findComment-1069322649 Share on other sites More sharing options...
ikt Posted January 2, 2017 Share Posted January 2, 2017 Posting the solution would be good for the next person searching for this exact term Link to comment https://gtaforums.com/topic/876424-c-how-do-i-disable-planes/#findComment-1069323917 Share on other sites More sharing options...
sollaholla Posted January 2, 2017 Author Share Posted January 2, 2017 Posting the solution would be good for the next person searching for this exact term If you're using SHVDN try: var allVehicles = World.GetAllVehicles();var planes = Array.FindAll(allVehicles, v => v.ClassType == VehicleClass.Planes);foreach (var plane in planes){ if (!plane.Exists()) continue; plane.Delete();} Sorry, I always do that on forums. ikt 1 Link to comment https://gtaforums.com/topic/876424-c-how-do-i-disable-planes/#findComment-1069324693 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now