PedClient

setPedDiesInstantlyInWater

SET_PED_DIES_INSTANTLY_IN_WATER0xEEB64139BA29A7CF

The GTA V native SET_PED_DIES_INSTANTLY_IN_WATER of the PED namespace, as LS:MP client scripts call it: the global function setPedDiesInstantlyInWater, in JavaScript and in Lua.

SignatureJavaScript
setPedDiesInstantlyInWater(ped: Ped, toggle: boolean): void
SignatureLua
setPedDiesInstantlyInWater(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedDiesInstantlyInWater(ped, toggle);
Lua
setPedDiesInstantlyInWater(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_DIES_INSTANTLY_IN_WATER(Ped ped, BOOL toggle)
Hash
0xEEB64139BA29A7CF

Open in the interactive natives reference