onClientPedChoke | Multi Theft Auto: Wiki Skip to content

onClientPedChoke

Client-side
Server-side
Shared
This article needs checking:

Event is never triggered

This event is fired when a ped chokes due to the effect of a weapon such as tear gas grenades, fire extinguishers and spray cans.

Parameters

int weaponID, ped responsiblePed
  • weaponID: an int representing the ID of the weapon which caused the choking.
  • responsiblePed: the ped responsible for causing the choking, possiblly nil.

Source

element: The source of this event is the ped who is choking.

Canceling

If this event is canceled, the ped will not be choked.

Code Examples

client

This example disables choking effects from the tear gas grenades.

addEventHandler( "onClientPedChoke", getRootElement( ),
function ( )
cancelEvent( );
end
);

See Also