Files
community_bridge/modules/dispatch/cd_dispatch/client.lua
T
MrNewb d2bc7ff921 fix: Correct "not" operators placement and update function casing
- Fixed the placement of "not" operators in the code to ensure proper logic.
- Corrected the casing of a helper function to maintain consistency.
- Reworded the description for better clarity and alignment with Git commit terms.
- Updated the bridge description to highlight its community-driven approach.
- Fixed minor syntax and readability issues throughout the documentation.
2025-01-08 06:53:55 -05:00

18 lines
635 B
Lua

if GetResourceState('cd_dispatch') ~= 'started' then return end
Dispatch = {}
Dispatch.SendAlert = function(data)
local playerData = exports['cd_dispatch']:GetPlayerInfo()
local randomID = Bridge.Helper.RandomString()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = data.job,
coords = data.coords or playerData.coords,
title = data.code or '10-80',
message = data.message,
flash = 0,
unique_id = randomID,
sound = 1,
blip = { sprite = 431, scale = 1.2, colour = 3, flashes = false, text = data.message, time = 10000, radius = 0, }
})
end