EntityClient

setEntityVisible

SET_ENTITY_VISIBLE0xEA1C610A04DB6BBB

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

SignatureJavaScript
setEntityVisible(entity: Entity, toggle: boolean, p2: boolean): void
SignatureLua
setEntityVisible(entity: Entity, toggle: boolean, p2: boolean)

Usage

JavaScript
setEntityVisible(entity, toggle, p2);
Lua
setEntityVisible(entity, toggle, p2)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean
p2BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p2 is always 0.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_VISIBLE(Entity entity, BOOL toggle, BOOL p2)
Hash
0xEA1C610A04DB6BBB

Open in the interactive natives reference