Garry's Mod Wiki

Revision Difference

Player:GodEnable#565587

<function name="GodEnable" parent="Player" type="classfunc"> <description>Enables god mode on the player.</description> <realm>Server</realm> <file line="254-L262">lua/includes/extensions/player.lua</file> <file line="222-L230">lua/includes/extensions/player.lua</file> </function> <example> <description>Enable god mode on all players.</description> <code> for _, ply in ipairs( player.GetAll() ) do ply:GodEnable() end </code> </example>