setPedSurvivesBeingOutOfWater
_SET_PED_SURVIVES_BEING_OUT_OF_WATER0x100CD221F572F6E1The 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.
setPedSurvivesBeingOutOfWater(ped: Ped, toggle: boolean): booleansetPedSurvivesBeingOutOfWater(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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