# /godmodeplayer

God mode for another player. The game's help: Make a player invincible. Use: /godmodeplayer "username" -value, ex /godmodeplayer "rj" -true (could be -false)

Source page: https://zomboiddb.com/commands/godmodeplayer/

Command

`/godmodeplayer`

Also works as

`/godmodplayer`

Who can use it

gm and above

Capability

`ToggleGodModEveryone`

Single player

No, it needs a server

## What you type

`/godmodeplayer "username" [-true|-false]`

Leave out -true or -false and it switches to the other state.

## Examples

- `/godmodeplayer "rj" -true` god mode for rj

rj is the name the game's own help uses. Put your player's name in its place.

[Build this line with your own values](https://zomboiddb.com/commands/?cmd=godmodeplayer#builder)

## What the game answers

- Wrong arguments!
- User ... is now invincible.
- User ... is no longer invincible.
- User ... not found.

## Which access levels can use it

| Capability | banned | user | priority | observer | gm | moderator | admin |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `ToggleGodModEveryone` | | | | | yes | yes | yes |

These are the roles the game makes for a new server. An admin can change them in the admin panel. [What each level may do](https://zomboiddb.com/access-levels/).

## More commands like this one

[/debugplayer](https://zomboiddb.com/commands/debugplayer/) [/teleport](https://zomboiddb.com/commands/teleport/) [/teleportplayer](https://zomboiddb.com/commands/teleportplayer/) [/teleportto](https://zomboiddb.com/commands/teleportto/) [/godmode](https://zomboiddb.com/commands/godmode/) [/noclip](https://zomboiddb.com/commands/noclip/) [/invisible](https://zomboiddb.com/commands/invisible/) [/invisibleplayer](https://zomboiddb.com/commands/invisibleplayer/) [/addxp](https://zomboiddb.com/commands/addxp/)
