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?
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?
To delete the ped you must use SetEntityAsMissionEntity(ped.Handle, true, true) before DeleteEntity.
while (NetworkHasControlOfEntity(ped.Handle) == false)
{
NetworkRequestControlOfEntity(ped.Handle);
Wait(0);
}
SetEntityAsMissionEntity(ped.Handle, true, true);
DeleteEntity(ped.Handle);
Thx I’ll give it a try