Get and or configure minimap data

Hi,

I’m trying to achieve a ( in my opinion ) pretty simple feat. I have no concrete ‘how to fix X’ question. I’m trying to wrap my head around the concepts and learn to use the natives that are being exposed.
From the default FiveM state I want to disable the armour and health bar. However I also notice that when I am able to achieve this using the script below, the edges are fuzzy. So this made me dive into the API’s that are being exposed to manipulate the map. I ended up around here

which references the existance of a common:/data/ui/frontend.xml file which I assume would be served from somewhere

But I cannot seem to find the frontend.xml.

Of course I also found the snippet described in
https://cookbook.fivem.net/2019/08/12/useful-snippet-getting-the-top-left-of-the-minimap-in-screen-coordinates/
Where I can see the default values, which again makes me wonder. What is the definition of those. the scale and posx don’t seem to ring a bell in my head.

Can anyone give me some more context to the values given, and would someone know how the frontend.xml is magically built

I just started off and am trying to build my first couple of resources so please bare with me :wink:

Resources:

  • Disable Armor / Health
Citizen.CreateThread(
  function()
    local minimap = RequestScaleformMovie("minimap")
    while not HasScaleformMovieLoaded(minimap) do
      Wait(0)
    end
    
    SetRadarBigmapEnabled(true, false)
    Wait(0)
    SetRadarBigmapEnabled(false, false)

    while true do
        Wait(0)
        BeginScaleformMovieMethod(minimap, "SETUP_HEALTH_ARMOUR")
        ScaleformMovieMethodAddParamInt(3)
        EndScaleformMovieMethod()
    end

    SetRadarBigmapEnabled(true, false)
    Wait(500)
    SetRadarBigmapEnabled(false, false)
  end
)
1 Like

did you find it?

The file can be found at common.rpf/data/ui/frontend.xml in your GTA 5 directory.
The contents, in regard to the minimap, is as follows:

 <minimap v="1.0">
        <data name="minimap"           alignX="L"	alignY="B"	posX="-0.0045"		posY="0.002"		sizeX="0.150"		sizeY="0.188888" /> <!-- WARNING! Feed MUST match posX and PosY -->
        <data name="minimap_mask"      alignX="L"	alignY="B"	posX="0.020"		posY="0.032" 	 	sizeX="0.111"		sizeY="0.159" />
        <data name="minimap_blur"      alignX="L"	alignY="B"	posX="-0.03"		posY="0.022"		sizeX="0.266"		sizeY="0.237" />
        <data name="bigmap"            alignX="L"	alignY="B"	posX="-0.003975"	posY="0.022"		sizeX="0.364"		sizeY="0.460416666" />
        <data name="bigmap_mask"       alignX="L"	alignY="B"	posX="0.145"		posY="0.015"		sizeX="0.176"		sizeY="0.395" />
        <data name="bigmap_blur"       alignX="L"	alignY="B"	posX="-0.019"		posY="0.022"		sizeX="0.262"		sizeY="0.464" />
        <data name="pausemap" 		   alignX="I"	alignY="I"	posX="0.0"			posY="0.0"			sizeX="1.0"			sizeY="1.0" />
		<data name="pausemap_mask"	   alignX="I"	alignY="I"	posX="0.161"		posY="0.22"			sizeX="0.679"		sizeY="0.598"/>
        														
        <data name="gallery"           alignX="I"	alignY="I"	posX="0.492180"		posY="0.222"		sizeX="0.471875"	sizeY="0.599" />
        <data name="gallery_mask"      alignX="I"	alignY="I"	posX="0.697"		posY="0.222"		sizeX="0.178"		sizeY="0.599" />
		<data name="golf_courses"      alignX="L"	alignY="B"	posX="0.003"		posY="-0.038"		sizeX="0.27375"		sizeY="0.347" />
	</minimap>

Hi.
The file common.rpf is in your GTA 5 directory (where the game is installed on your PC)
Then, you should use a software for read this extension (.rpf)
You can use OpenIV : https://openiv.com/