GraphicsClient

disableInWaterPtfx

DISABLE_IN_WATER_PTFX0xCFD16F0DB5A3535C

The GTA V native DISABLE_IN_WATER_PTFX of the GRAPHICS namespace, as LS:MP client scripts call it: the global function disableInWaterPtfx, in JavaScript and in Lua.

SignatureJavaScript
disableInWaterPtfx(toggle: boolean): void
SignatureLua
disableInWaterPtfx(toggle: boolean)

Usage

JavaScript
disableInWaterPtfx(toggle);
Lua
disableInWaterPtfx(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void DISABLE_IN_WATER_PTFX(BOOL toggle)
Hash
0xCFD16F0DB5A3535C
Introduced
Game build 2060 legacy numbering

Open in the interactive natives reference