PEACESCRIPT Documentation
StoreDiscord
  • 👋Introduction
  • 📸PEACE-Speedcamera
    • 📜Config File
    • 📂Unlocked File
      • 🖥️Server
        • QBCore
        • ESX
        • QBOX
        • Custom
      • 💻Client
        • QBCore
        • ESX
        • QBOX
        • Custom
  • 📄PEACE-JobMenu
    • 📜Config File
    • 📂Unlocked File
      • 💻Client
        • QBCore
        • ESX
        • Custom
  • 📊PEACE-DutyLog
    • 📜Config File
    • 📂Unlocked File
      • 💻Client
        • QBCore
        • ESX
        • QBOX
        • Custom
        • Target
      • 🖥️Server
        • QBCore
        • ESX
        • QBOX
        • Custom
  • 🖋️PEACE-PropsManager
    • ⬇️Installation
    • 📜Configuration
    • ❓FAQ
    • 📂Unlocked File
      • 🖥️Server
        • QBCore
        • ESX
        • Custom
      • 💻Client
        • QBCore
        • ESX
        • Custom
Powered by GitBook
On this page
  1. PEACE-JobMenu

Config File

Here you can find the latest available config file for Peace-JobsMenu

Config = {}

Config.framework = 'QB' -- ESX or QB or custom

Config.Command = "jobmenu"

Config.KeyMappingSettings = {
   Label = "Peace Jobs Menu",
-- If you want to use a keybind, use the following format: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
   Key = "F4",
}

Config.JobMenu = {
   ["police"] = { -- Name of the JOB
        image = "police.png", -- Banner JOBS
		hometext = "Police", -- First text visible under the banner 
		bordercolor = "#222", -- HexColor https://g.co/kgs/6UcUHF
		backgroundcolor = "#222", -- HexColor https://g.co/kgs/6UcUHF
        menu = {
	            [1] = {
				       id = 'exemplesubmenu', -- ID
				       title = 'Exemple SubMenu', -- Name visible in menu
				       icon = 'list-check', -- all list of icon here https://fontawesome.com/icons
				       type = 'submenu',  -- submenu for create submenu
                       submenu = {  
						    {
						        id = 'Exemple',
						        title = 'Exemple',
						        icon = 'fa-solid fa-scroll',
						        type = 'command', -- type client, server and command
						        event = '', -- event
						    }, {
						        id = 'checkstatus', -- ID 
						        title = 'Vérifier état', -- Name visible in menu
						        icon = 'question', -- all list of icon here https://fontawesome.com/icons
						        type = 'client', -- type client, server and command
						        event = 'police:client:CheckStatus', -- event
						    }
            }					
	      },	  
	            [2] = {
				       id = 'ExempleSimplyMenu',
				       title = 'Exemple Simply Menu',
				       icon = 'user-tie',  -- all list of icon here https://fontawesome.com/icons
				       type = 'server', -- type client, server and command
				       event = 'QBCore:ToggleDuty', -- event
	            },		  
		  
      }
 },
   ["ambulance"] = { -- Name of the JOB
        image = "ambulance.png", -- Banner JOBS
		hometext = "Ambulance", -- First text visible under the banner 
		bordercolor = "#222", -- HexColor https://g.co/kgs/6UcUHF
		backgroundcolor = "#222", -- HexColor https://g.co/kgs/6UcUHF
        menu = {
	            [1] = {
				       id = 'exemplesubmenu', -- ID
				       title = 'Exemple SubMenu', -- Name visible in menu
				       icon = 'list-check', -- all list of icon here https://fontawesome.com/icons
				       type = 'submenu',  -- submenu for create submenu
                       submenu = {  
						    {
						        id = 'Exemple',
						        title = 'Exemple',
						        icon = 'fa-solid fa-scroll',
						        type = 'command', -- type client, server and command
						        event = '', -- event
						    }, {
						        id = 'checkstatus', -- ID 
						        title = 'Vérifier état', -- Name visible in menu
						        icon = 'question', -- all list of icon here https://fontawesome.com/icons
						        type = 'client', -- type client, server and command
						        event = '', -- event
						    }
            }					
	      },	  
	            [2] = {
				       id = 'ExempleSimplyMenu',
				       title = 'Exemple Simply Menu',
				       icon = 'user-tie',  -- all list of icon here https://fontawesome.com/icons
				       type = 'server', -- type client, server and command
				       event = '', -- event
	            },		  
		  
      }
 },
}
PreviousPEACE-JobMenuNextUnlocked File

Last updated 1 year ago

📄
📜