Advanced NPC Guards [ESX/QB/STANDALONE]

NPC Guards Script

Upgrade your FiveM server with the NPC Guards script. This awesome tool lets you create NPC guards with custom behaviors and settings, working perfectly with QBCore, ESX, or your own framework.

Trailer

Tebex

Features

  1. Framework Integration: Works with QBCore, ESX, and custom frameworks.
  2. Custom Locations and Paths: Choose specific spots or patrol paths for your guards.
  3. Zone Protection: Guards will automatically engage players who enter designated zones and aren’t members of the gang.
  4. Car Patrols: Assign guards to patrol in vehicles along custom routes.
  5. Foot patrols: Assign guards to patrol along custom routes.
  6. Add/Remove NPCs: Easily add or remove NPC guards as needed.
  7. Add/Remove Gangs: Easily add more gangs as needed with guards.
  8. Weapon Choice: Pick the weapons your NPC guards will carry.
  9. Weapon Drop Prevention: NPC weapons aren’t dropped when they die.
  10. NPC Disappearance: NPCs disappear right after death.
  11. Respawn Cooldown: NPCs have a configurable cooldown before reappearing.
  12. Selective Aggression: Guards only attack if one of them is being killed.
  13. Target Filtering: Guards will refrain from attacking each other or members of their own gang even if their killed by them.
Code is accessible No
Subscription-based No
Lines (approximately) 600
Requirements None
Support Yes
4 Likes

Nice, but there is also a free version of this.

Where is that one?

1 Like

Update 1.1

I’ve just rolled out a new update with the following changes:

  • Zones: Guards will directly attack players who enter a gang’s zone if they are not a gang member, and will stop attacking once they leave the zone
  • Marker Debugging: If you enable Config.Debug it will show every gang’s zone for easy development
  • Code Improvements: Several minor improvements to the code

do they reapwn when they die? on set timer?

Yes, you have a config option called Config.respawnTime and you can set that to whatever time it will take for them to respawn after they die

Update 1.2

I’ve just rolled out a new update with the following changes:

  • Car Patrols: NPC guards can now patrol in vehicles along custom routes.
  • No Database Needed: The script no longer requires a database.
  • Client Syncing: All guards are now synced between clients.*
    * Had to remove this feature due to unforeseen reasons

hey i love your script but is there like a code or config that allows me to lower their accuracy and make them hostile to anyone that approaches them? i am using QBcore

looks nice, what i looking is npc guard for some person using citiizenID or jobs is well , if you doit update l will buy.

The check to see if they need to attack the player isnt encrypted so you could change it to whatever you want!

Don’t seem to be the case. me and another player go to the area and the guards are not in the same spot when they start attacking. The clients see 2 different guards.

Script is garbage, don’t even bother.

1 Like