[QBCore] NPC Patrol & Group System

ModCore NPC Patrol System - Dynamic NPC Movement & Patrols for FiveM

Enhance your FiveM server with ModCore NPC Patrol System, a powerful and fully customizable NPC movement script. Whether you’re setting up police patrols, military bases, security forces, or custom NPC zones, this script gives you full control over NPC movement, faction relationships, and patrol behaviors.


Features & Functionality

:white_check_mark: Multiple Patrol Types

  • :round_pushpin: Waypoint Patrols – Set NPCs to follow a specific path.
  • :dart: Random Patrols – NPCs roam freely within a defined radius.
  • :shield: Zone-Based Patrols – Keep NPCs confined to a specific area.

:white_check_mark: Configurable NPC Groups & Factions

  • Define custom groups (e.g., Police, Military, Civilians, Gangs).
  • Control how factions interact (Friendly, Neutral, Hostile).
  • NPCs respond dynamically to their assigned relationships.

:white_check_mark: Full Customization & Performance Optimized

  • Everything is configurable in config.lua – No coding required!
  • Lightweight & optimized for minimal impact on server performance.
  • Built for FiveM Lua 5.4 with Tebex Escrow support.

:white_check_mark: Admin Commands & Job Integration

  • Assign players to faction groups dynamically.
  • Supports QB-Core job-based faction assignment.
  • Customizable admin commands for managing NPC groups.

Configuration & Setup

Easily configure everything in config.lua:

:small_blue_diamond: Add NPCs → Define their model, spawn location, patrol type, and faction.
:small_blue_diamond: Set Patrol Zones → Define custom patrol boundaries (with optional height limits).
:small_blue_diamond: Customize NPC Behavior → Adjust movement settings, faction loyalty, and patrol logic.
:small_blue_diamond: Edit Relationships → Control which groups are friendly or hostile to each other.


Installation Instructions

:one: Drag & Drop the blaze_npc_pgs folder into your resources/ directory.
:two: Add to server.cfg:

ensure blaze_npc_pgs

:three: Edit config.lua to match your server’s needs.
:four: Restart your FiveM server and enjoy!


Future Updates & Expansions

Vehicle Patrols | Additional Movement Logic | Customizable NPC Interaction


Why ModCore?

:heavy_check_mark: Optimized & Lightweight – No unnecessary lag.
:heavy_check_mark: Modular & Expandable – Built for future updates & integrations.
:heavy_check_mark: Fully ConfigurableNo coding required, just tweak the config!
:heavy_check_mark: Works with Any Server Type – Perfect for RP, Military, Security, Gangs, or Law Enforcement.

Need Support? Join our Discord for installation help, feature requests, and future updates!

Buy Now & Take Full Control of NPC Patrols on Your Server!

:small_blue_diamond: Waypoint Patrols – Precision Pathing for NPCs

Create structured and predictable NPC patrol routes with waypoint-based patrols. Define specific points for NPCs to follow in a loop or sequence, ensuring realistic patrol behavior for security guards, military personnel, law enforcement, or any NPC that needs to patrol a designated path. Perfect for organized patrols, scripted events, and immersive world-building, this feature keeps your NPCs moving exactly where you want them.

:small_blue_diamond: Stationary NPCs – Perfect for Guard Posts, Vendors, and Roleplay Interactions

Need NPCs to hold their position without wandering? Easily configure stationary NPCs for guard posts, shopkeepers, quest-givers, or any other non-moving roleplay character. Whether they’re standing at a checkpoint, manning a storefront, or acting as a bouncer at a nightclub, these NPCs stay exactly where you place them—ensuring a consistent and immersive environment for your players.

:small_blue_diamond: NPC Patrol System – Radius or Zone-Based Movement

Bring life to your world with dynamic NPC patrols! Choose between random patrols within a defined radius for unpredictable movement or structured patrol zones to keep NPCs within designated areas. Whether it’s security guards patrolling a base, gang members watching their turf, or police monitoring high-crime areas, this system ensures realistic and immersive NPC behavior tailored to your server.

:small_blue_diamond: Fully Customizable NPCs – Choose Any Ped Model & Weapon Loadout

Take full control over your NPCs with complete customization! Use any ped model available in GTA V and equip them with a weapon of your choice—from sidearms to heavy artillery. Easily configure each NPC’s appearance, weapon loadout, and behavior directly in the config file, ensuring they fit seamlessly into your server’s world.

:small_blue_diamond: Dynamic Faction System – Fully Customizable NPC Group Integration

Effortlessly assign jobs and gangs to predefined NPC groups, ensuring immersive role-based interactions across your server. Administrators can also manually assign players to specific NPC factions, allowing for real-time customization of relationships, alliances, and rivalries. Whether it’s law enforcement, organized crime, or custom factions, this system seamlessly adapts to your server’s unique needs.




SHOWCASE

Buy

Mod Core Discord

|-------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 1,157 |
| Requirements | QBCore |
| Support | Yes |