> For the complete documentation index, see [llms.txt](https://pugdocuments.gitbook.io/pug-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pugdocuments.gitbook.io/pug-development/scripts/battle-royale/installation/dispatch-shots-fired.md).

# 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:

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

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

```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)
```
