KRUIGER LABSInitializing experience
KRUIGERLABS
← All projects

Free Project

KruigerNPC

A simple standalone FiveM script that allows authorized staff to enable or disable NPCs and ambient traffic server-wide using /togglenpc.

LuaUpdated Sep 23, 2026
KruigerNPC preview

Project documentation

KruigerNPC

KruigerNoNPC

A simple standalone FiveM resource that allows authorized staff to enable or disable ambient NPCs and NPC traffic server-wide using /togglenpc.

Features

  • Server-wide /togglenpc command
  • ACE permission protected
  • Disables ambient pedestrians
  • Disables NPC-driven traffic
  • Disables parked ambient vehicle density
  • Synchronized state for all players
  • New players receive the current state automatically
  • Does not delete player peds or player vehicles
  • Standalone
  • No framework required
  • No dependencies

Installation

  1. Download KruigerNoNPC.
  2. Place KruigerNoNPC in your server's resources folder.
  3. Add the following to server.cfg:

ensure KruigerNoNPC

  1. Grant the toggle permission to the appropriate ACE group:

add_ace group.admin kruiger.npc.toggle allow

  1. Restart the server.

Usage

Run:

/togglenpc

Only players with kruiger.npc.toggle can use the command.

The command switches NPCs between enabled and disabled for the entire server.

Configuration

Edit config.lua:

Config.Command = 'togglenpc'
Config.AcePermission = 'kruiger.npc.toggle'
Config.DefaultDisabled = true

ACE Example

add_ace group.admin kruiger.npc.toggle allow

If you use a Discord-to-ACE permission resource, grant kruiger.npc.toggle through that resource's ACE setup.

Author

KruigerLabs

License

Licensed under the Kruiger Labs Community License v1.0. You may use and privately modify this resource for your own FiveM server, but redistribution, reuploading, resale, sublicensing, and claiming the work as your own are prohibited. See the LICENSE file for the complete terms.

📚 Documentation

For complete installation, configuration, commands, permissions, usage, and troubleshooting, see the official Kruiger Labs documentation.

📖 Full Documentation:
https://kruigerlabs.xyz/docs/free-scripts/kruigernpc

📚 Documentation Center:
https://kruigerlabs.xyz/docs/

❓ FAQ:
https://kruigerlabs.xyz/docs/faq

For the most up-to-date setup instructions, always refer to the Kruiger Labs Documentation Center.