Hi Guys.
Serverside script to disable mini map/radar?
Hi Guys.
Serverside script to disable mini map/radar?
__resource.lua
resource_manifest_version "77731fab-63ca-442c-a67b-abc70f28dfa5"
client_scripts {
"client.lua",
}
client.lua
Citizen.CreateThread(function()
while true do
Wait(1)
if not displayRadar then
DisplayRadar(false)
end
end
end)
All credit to @Mr.Scammer. This was extracted from his RottenV script.
Thankyou for the script!
+1
For me the script isn’t working ? It’s not like a simple ressource folder ?
its work for me… .
I find help on another topic, now it’s working without the line “ressource_manifest_version” !
That did not work Is there an updated version??
@StatePatrolRP_ADMIN
Are you using Lambda Menu, by any chance?
yes i am
[20 characters]
Can i put it for a button and toggle this?
@StatePatrolRP_ADMIN Lambda is somehow conflicting with this.
For anyone having issues with lambda menu overriding this, here you go, use this in your client script:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
-- Hide the map
DisplayRadar(false)
-- Set the map to be expanded (stops lambda menu from showing the small map)
SetRadarBigmapEnabled(true, true)
-- Hide the map again
DisplayRadar(false)
-- Set the map to be small again (stops lambda menu from showing the big/extended map)
SetRadarBigmapEnabled(false, true)
end
end)
This is only tested with lambda menu, if you have another resource that alters the minimap I’m not sure if it’ll work.
Thank you!
[20 C H A R A C T E R S]
Anyone using scripthook with Lambda have this working and willing to help me out?
Optimized. Add this to a client.lua
Citizen.CreateThread(function()
while true do
if letSleep then
Citizen.Wait(8)
else
Citizen.Wait(1500)
end
letSleep = true
local radarEnabled = IsRadarEnabled()
if IsPedInAnyVehicle(PlayerPedId()) then
DisplayRadar(true)
letSleep = false
else
DisplayRadar(false)
end
end
end)