this is a bad way to do this it will get more resources than normally what is a need. just add an event handler.
Code:
Citizen.CreateThread(function() while true do Citizen.Wait(1) if IsPedOnFoot(GetPlayerPed(-1)) then SetRadarZoom(5000) elseif IsPedInAnyVehicle(GetPlayerPed(-1), true) then SetRadarZoom(5000) end end end)
You have supported me every step of the way during my journey through my sadness. The support of my devoted family is more precious than all the gold in the world. Just knowing you are there for me gives me the foundation I need to work through this tough time and get to a better place in my life.