Garry's Mod Wiki

Player:GodEnable

  Player:GodEnable()

Description

Enables god mode on the player.

Example

Enable god mode on all players.

for _, ply in ipairs( player.GetAll() ) do ply:GodEnable() end