Minimap without Health & armour bar

There is a native way by using the Minimap scaleform. I did exactly this in one of my earlier projects:

All you would need to do is:

  1. Copy this file into a resource
    fivem-lite-transportation/resources/sessionmanager/scripts/dependencies/dep_minimap.lua at master · glitchdetector/fivem-lite-transportation · GitHub

  2. Use SetHealthArmorType(3) in a loop (might not need to be a loop, but in the original source I did use it in a loop)

This snippet might also work, although I can’t confirm if it works exactly as the above does.

Citizen.CreateThread(function()
    local minimap = RequestScaleformMovie("minimap")
    SetRadarBigmapEnabled(true, false)
    Wait(0)
    SetRadarBigmapEnabled(false, false)
    while true do
        Wait(0)
        BeginScaleformMovieMethod(minimap, "SETUP_HEALTH_ARMOUR")
        ScaleformMovieMethodAddParamInt(3)
        EndScaleformMovieMethod()
    end
end)

(bigmap is enabled and disabled to refresh the scaleform, I’m not aware of any other way to do so)

13 Likes