> For the complete documentation index, see [llms.txt](https://l2s.gitbook.io/l2s-dev-documentations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l2s.gitbook.io/l2s-dev-documentations/qbcore/paint-ball/installation.md).

# Installation

### Dependencies

<table data-header-hidden><thead><tr><th width="311">Dependency</th><th width="173.37557351977276">Install</th></tr></thead><tbody><tr><td><strong>Resource</strong></td><td><strong>Install</strong></td></tr><tr><td><a href="https://github.com/Marttins011/PAINTBALL-WEAPON">Paint Ball Weapon</a></td><td>Required</td></tr></tbody></table>

## Asset download

1. Download your resource from FiveM's Keymaster.
2. Unzip zip folder and place it into your resource folder.&#x20;
3. Add ensure l2s-PaintBall to your server start config. Make sure to place anywhere below the framework and dependencies resources.

## installation

**Use This exports to close your inventory or recoil or stress or radil menu.**

**1- Go To qb-inventory/Client/main**

```
Client Side Export & Event
Export: IsPlayerInPB()
Example:
```

```lua
if exports['l2s-paintball']:IsPlayerInPB() then
	QBCore.Functions.Notify('You are in paintball match', 'error')
end
```

<figure><img src="https://94117183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA33F93eBCxt7JnedmZm5%2Fuploads%2F7rhcoLtoBS8IEbf5WBu7%2Fimage.png?alt=media&amp;token=4617af04-c7a7-4b90-8bed-a1b84da1912f" alt=""><figcaption><p><mark style="color:blue;"><strong>qb-inventory/html/Client/main</strong></mark></p></figcaption></figure>

**2- Server Side Export**\
**Export: IsPlayerInPB(source)** \
\
**Example:**

**1- Go To qb-inventory/Server/main**

```lua
Export: IsPlayerInPB(source)
Example:
if exports['l2s-paintball']:IsPlayerInPB(source) then
	TriggerClientEvent('QBCore:Notify', source ,'You are in paintball match', 'error' )
end
```

<figure><img src="https://94117183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA33F93eBCxt7JnedmZm5%2Fuploads%2F2kEauKme4qlln0x2IwKA%2Fimage.png?alt=media&amp;token=501dd71a-4a73-4e12-a12a-71db55aa2ac3" alt=""><figcaption><p><mark style="color:blue;"><strong>qb-inventory/Server/main</strong></mark></p></figcaption></figure>

## Finally Customize Your setting in config.lua
