OnClientPlayerStealthKill

From Multi Theft Auto: Wiki

Jump to: navigation, 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. (Local player only)

Cancel effect

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

Example

This example disables stealth kills.

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

See Also

Client player events

  • onClientPlayerStealthKill
FROM VERSION 1.3.1 ONWARDS

Client event functions

FROM VERSION 1.4 r4973 ONWARDS