How to disable NPC AI in GMod
Type ai_disabled 1 in the server console and every NPC stands still without thinking or attacking; ai_disabled 0 brings them back.
ai_disabled
Toggles all NPC AI off, so NPCs stand still in idle animations without thinking or attacking.
ai_disabled <0|1> Examples
ai_disabled 1 Freeze all NPCs for posing.
Values
| Value | What it does |
|---|---|
| 0Default | Off |
| 1 | On |
Arguments
0|1Required- 1 disables NPC AI.
What it does
Freezes NPC behavior for everyone, which is useful for posing NPCs or building scenes in Sandbox. NPCs resume when it is set back to 0. The NPC options in the spawn menu's Utilities tab toggle the same setting.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.
Your own
GMod server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.