EntityClient

setEntityWaterReflectionFlag

SET_ENTITY_WATER_REFLECTION_FLAG0xC34BC448DA29F5E9

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

SignatureJavaScript
setEntityWaterReflectionFlag(entity: Entity, toggle: boolean): void
SignatureLua
setEntityWaterReflectionFlag(entity: Entity, toggle: boolean)

Usage

JavaScript
setEntityWaterReflectionFlag(entity, toggle);
Lua
setEntityWaterReflectionFlag(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_WATER_REFLECTION_FLAG(Entity entity, BOOL toggle)
Hash
0xC34BC448DA29F5E9
Introduced
Game build 573 legacy numbering

Open in the interactive natives reference