Make Npc despawn when you leave the area

I need a help to create a function that spawn NPC when you enter (example) in Vanilla Unicorn or in a NightClub, but then despawn them when you leave the place.

Im using EsxNpc peds but i get alot of crashes for npc pool dump.

Please help me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.