L2S Documentation
DiscordTebex
  • Documentation
  • Information
    • Discord Roles
    • How to update your asset
    • FiveM Asset Escrow System
  • Coding Information
    • Webhook System
    • Register Key Mapping
    • Translation System
  • ASSETS & GUIDES
    • 🚨Dispatch
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • API
        • Hub
        • CCTV
        • Dispatch
        • UI
      • 💻Integration
        • Exports
          • Client
          • Server
        • Police Alerts
        • Radio Channel
        • Duty System
    • 🏨Hotels V2
      • ⤵️Installation
      • ⚙️Configuration
        • Config
        • Elevators
        • Hotels
      • 💻Exports
    • 👮Police Hub
      • ⤵️Installation
      • ⚙️Configuration
      • 💻Events & Alerts
    • 💀Gangs Turf
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Gangs
      • 💻Exports
      • 📚Tutorial
    • 🔫Paint Ball
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Clothes
        • Locations
      • 💻Exports
Powered by GitBook
On this page
  • # STEP 2 - Drag And Drop
  • # STEP 3 - SetUp the map
  • # STEP 4 - Setup paintball weapon (optional)
  • # STEP 5 - Start The Script
  • # STEP 6 - Toggle Inventory
  1. ASSETS & GUIDES
  2. Paint Ball

Installation

PreviousPaint BallNextConfiguration

Last updated 2 months ago

EP 1 - Check dependencies

Make sure you have installed all .

# 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

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)

# 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

🔫
⤵️
dependencies
6MB
pb-arena.rar
4MB
l2s-paintball_weapon.rar