Jump to content

[C#] How do I disable planes?


Recommended Posts

  • 2 weeks later...

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.

Link to comment
https://gtaforums.com/topic/876424-c-how-do-i-disable-planes/#findComment-1069324693
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.