Hello!
I am currently trying to create my own pause menu.
I saw a video on YouTube (Utility Pause Menu - What you've always dreamed of doing! - YouTube) and he managed to create a “map” button. When you press this button, the map opens directly and not the pause menu and when you want to close it, the pause menu does not open.
I tried something like this, ActivateFrontendMenu(GetHashKey('FE_MENU_VERSION_MP_PAUSE'), 0, -1)
but it only opens the entire pause menu.
Can someone help me find this native or find a way to open it directly?
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
If you use PauseMenuceptionGoDeeper with id 149 it also shows the map legend
Citizen.CreateThread(function()
ActivateFrontendMenu(GetHashKey('FE_MENU_VERSION_MP_PAUSE'), 0, -1)
Wait(100)
PauseMenuceptionGoDeeper(149)
while true do
Citizen.Wait(10)
if IsControlJustPressed(0, 200) then
SetFrontendActive(0)
break
end
end
end)