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
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
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
)
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/