# Config File

```
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
	            },		  
		  
      }
 },
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://peacescript.gitbook.io/peacescript/peace-jobmenu/config-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
