Removing specific AI

Hi, this is my first topic…

I was trying to remove the AI from my server, so I’ve used this but it’s not the thing that I want. it removes all the AI.
So I’ve used this code but it’s not working for some reason

Any help? :slightly_smiling_face:

To delete the ped you must use SetEntityAsMissionEntity(ped.Handle, true, true) before DeleteEntity.

while (NetworkHasControlOfEntity(ped.Handle) == false)
SetEntityAsMissionEntity(ped.Handle, true, true);

@M0hammaD Please mark this as the solution

Kind Regards


Thx I’ll give it a try

1 Like