Skip to content

onClientPlayerStealthKill

Client-side

This event is triggered when the local player stealth kills another player.

Parameters

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

Source

element: The source of this event is the player that initiated the stealth kill. (Local player only)

Canceling

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

Code Examples

client

This example disables stealth kills.

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

See Also