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
  1. ASSETS & GUIDES
  2. Paint Ball

Exports

Get Player State

--- This function checks if a player is in a paint ball game
--- @return boolean - Returns true if the player is in paintball game, false otherwise

-- Client-side: Check if the player is in a property block
exports['l2s-paintball']:IsPlayerInPB()
--- This function checks if a player is in a paint ball game
--- @param source integer - The identifier of the player to check
--- @return boolean - Returns true if the player is in paintball game, false otherwise

-- Server-side: Check if the player is in a property block
exports['l2s-paintball']:IsPlayerInPB(source)

Client:

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

Server:

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

PreviousLocations
🔫
💻