Skip to content

fetlito/fe-pausemenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetli's Pausemenu

Resource for customising FiveM's in-game pause menu.

Hud Color:

Citizen.CreateThread(function()
   ReplaceHudColourWithRgba(116,255,0,0,255) # In this example the color of the hud will be red.
end)                     (don't change,R,G,B,A)

Pausemenu Text:

Colored text support with FiveM's color codes

~b~/Blue ~g~/Green ~y~/Yellow ~o~/Orange ~p~/Purple ~c~/Grey ~m~/Dark Grey ~u~/Black ~h~/Bold

Citizen.CreateThread(function()
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'FE_THDR_GTAO', '~b~Example Title') #Title
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_MAP', '~b~MAP') #Map
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_GAM', '~g~GAME') #Game
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_PANE_LEAVE', 'DISCONNECT') #Game -> Option 1
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_PANE_QUIT', 'QUIT') #Game -> Option 2
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_INF', '~y~INFO') #Info
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_STA', '~p~STATS') #Stats
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_SET', '~c~SETTINGS') #Settings
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_GAL', '~o~GALERY') #Galery
   Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"),'PM_SCR_RPL', 'Rockstar Editor') #Rockstar editor
end)

Details:

function SetHeading(slot, str)
   BeginScaleformMovieMethodOnFrontendHeader('SET_HEADING_DETAILS_CUSTOM')
   ScaleformMovieMethodAddParamInt(slot)
   ScaleformMovieMethodAddParamTextureNameString(str)
   EndScaleformMovieMethod()
end
Citizen.CreateThread(function()
   while true do
       if GetPauseMenuState() > 0 then
           SetHeading(0, '~r~Text 1') # First line
           SetHeading(1, '~b~Text 2') # Second line
           SetHeading(2, '~o~Text 3') # Third line
       end
       Citizen.Wait(100)
   end
end)

Before

After

About

Full customatization of in-game pause menu.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages