π¦₯Dispatch/Shots Fired
If your dispatch script does not have default support for paintball then CONTACT THE DISPATCH SCRIPT CREATOR AND TELL THEM TO ADD SUPPORT!!!!
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-paintball"]:IsInPaintball() then return endExample for ps-dispatch/client/eventhandlers.lua:
AddEventHandler('CEventGunShot', function(witnesses, ped)
if exports["pug-paintball"]:IsInPaintball() 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)CD_DISPATCH REPLACEMENT
Replace this portion in cd_dispatch/client/policealerts.lua to remove shots fired calls if you are using cd_dispatch
Last updated