From bcbc6666f8a5b2e5bb8c44e78efd9153492eafa4 Mon Sep 17 00:00:00 2001 From: PugDev23 Date: Mon, 16 Sep 2024 20:32:27 -0700 Subject: [PATCH 1/2] Fix mistake with addBlip function Old: addBlip(data, Config.Blips[data.codeName] or data) New: addBlip(data, Config.Blips[data.codeName] or data.alert) --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 1833570..e476235 100644 --- a/client/main.lua +++ b/client/main.lua @@ -277,7 +277,7 @@ RegisterNetEvent('ps-dispatch:client:notify', function(data, source) } }) - addBlip(data, Config.Blips[data.codeName] or data) + addBlip(data, Config.Blips[data.codeName] or data.alert) RespondToDispatch:disable(false) OpenDispatchMenu:disable(true) From 3d0f26b5bb48cf03d1257a65bb2eee7bd6ed3664 Mon Sep 17 00:00:00 2001 From: PugDev23 Date: Mon, 16 Sep 2024 20:33:19 -0700 Subject: [PATCH 2/2] Fixed false being a string making it true Fixed false being a string making it true in the CustomAlert function --- client/alerts.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/alerts.lua b/client/alerts.lua index b394083..5811ca7 100644 --- a/client/alerts.lua +++ b/client/alerts.lua @@ -32,8 +32,8 @@ local function CustomAlert(data) length = data.length or 2, -- How long it stays on the map sound = data.sound or "Lose_1st", -- Alert sound sound2 = data.sound2 or "GTAO_FM_Events_Soundset", -- Alert sound - offset = data.offset or "false", -- Blip / radius offset - flash = data.flash or "false" -- Blip flash + offset = data.offset or false, -- Blip / radius offset + flash = data.flash or false -- Blip flash }, jobs = { 'leo' }, }