setEntityVisible
SET_ENTITY_VISIBLE0xEA1C610A04DB6BBBThe 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.
setEntityVisible(entity: Entity, toggle: boolean, p2: boolean): voidsetEntityVisible(entity: Entity, toggle: boolean, p2: boolean)Usage
JavaScript
setEntityVisible(entity, toggle, p2);Lua
setEntityVisible(entity, toggle, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
toggle | BOOL | boolean | boolean |
p2 | BOOL | boolean | boolean |
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