[HELP] Hide radar

I need help to hide radar. RadarWhileDriving wont work with me!

If you are talking about the minima and what not this is the actual native:

I dont understand

its very Simple:

open the client.lua of any resource and add these lines:

local player = GetPlayerPed(-1)

Citizen.CreateThread(function()
  while true do
    Citizen.Wait(1000) -- refrest every 1 sec
    
    if IsPedInAnyVehicle(player, false) then
    	--print("player in car")
    	DisplayRadar(true)
    else
    	--print("player in out of car")
    	DisplayRadar(false)
    end 
  end
end)

thats all you need. and thanks @Crutchie i just made this resouce.
its been 10 months after ur post maybe you have already solved it . hope this might help others :+1:t2:

I edited the Code Bit More and used redial menu and Got this:


Display The Minimap on Command or by pressing Toggle

I was newbie