PJ-npcspawn | Ultimate NPC Management System
Elevate your server's immersion with pj-npcspawn, a powerful and highly optimized NPC management system for QBCore. Whether you need shopkeepers, quest givers, or just active citizens, this script provides a seamless way to create and manage persistent NPCs with a beautiful UI.
✨ Key Features
Interactive Admin UI: Manage everything through a sleek, user-friendly NUI menu. Spawn, delete, and configure NPCs in real-time.
Full Persistence: All NPCs are saved to the database. They stay exactly where you put them, even after server restarts.
Outfit Integration: Easily apply any outfit from your player_outfits table. Support for masks, hats, bags, and all clothing components.
Dynamic 3D Labels: Eye-catching floating labels with:
- Customizable Icons: Choose from a library of FontAwesome icons (Star, Shop, Gun, etc.).
-
Theme Colors: Match your server’s aesthetic with custom hex colors for each NPC.
-
Distance Scaling: Labels smoothly scale and fade based on player proximity.
-
Animations: Set NPCs to play specific animation sequences to make your world feel alive.
-
Roaming Mode: Toggle between stationary NPCs or NPCs that wander around their spawn area.
-
High Performance:
-
Distance Culling: NPCs only spawn when players are nearby.
-
Optimized Loops: Built with performance in mind to ensure 0.00ms idle usage.
-
-
Interaction Frameworks: Native support for both qb-target and ox_target.
-
Custom Triggers: Configure NPCs to trigger:
-
Client Events
-
Server Events
-
Console Commands
-
Technical Requirements
Framework: QBCore
-
Database: oxmysql
-
Dependencies:
qb-core,oxmysql -
Targets (Optional):
qb-targetorox_target
Easy Setup
-
Drag and drop
pj-npcspawninto your resources folder. -
Import the provided
install.sql into your database.
-
Configure your permissions and default settings in
config.lua.
-
Add
ensure pj-npcspawnto yourserver.cfg. -
Use
/dummy menuin-game (Admin only) to start creating!