Garry's Mod Wiki

Revision Difference

Player:GodDisable#527128

<function name="GodDisable" parent="Player" type="classfunc"> <description>Disables god mode on the player.</description> <realm>Server</realm> <file line="261-L269">lua/includes/extensions/player.lua</file> </function> <example> <description>Disables god mode on all players.</description> <code> for i, v in ipairs(player.GetAll()) do v:GodDisable() for i, ply in ipairs( player.GetAll() ) do ply:GodDisable() end </code> </example>