From dffb43eebca1cfe2eb38cb92ed3f1b868efcc378 Mon Sep 17 00:00:00 2001 From: Mads Date: Wed, 8 Nov 2023 14:20:35 +0100 Subject: [PATCH 1/4] Update SetMinimapComponent.md Add more component id's, an example and make some minor adjustments. --- HUD/SetMinimapComponent.md | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/HUD/SetMinimapComponent.md b/HUD/SetMinimapComponent.md index 1c7e64335..751901ac6 100644 --- a/HUD/SetMinimapComponent.md +++ b/HUD/SetMinimapComponent.md @@ -5,24 +5,38 @@ 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: +An incomplete list of component id's: -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. +* **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 +* **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 [List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/) ## Parameters -* **componentID**: The component ID to change. -* **toggle**: True to enable the color, false to disable the effect. +* **componentID**: The component id to change. +* **toggle**: True to enable/colorize, false to disable. * **hudColor**: The hudcolor index. ## Return value +Seems to always return 1 (int) regardless of input + +## Examples +```lua +-- Enables Fort Zancudo on the map +SetMinimapComponent(15, true, 0) +``` From 0e5d6f474c4d9cf1a6ec717f06e4cf1b26632e1f Mon Sep 17 00:00:00 2001 From: Mads Date: Fri, 10 Nov 2023 01:42:09 +0100 Subject: [PATCH 2/4] 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. --- HUD/SetMinimapComponent.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HUD/SetMinimapComponent.md b/HUD/SetMinimapComponent.md index 751901ac6..a6a6656dc 100644 --- a/HUD/SetMinimapComponent.md +++ b/HUD/SetMinimapComponent.md @@ -10,7 +10,7 @@ int SET_MINIMAP_COMPONENT(int componentID, BOOL toggle, int hudColor); This native is used to colorize/toggle certain map components like the army base. -An incomplete list of component id's: +An incomplete list of component IDs: * **0** Los Santos International Airport yellow runway markers * **1** Sandy Shores Airfield yellow runway markers @@ -28,12 +28,12 @@ An incomplete list of component id's: [List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/) ## Parameters -* **componentID**: The component id to change. +* **componentID**: The component ID to change. * **toggle**: True to enable/colorize, false to disable. * **hudColor**: The hudcolor index. ## Return value -Seems to always return 1 (int) regardless of input +Hardcoded to always return 1 (int) ## Examples ```lua From 27214d77dab2eeca95e9fc79e32d2d4a7a46c2d2 Mon Sep 17 00:00:00 2001 From: Mads Date: Fri, 10 Nov 2023 01:44:46 +0100 Subject: [PATCH 3/4] Additional information Add info on componentID 9 and add information about what component IDs 6 through 14 are used for in the game. --- HUD/SetMinimapComponent.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HUD/SetMinimapComponent.md b/HUD/SetMinimapComponent.md index a6a6656dc..711ff6df0 100644 --- a/HUD/SetMinimapComponent.md +++ b/HUD/SetMinimapComponent.md @@ -10,6 +10,8 @@ int SET_MINIMAP_COMPONENT(int componentID, BOOL toggle, int hudColor); This native is used to colorize/toggle certain map components like the army base. +Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online. + An incomplete list of component IDs: * **0** Los Santos International Airport yellow runway markers @@ -18,6 +20,7 @@ An incomplete list of component IDs: * **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 From 7b53d7f3ef8a79a9f6ad10809c099264eb14b3ca Mon Sep 17 00:00:00 2001 From: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:03:57 +0100 Subject: [PATCH 4/4] Update SetMinimapComponent.md Slight corrections to the markdown, moved hud colors to parameters section. --- HUD/SetMinimapComponent.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/HUD/SetMinimapComponent.md b/HUD/SetMinimapComponent.md index 711ff6df0..93832486d 100644 --- a/HUD/SetMinimapComponent.md +++ b/HUD/SetMinimapComponent.md @@ -12,14 +12,14 @@ This native is used to colorize/toggle certain map components like the army base Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online. -An incomplete list of component IDs: - -* **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 +### An incomplete list of component IDs: + +* **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 @@ -28,12 +28,10 @@ An incomplete list of component IDs: * **14** 2 Alien Camp (Hippy Camp) circles * **15** Fort Zancudo -[List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/) - ## Parameters * **componentID**: The component ID to change. * **toggle**: True to enable/colorize, false to disable. -* **hudColor**: The hudcolor index. +* **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)