Player Kill Command

From GTA Connected
Jump to navigation Jump to search

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)