EntityClient

isEntityInWater

IS_ENTITY_IN_WATER0xCFB0A0D8EDD145A3

The GTA V native IS_ENTITY_IN_WATER of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityInWater, in JavaScript and in Lua.

SignatureJavaScript
isEntityInWater(entity: Entity): boolean
SignatureLua
isEntityInWater(entity: Entity): boolean

Usage

JavaScript
const result = isEntityInWater(entity);
Lua
local result = isEntityInWater(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_IN_WATER(Entity entity)
Hash
0xCFB0A0D8EDD145A3

Open in the interactive natives reference