addEntityIcon
ADD_ENTITY_ICON0x9CD43EEE12BF4DD0The 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.
addEntityIcon(entity: Entity, icon: string): numberaddEntityIcon(entity: Entity, icon: string): integerUsage
JavaScript
const result = addEntityIcon(entity, icon);Lua
local result = addEntityIcon(entity, icon)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
icon | string | string | string |
Returns
int JavaScript number, Lua integerNotes
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