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)