OnClientPlayerStealthKill

From Multi Theft Auto: Wiki
Revision as of 17:02, 19 May 2011 by Arran Fortuna (talk | contribs) (Adding some indentation to Castillo's basic example.)
Jump to navigation Jump to search

This event is triggered when a player stealth kills another player.

Parameters

element targetPlayer
  • targetPlayer: The player or ped that is being stealth killed.

Source

The source of this event is the player that initiated the stealth kill.

Cancel effect

If this event is canceled, then the stealth kill is aborted.

Example

This example disables stealth kills.

addEventHandler("onClientPlayerStealthKill",getLocalPlayer(),
    function (targetPlayer)
    cancelEvent()
end)

See Also

Client player events


Client event functions