Gps only in car

How can i make it so the gps only shows while in a car and is not there on foot. By gps i mean bottom left map with the health.

There’s this cool thing called the search function. You should try it out some time: [Release] Radar only while driving

3 Likes

Well i did no reason to be a asshat about it. Simple question simple answer. I didnt see it.

4 Likes

any new link to this? its deleted

GitHub - qalle-git/radar-while-driving: This removes the radar on foot and put it on while driving. code taken from here

local sleepThread = 500
Citizen.CreateThread(function()
	while true do

		local radarEnabled = IsRadarEnabled()

		if not IsPedInAnyVehicle(PlayerPedId()) and radarEnabled then
			DisplayRadar(false)
		elseif IsPedInAnyVehicle(PlayerPedId()) and not radarEnabled then
			DisplayRadar(true)
		end

		Wait(sleepThread)
	end
end)