Set sandbox settings
pz_set_sandboxChange Project Zomboid sandbox settings in place, preserving comments, ordering, and untouched options. Use dotted names for raw values; unknown settings are rejected; restart required.
Instructions
Change sandbox settings in place, preserving the file's comments, ordering and every setting you don't touch. Use dotted names for nested ones ('ZombieLore.Speed'). Values are the raw game values — look them up with pz_get_sandbox first, since most are numeric enums where 1 is not 'on' but a specific option. Takes effect after a restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settings | Yes | Setting name to value, e.g. {"Zombies": 1, "ZombieLore.Speed": 2, "Map.AllowMiniMap": true}. Unknown names are rejected rather than added, because the game ignores settings it doesn't know. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |