Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507
Player Kill Command - GTA Connected

Player Kill Command

Description

This code sets the health to zero for anyone who types the command /kill.

Code

Lua, Client-Side, GTAC versions 1.0.72 and newer:

addCommandHandler('kill', function(cmd,args)
	localPlayer.health = 0
end)