setMinimapComponent
SET_MINIMAP_COMPONENT0x75A9A10948D1DEA6The GTA V native SET_MINIMAP_COMPONENT of the HUD namespace, as LS:MP client scripts call it: the global function setMinimapComponent, in JavaScript and in Lua.
setMinimapComponent(
componentId: number,
toggle: boolean,
overrideColor: number
): booleansetMinimapComponent(
componentId: integer,
toggle: boolean,
overrideColor: integer
): booleanUsage
JavaScript
const result = setMinimapComponent(componentId, toggle, overrideColor);Lua
local result = setMinimapComponent(componentId, toggle, overrideColor)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentId | int | number | integer |
toggle | BOOL | boolean | boolean |
overrideColor | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native is used to colorize certain map components like the army base at the top of the map.
p2 appears to be always -1. If p2 is -1 then native wouldn't change the color.
Reference
- Namespace
- HUD HUD
- In the game
BOOL SET_MINIMAP_COMPONENT(int componentId, BOOL toggle, int overrideColor)- Hash
0x75A9A10948D1DEA6