Skip to content

ihaith4m/evo_population

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evo Population 🏙️

License Optimized Discord

Evo Population is a specific resource designed to solve the "GTA V Density Problem" on high-population servers. Instead of simply turning traffic off, it intelligently manages where and how entities exist to maximize performance without killing immersion.

Need Support? Join our Discord: https://discord.gg/CjZ3WXsrrn

🚀 Professional Services

Looking for unique, non-traditional scripts or full server management? We offer advanced development and management services tailored to your needs. Contact us on Discord to discuss your vision.


📖 Feature Scenarios

1. Smart Adaptive Density 🧠

The Scenario: It's Friday night. Your server hits 150+ players. In a standard setup, GTA V keeps spawning hundreds of AI cars, consuming network bandwidth and lowering FPS for everyone. ** The Solution:** Evo Population constantly monitors the player count. As the slots fill up, it smoothly reducing the background density.

  • 0 Players: 100% Traffic (Alive City).
  • 50 Players: 80% Traffic.
  • 100+ Players: 20% Traffic (Performance Mode).
  • Result: Players keep high FPS during peak hours without noticing the script working.

2. Precision Zone Control 📍

The Scenario: You are hosting a car meet at Legion Square, or there is an active police situation at Mission Row. Random AI drivers keep crashing into players, ruining the Roleplay. The Solution: You define a "Zone" in the config (Box, Sphere, or Radius). Inside this zone, you set the density multiplier to 0.0.

  • Inside the Zone: The area becomes completely clear of AI traffic instantly.
  • Outside the Zone: Traffic flows normally.
  • Result: Clean, distraction-free areas for events, hospitals, and specialized RP zones.

3. Anti-Collision & Ghosting 🏎️

The Scenario: A player is driving a supercar at 180 MPH on the highway. Suddenly, an NPC lane-switches in front of them. The crash sync lag causes the player to fly off the map, ruining the experience. The Solution: The script calculates the player's speed in real-time. If they are driving dangerously fast (> 120km/h), it creates a "Safety Tunnel" ahead of them.

  • Any NPC vehicle in this tunnel gets "Ghosted" (Transparent & No Collision).
  • The player drives through the NPC safely.
  • Result: High-speed chases and racing are smoother and less frustrating.

4. Smart Cleanup (Garbage Collector) 🧹

The Scenario: A cheater spawns 50 peds, or a desync leaves a "ghost car" sitting in the middle of the road that nobody can enter or delete. The Solution: Evo Population runs a silent, low-cost scan every few seconds.

  • It checks for entities that are "detached" from the game logic (glitched, abandoned, or frozen).
  • It surgically deletes them solely if no player is watching/using them.
  • Result: The server stays clean over uptimes of 12+ hours.

⚡ Technical Performance

  • 0.00ms Idle CPU: The script sleeps when you are standing still.
  • Spatial Grids: Uses ox_lib spatial grids (lib.getNearbyVehicles) instead of slow native loops (GetGamePool).
  • No "Pop-corn" Effect: Traffic doesn't vanish instantly in front of your face; logic is applied carefully based on distance.

📥 Installation

  1. Download the latest release.
  2. Rename the folder to evo_population.
  3. Place it in your resources directory.
  4. Add ensure evo_population to your server.cfg (ensure it starts after ox_lib).

💻 For Developers

You can control density from your own scripts (e.g., Robbery scripts, Racing scripts).

-- Force traffic to 0 during a Heist
exports.evo_population:changeDensity('FleecaHeist', 0.0)

-- Reset it back to normal when done
exports.evo_population:changeDensity('FleecaHeist', -1.0)

🛡️ License

This project is licensed under the MIT License. Copyright (c) 2026 Evolve 么.

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages