PedClientNot in this build

setPedSurvivesBeingOutOfWater

_SET_PED_SURVIVES_BEING_OUT_OF_WATER0x100CD221F572F6E1

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

SignatureJavaScript
setPedSurvivesBeingOutOfWater(ped: Ped, toggle: boolean): boolean
SignatureLua
setPedSurvivesBeingOutOfWater(ped: Ped, toggle: boolean): boolean
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = setPedSurvivesBeingOutOfWater(ped, toggle);
Lua
local result = setPedSurvivesBeingOutOfWater(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL _SET_PED_SURVIVES_BEING_OUT_OF_WATER(Ped ped, BOOL toggle)
Hash
0x100CD221F572F6E1
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference