Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if not IsPedInAnyVehicle(PlayerPedId(), true) then
DisplayRadar(false)
else
DisplayRadar(true)
end
HideHudComponentThisFrame(3) --cash
HideHudComponentThisFrame(4) --mp_cash
HideHudComponentThisFrame(5) --mp_message
HideHudComponentThisFrame(6) --vehicle name
HideHudComponentThisFrame(8) --vehicle class
HideHudComponentThisFrame(7) --area name
HideHudComponentThisFrame(9) --street name
HideHudComponentThisFrame(10) --help text
HideHudComponentThisFrame(11) --floating help text1
HideHudComponentThisFrame(12) --floating help text2
HideHudComponentThisFrame(13) --cash change
if IsPedArmed(PlayerPedId(), 6) then
DisableControlAction(1, 140, true)
DisableControlAction(1, 141, true)
DisableControlAction(1, 142, true)
end
end
end)