Garry's Mod Wiki

Revision Difference

Player:GodEnable#512692

<function name="GodEnable" parent="Player" type="classfunc">⤶ <description>Enables god mode on the player.</description>⤶ <realm>Server</realm>⤶ <file line="251-L259">lua/includes/extensions/player.lua</file>⤶ </function>⤶ ⤶ <example>⤶ <description>Enable god mode on all players</description>⤶ <code>⤶ for k, v in pairs(player.GetAll()) do⤶ v:GodEnable()⤶ end⤶ </code>⤶ ⤶ </example>