Cheaters creating entities as poptype 5

so recently a cheater mogged me on a discord call by showing how he could spawn vehicles/peds regardless of the anticheat, which doesnt add checks on poptype 5. because poptype 5 entities are npcs, but some how he could spawn vehicles/peds as poptype 5 and my anticheat couldnt do something, how can i handle that without fully removing npcs from my fivem server?

Instead of using your “anticheat” how about using EntityLockdown ?

but i still want to have npcs in my server.

You can still have AI population (NPCs) with entitylockdown enabled, consult the documentation. Be aware though that most 3rd-party scripts do not account for having entitylockdown, so you may need to make changes yourself if you run into any issues.

but thats where the problem, cheaters spawn entities AS AI POPULATION.
with entitylockdown on relaxed, some cheaters can still create vehicles/peds and mask it by like creating poptype 5 / ai popultion.