Player.GodEnable

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GodEnable( )
Description:
Enable GodMode on a Player.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GodEnable]Player.GodEnable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will enable godmode on you.
Used onNewerServer.png
Code
function EnableGod( ply )
	ply:GodEnable()
end
 
concommand.Add("Godenable", EnableGod)
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox