> For the complete documentation index, see [llms.txt](https://codeforge.gitbook.io/codeforge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codeforge.gitbook.io/codeforge/neon-series/neon-boss-menu/exports.md).

# EXPORTS

{% hint style="danger" %}
**ALL THE EXPORTS BELOW ARE CLIENT SIDE ONLY**
{% endhint %}

1. **OpenBossMenu** -> This export allows the opening of the boss menu for a specified job or gang. It verifies the player's access rights and opens the menu accordingly.

**Export Syntax**:

```lua
exports['neon-boss']:OpenBossMenu(job, _type)
```

**Parameters**:

* **job** (string): The job or gang name for which the boss menu will be opened.
  * *Example*: `'police'`, `'mafia'`, etc.
* **\_type** (string): Specifies whether the entity is a society or a gang. Accepts values:
  * `"society"`: To open the boss menu for a job-related society.
  * `"gang"`: To open the boss menu for a gang.

**Functionality**:

* The function checks the current framework defined in `Config.Framework` (`esx` or `qbcore`) and retrieves the player's data using either `ESX.GetPlayerData()` or `QBCore.Functions.GetPlayerData()`.
* If `_type` is `"society"`, it looks up the society in `Config.Societies` and checks if the player has the necessary boss-level access for that job.
* If `_type` is `"gang"`, it checks `Config.Gangs` to ensure the player has the appropriate boss-level access for that gang.
* If the player meets the access requirements, the `OpenBossMenu` function is called with the job or gang name.

**Example Usage**:

```lua
-- Open the boss menu for the 'police' society
exports['neon-boss']:OpenBossMenu('police', 'society')

-- Open the boss menu for the 'ballas' gang
exports['neon-boss']:OpenBossMenu('ballas', 'gang')
```

{% hint style="danger" %}
**ALL THE EXPORTS BELOW ARE SERVER SIDE ONLY**
{% endhint %}

1. GetSocietyData -> This export will return the society data

```lua
exports['neon-boss']:GetSocietyData(job)
```

Example:

```lua
local data = exports['neon-boss']:GetSocietyData('police')
print(data.balance)
```

2. RemoveSocietyMoney -> This export will remove money from the society

{% code overflow="wrap" %}

```lua
exports['neon-boss']:RemoveSocietyMoney(job, sender, amount, reason) 
```

{% endcode %}

Example:

```lua
exports['neon-boss']:RemoveSocietyMoney('police', 'Jack', 5000, 'Transfer')
```

3. AddSocietyMoney -> This export will add money to the society

{% code overflow="wrap" %}

```lua
exports['neon-boss']:AddSocietyMoney(job, sender, amount, reason) 
```

{% endcode %}

Example:

```lua
exports['neon-boss']:AddSocietyMoney('police', 'Jack', 5000, 'Deposit')
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://codeforge.gitbook.io/codeforge/neon-series/neon-boss-menu/exports.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.
