Pug Development
  • ๐Ÿ‘‹Welcome To Pug Development
    • ๐Ÿ“ŒInformation
  • ๐Ÿ““Scripts
    • ๐Ÿ’ŽRobbery Creator
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • Mini Games
      • ๐Ÿ’กThings to know
        • ๐ŸŽจHow To Use
        • ๐ŸŽฎCustom Mini Games
        • ๐Ÿ’ฃCreate Explosion
        • ๐Ÿ“‘Tab Settings
        • ๐Ÿ“ฃBank Truck & ATM Alert
        • ๐Ÿ“ฑCustom Keypad
        • ๐Ÿ’ฑMove Steps Around
        • ๐Ÿ‘ปMake Props Disappear When Looted
        • ๐ŸคนRemove Kill Screen Effect
        • ๐ŸŽPreset Heist Progression
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’ผBusiness Creator
      • ๐Ÿ“Installation
      • ๐Ÿ’กThings to know
        • ๐Ÿ”—Linking Jobs To The Menu
        • ๐Ÿ“ƒOpen Menu
        • ๐Ÿ”›Criminal crafting
        • ๐Ÿ›ฐ๏ธCreated Items
      • โ“FAQ
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ”ซPaint Ball
      • ๐Ÿ“Installation
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • ๐Ÿ—บ๏ธMap Making Tutorial
        • ๐Ÿ‘šSet Team Outfits
        • ๐Ÿ“…Scoreboard
        • ๐Ÿ”Surrender
    • ๐Ÿ› ๏ธRepo Job
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ’‰Coke Business
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐ŸŽฃFishing
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • ๐ŸŸFishing Lure
      • ๐Ÿ“œDependency & Support
      • ๐Ÿ’กThings to know
        • โ†—๏ธProgression
        • ๐Ÿ’ฏReputation
    • ๐Ÿ”ซWeapon Sling
      • ๐Ÿ“Installation
      • ๐Ÿ“œDependency & Support
    • ๐Ÿ†Battle Royale
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
        • โ˜๏ธWeather Sync
        • ๐Ÿ‚ox_inventory
        • ๐ŸฆฅDispatch/Shots Fired
        • โŒqb-anticheat
      • ๐Ÿ“œDependency & Support
    • ๐Ÿš˜Car Chopping
      • ๐Ÿ“Installation
        • Inventory Items
          • QB items
          • Ox Items
      • ๐Ÿ“œDependency & Support
Powered by GitBook
On this page
  1. Scripts
  2. Battle Royale
  3. Installation

Dispatch/Shots Fired

Dispatch Script Adjustment In your dispatch script, search for "shot" or "shooting" and add the following if statement to remove shots fired calls when players are in a paintball match:

if exports["pug-battleroyale"]:IsInBattleRoyale() then return end

Example for ps-dispatch/client/eventhandlers.lua:

AddEventHandler('CEventGunShot', function(witnesses, ped)
    if exports["pug-battleroyale"]:IsInBattleRoyale() then return end
    if IsPedCurrentWeaponSilenced(cache.ped) then return end
    if inNoDispatchZone then return end
    if BlacklistedWeapon(cache.ped) then return end
        
    WaitTimer('Shooting', function()
        if cache.ped ~= ped then return end

        if PlayerData.job.type == 'leo' then
            if not Config.Debug then
                return
            end
        end

        if inHuntingZone then
            exports['ps-dispatch']:Hunting()
            return
        end

        if witnesses and not isPedAWitness(witnesses, ped) then return end

        if cache.vehicle then
            exports['ps-dispatch']:VehicleShooting()
        else
            exports['ps-dispatch']:Shooting()
        end
    end)
end)
Previousox_inventoryNextqb-anticheat

Last updated 4 months ago

๐Ÿ““
๐Ÿ†
๐Ÿ“
๐Ÿฆฅ