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

# Installation

EP 1 - Check dependencies

Make sure you have installed all  [dependencies ](https://docs.l2s.dev/assets-and-guides/paint-ball).

## # STEP 2 - Drag And Drop

Drag and drop the  <mark style="color:blue;">l2s-paintball</mark> to your resources folder.

## # STEP 3 - SetUp the map

{% file src="/files/IC2x1tca0w7MA2SRMdsX" %}

## # STEP 4  - Setup paintball weapon (optional)

Just download the weapon and drop it inside your files

{% file src="/files/z1FRyadN5p9F3psmtCEj" %}

{% hint style="danger" %}
**It looks like you want to modify `ox_inventory` to properly display weapons after adding them. Here’s how you can do it:**
{% endhint %}

\
**Step 1: Open the Target File**

Navigate to the following file in your project directory:\
📂 `ox_inventory/modules/weapon/client.lua`<br>

**Step 2: Locate the `Weapon.Disarm` Function**

* Open the file in a text editor (such as VS Code, Notepad++, or any code editor of your choice).
* Use the search function (`Ctrl + F` on Windows or `Cmd + F` on Mac) to find the function named
* ```lua
  Weapon.Disarm 
  ```

\
**Step 3: Insert the Code**

* After locating the function, move to the first line inside the function body (right after its declaration).
* Paste the provided code at this position.

<pre class="language-lua"><code class="lang-lua">if GetResourceState("l2s-paintball") == "started" then 
    if exports['l2s-paintball']:IsPlayerInPB() then
<strong>        return
</strong>    end
end
</code></pre>

*(If you're unsure where to place it, refer to the provided image for guidance)*

<figure><img src="https://253583244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Ouu0TE6RGB2wJP79c1y%2Fuploads%2F7XcBASoWSgPoGtX7NruR%2Fimage.png?alt=media&amp;token=8d286c94-7d8c-40b5-b98e-412d434ab502" alt=""><figcaption></figcaption></figure>

## # STEP 5 - Start The Script

1 - Start the script on your  <mark style="color:blue;">server.cfg</mark>

```cfscript
ensure l2s-paintball
ensure pd-arena
ensure l2s-paintball_weapon
```

## # STEP 6  - Toggle Inventory

Use events in cl\_editable to disable player inventory or radial menu after starting game<br>

<figure><img src="https://253583244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Ouu0TE6RGB2wJP79c1y%2Fuploads%2F0volUA9moQ0EnbNjFJxy%2Fimage.png?alt=media&amp;token=6a24e466-f4ba-40d0-8f44-3a919dea92bf" alt=""><figcaption></figcaption></figure>
