Jump to content

How to delete very ped in the map without a loop?


Recommended Posts

At the moment I have this but it's freezing the game

Ped[] totalPeds = World.GetAllPeds();foreach(Ped currentPed in totalPeds){    currentPed.Delete()}

also is there a way to spawn them again?

 

every*

Edited by Noox
Link to comment
https://gtaforums.com/topic/718360-how-to-delete-very-ped-in-the-map-without-a-loop/
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.