Skip to content

Commit

Permalink
Update SetMinimapComponent.md (#932)
Browse files Browse the repository at this point in the history
* Update SetMinimapComponent.md

Add more component id's, an example and make some minor adjustments.

* Accommodate review requests

Reverted back to ID instead of id, and correct the return value to state that it is hardcoded to return 1.

I'm going to leave the Any to int change as I think it would be better to specify it than not (However, I do see your point), if you desire it to be changed I'll do so.

* Additional information

Add info on component ID 9 and add information about what component IDs 6 through 14 are used for in the game.

* Update SetMinimapComponent.md

Slight corrections to the markdown, moved hud colors to parameters section.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
MadsLeander and 4mmonium authored Nov 20, 2023
1 parent 9bf46ca commit 9ce8cd9
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions HUD/SetMinimapComponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,39 @@ ns: HUD

```c
// 0x75A9A10948D1DEA6 0x419DCDC4
Any SET_MINIMAP_COMPONENT(int componentID, BOOL toggle, int hudColor);
int SET_MINIMAP_COMPONENT(int componentID, BOOL toggle, int hudColor);
```
This native is used to colorize certain map components like the army base at the top of the map.
This native is used to colorize/toggle certain map components like the army base.
An incomplete list of components ID:
Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online.
0: Los Santos' air port yellow lift-off markers.
1: Sandy Shore's air port yellow lift-off markers.
2: Trevor's air port yellow lift-off markers.
6: Vespucci Beach lifeguard building.
15: Army base.
### An incomplete list of component IDs:
[List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/)
* **0**: Los Santos International Airport yellow runway markers
* **1**: Sandy Shores Airfield yellow runway markers
* **2**: McKenzie Field yellow runway markers
* **6**: Vespucci Beach lifeguard building
* **7**: Top level zone of Alien Camp (Hippy Camp)
* **8**: Paleto Bay fire station drill tower
* **9** Land Act Dam tower
* **10** Pala Springs Aerial Tramway
* **11** Galileo Observatory power unit
* **12** Small zone (empty "interior") near Central Los Santos Medical Center
* **13** Richman Mansion grotto
* **14** 2 Alien Camp (Hippy Camp) circles
* **15** Fort Zancudo
## Parameters
* **componentID**: The component ID to change.
* **toggle**: True to enable the color, false to disable the effect.
* **hudColor**: The hudcolor index.
* **toggle**: True to enable/colorize, false to disable.
* **hudColor**: The hudcolor index, the list of hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/).
## Return value
Hardcoded to always return 1 (int)
## Examples
```lua
-- Enables Fort Zancudo on the map
SetMinimapComponent(15, true, 0)
```

0 comments on commit 9ce8cd9

Please sign in to comment.