From 1898b895b3db82c391158aabdeaac02828323151 Mon Sep 17 00:00:00 2001 From: LeSiiN <103898231+LeSiiN@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:16:39 +0100 Subject: [PATCH 1/3] Update eventhandlers.lua --- client/eventhandlers.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/eventhandlers.lua b/client/eventhandlers.lua index 3757f729..a2aab14c 100644 --- a/client/eventhandlers.lua +++ b/client/eventhandlers.lua @@ -80,6 +80,13 @@ AddEventHandler('CEventShockingCarAlarm', function(_, ped) end) end) +AddEventHandler('CEventExplosionHeard', function(witnesses, ped) + if witnesses and not isPedAWitness(witnesses, ped) then return end + WaitTimer('Explosion', function() + exports['ps-dispatch']:Explosion() + end) +end) + AddEventHandler('gameEventTriggered', function(name, args) if name ~= 'CEventNetworkEntityDamage' then return end local victim = args[1] From 850090edda9537cd239b2d4f077aa4c4ff138360 Mon Sep 17 00:00:00 2001 From: LeSiiN <103898231+LeSiiN@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:16:59 +0100 Subject: [PATCH 2/3] Update config.lua --- shared/config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/config.lua b/shared/config.lua index dd99f806..77c27f4b 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -19,7 +19,8 @@ Config.DefaultAlerts = { Shooting = true, Autotheft = true, Melee = true, - PlayerDowned = true + PlayerDowned = true, + Explosion = true } Config.MinOffset = 1 From 24e0c18d7ff2d21280ee56bbec05b092e211b431 Mon Sep 17 00:00:00 2001 From: LeSiiN <103898231+LeSiiN@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:27:00 +0100 Subject: [PATCH 3/3] Update config.lua --- shared/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/config.lua b/shared/config.lua index 77c27f4b..1ec2523a 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -402,14 +402,14 @@ Config.Blips = { flash = false }, ['explosion'] = { - radius = 0, + radius = 75.0, sprite = 436, color = 1, scale = 1.5, length = 2, sound = 'Lose_1st', sound2 = 'GTAO_FM_Events_Soundset', - offset = false, + offset = true, flash = false } }