GraphicsClient

addEntityIcon

ADD_ENTITY_ICON0x9CD43EEE12BF4DD0

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

SignatureJavaScript
addEntityIcon(entity: Entity, icon: string): number
SignatureLua
addEntityIcon(entity: Entity, icon: string): integer

Usage

JavaScript
const result = addEntityIcon(entity, icon);
Lua
local result = addEntityIcon(entity, icon)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
iconstringstringstring

Returns

int JavaScript number, Lua integer

Notes

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

Example:

addEntityIcon(a_0, "MP_Arrow");

I tried this and nothing happened...

Reference

Namespace
Graphics GRAPHICS
In the game
int ADD_ENTITY_ICON(Entity entity, const char* icon)
Hash
0x9CD43EEE12BF4DD0

Open in the interactive natives reference