Skip to content

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚫 szedo_nonpc

A simple and lightweight FiveM script to disable all NPCs and vehicle traffic in GTA V.
Perfect for πŸ› οΈ development, πŸŽ₯ cinematic shots, or immersive πŸ§‘β€πŸ€β€πŸ§‘ RP servers that require an empty world.


✨ Features

  • πŸ‘£ Disables all pedestrian (NPC) spawns
  • πŸš— Removes all random, parked, and driving vehicles
  • βš™οΈ Easy-to-edit config.lua
  • πŸ” Runs every frame to ensure full control
  • πŸ“¦ Zero dependencies β€” drop-in ready!

πŸ“₯ Installation

  1. πŸ“ Put the folder into your resources directory:

resources/[local]/szedo_nonpc

  1. πŸ“„ Add this line to your server.cfg:

ensure szedo_nonpc


βš™οΈ Configuration (config.lua)

Config = {}

-- 🚘 Vehicle traffic density (0.0 = none, 1.0 = normal) Config.trafficFrequency = 0.0

-- 🚢 Pedestrian (NPC) density (0.0 = none, 1.0 = normal) Config.npcFrequency = 0.0 ➑️ You can set values between 0.0 and 1.0 to fine-tune the world population.

🧠 How It Works This script uses GTA V natives to adjust density every frame:

βœ… Requirements

🧩 FiveM FXServer

🚫 No additional dependencies


πŸ“¬ Contact

Got suggestions, bugs, or ideas? Open an issue or a pull request on the GitHub repo!

About

A simple and lightweight FiveM script to disable all NPCs and vehicle traffic in GTA V. Perfect for πŸ› οΈ development, πŸŽ₯ cinematic shots, or immersive πŸ§‘β€πŸ€β€πŸ§‘ RP servers that require an empty world.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages