⤵️Installation

EP 1 - Check dependencies

Make sure you have installed all dependencies .

# STEP 2 - Drag And Drop

Drag and drop the l2s-paintball to your resources folder.

# STEP 3 - SetUp the map

# STEP 4 - Setup paintball weapon (optional)

Just download the weapon and drop it inside your files

Step 1: Open the Target File

Navigate to the following file in your project directory: 📂 ox_inventory/modules/weapon/client.lua

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

  • 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.

if GetResourceState("l2s-paintball") == "started" then 
    if exports['l2s-paintball']:IsPlayerInPB() then
        return
    end
end

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

# STEP 5 - Start The Script

1 - Start the script on your server.cfg

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

Last updated