StreamingClient

getGlobalWaterFile

GET_GLOBAL_WATER_FILE0xF741BD853611592D

The GTA V native GET_GLOBAL_WATER_FILE of the STREAMING namespace, as LS:MP client scripts call it: the global function getGlobalWaterFile, in JavaScript and in Lua.

SignatureJavaScript
getGlobalWaterFile(): number
SignatureLua
getGlobalWaterFile(): integer

Usage

JavaScript
const result = getGlobalWaterFile();
Lua
local result = getGlobalWaterFile()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Streaming STREAMING
In the game
int GET_GLOBAL_WATER_FILE()
Hash
0xF741BD853611592D
Introduced
Game build 2189 legacy numbering
Formerly
_GET_GLOBAL_WATER_TYPE

Open in the interactive natives reference