GraphicsClient

setEntityIconVisibility

SET_ENTITY_ICON_VISIBILITY0xE0E8BEECCA96BA31

The GTA V native SET_ENTITY_ICON_VISIBILITY of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setEntityIconVisibility, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_ENTITY_ICON_VISIBILITY(Entity entity, BOOL toggle)
Hash
0xE0E8BEECCA96BA31

Open in the interactive natives reference