SKP_NPCs - Simple Proximity NPC Spawner
A lightweight, performance-focused NPC placement system for RedM that does one thing perfectly: spawns NPCs when players approach and despawns them when players leave. This only ensures placeable NPCs are there when you want them to be. Does nothing else. I made this one because I had issues with some scripts not populating all the NPCs all the time. The only job for this is NPCs. No menus or interactions...Just NPCs
Key Features
-
Proximity-Based Spawning - NPCs only exist when players are nearby (configurable radius per NPC)
-
Performance Optimized - Dynamic sleep cycles and efficient distance checks
-
Zero Interaction - Pure placement system with no prompts, targeting, or shop systems
-
Safety Features
-
Model validation before spawning
-
20-second load timeout protection
-
Automatic cleanup on resource stop
-
-
Fully Configured NPCs
-
Invincible and frozen in place
-
Cannot ragdoll or be damaged
-
Ignores all events
-
Optional ground placement with
PlaceEntityOnGroundProperly -
Random outfit variations applied automatically
-
Perfect For
-
Populating towns and cities
-
Adding ambient life to your server
-
Creating static NPCs without complex interaction systems
-
Replacing heavy NPC systems with a lightweight alternative
Configuration
Simple config structure - add unlimited NPCs with just a few lines:
lua
{
npcmodel = 'U_M_M_NbxGeneralStoreOwner_01',
coords = {x=-324.48, y=803.58, z=117.00, h=291.75, r=20},
placeOnGround = false,
}
Requirements
-
RedM server
-
VORP Core
Installation
Drag and drop into your resources folder, ensure in server.cfg, and restart. No database setup required.
Dev Server: https://discord.gg/j6EkxwHkVS