# Boss Menu

One of the most important steps is the boss men. In order for this to work I made an edit to esx\_society! Super easy to do and a small walk through will be provided!

## ESX\_SOCIETY

Here I will show the small edits to esx\_society that will make you able to use this portion. This also makes it easier for you to use in other scripts instead of base events!

In esx\_society client.lua Search for:

```lua
AddEventHandler('esx_society:openBossMenu', function(society, close, options)
	OpenBossMenu(society, close, options)
end)
```

Above or Below this handler add this snippet of code:

```lua
exports('openBossMenu',function(society, close, options)
	OpenBossMenu(society, close, options)
end)
```

From here you can now use this export in any script Example usage:

```lua
exports.esx_society:openBossMenu(JOB, BOOLEAN, options)
```

```lua
exports.esx_society:openBossMenu(job, true, {
    withdraw = true, 
    deposit = true, 
    wash = false, 
    employees = true, 
    grades = true
})
```


---

# 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://docs.sickscripts.com/esx-scripts/sickupnatom/boss-menu.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.
