I’m trying to call the fullscreen map instead of the map preview in the pause menu using lua.
I’ve gotten the regular pause menu map preview to work using the above code.
Does anyone know the hash or component id to get to the full screen map?
Hi! You have to make sure pause menu is active (ActivateFrontendMenu native and check while loaded) and then you can call PauseMenuceptionGoDeeper(0) to instantly open fullscreen map.
local function map_loop()
Citizen.CreateThread(function()
ActivateFrontendMenu(GetHashKey('FE_MENU_VERSION_MP_PAUSE'), 0, -1)
Wait(100)
PauseMenuceptionGoDeeper(0)
while true do
Citizen.Wait(10)
if IsControlJustPressed(0, 200) then
SetFrontendActive(0)
break
end
end
end)
end