Bring life, logic, and immersion to your RedM server with CrowdSense AI -
Dynamic Ambient & Ped Behavior System , the ultimate system for ambient ped control, relationship behavior, and location-based spawn management.
From hostile NPC towns at night to animal-free zones during events — this modular system gives you full control over how the world around your players behaves.
📄 Docs: https://docs.dietrich-development.com/redm/scripts/ambientPedManager
✨ Features:
Dynamic ped relationship system (group-to-group, group-to-player)
Custom conditions using Lua functions (time, job, weather, etc.)
Persistent cop hostility logic (loop-synced when needed)
Area-based ambient spawn rate adjustments
Volume restrictions (allow/block NPC types like lawmen, birds, animals, townfolk, etc.)
Localized model overrides for NPC appearance [BETA]
Debug mode and clean config structure for easy tuning
Command-based NPC restriction
Allow players (e.g., saloon owners, event managers) to clear areas using:/restrictnpc <radius>– Peds will leave the area naturally

🛠️ Customization:
Add or remove conditional rules directly in
config.luaReplace any ped model within a zone while keeping animations intact
Define behavior per radius or per volume (box or sphere)
Set different spawn frequencies per area (for example, disable traffic in events)
Supports both global and per-location configurations
💡 Use Cases:
Make Van Horn or Thieves Landing naturally hostile after sunset
"Fun Mode": Make all Cops hostile against Civilians
Replace town NPCs with lawmen for martial law RP scenarios
Block dangerous animals from interfering in PvE events
Disable ambient NPCs inside saloons or police offices
Create immersive hostile/friendly factions with conditional loyalty
Optimize performance by reducing traffic or ambient peds in remote areas

📦 What’s Included:
Full client + server implementation
Volume and density logic modules
Conditional relationship engine
Model replacement logic
Clean and modular
config.luaDebug logging and customization ready
Setup & usage documentation
🧠 Framework Support:
Works with any RedM framework – VORP, RSG, RedEM, or custom!
📧 Looking for the open-source version or commercial license?
Get in touch at: info@dietrich-development.com