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.
- π£ 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!
- π Put the folder into your
resourcesdirectory:
resources/[local]/szedo_nonpc
- π Add this line to your
server.cfg:
ensure szedo_nonpc
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:
π§© FiveM FXServer
π« No additional dependencies
Got suggestions, bugs, or ideas? Open an issue or a pull request on the GitHub repo!