⤵️Installation
Last updated
Last updated
EP 1 - Check dependencies
Make sure you have installed all dependencies .
Drag and drop the l2s-paintball to your resources folder.
Just download the weapon and drop it inside your files
It looks like you want to modify ox_inventory
to properly display weapons after adding them. Here’s how you can do it:
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)
1 - Start the script on your server.cfg
ensure l2s-paintball
ensure pd-arena
ensure l2s-paintball_weapon
Use events in cl_editable to disable player inventory or radial menu after starting game