[Request] Map/Radar Off

Just took some time and searched another native.

´

Citizen.CreateThread(function()
    while true do
	Citizen.Wait(0)
	
		local playerPed = GetPlayerPed(-1)
		local playerVeh = GetVehiclePedIsIn(playerPed, false)

		if (GetPedInVehicleSeat(playerVeh, -1) == playerPed) then
			DisplayRadar(true)
		else
			DisplayRadar(false)
		end
    end
end)

This is with Seat-Check. The Minimap only shows when you are the driver.

1 Like

I have been looking for a mod like this, I would love to have this script :slight_smile:

where do i put this?

Is it possible to create a button for enable and disable the radar map ?

1 Like

awesome this seems to be working just like i needed but when i load into my server it still shows and works when i restart the script, how would i go on about having it work without doing that everytime?

Hey, can you make it so the radar re appears when a player enters a car

This right here!!