From ab414b2b48153918de281d0bfb410d1cbffba30c Mon Sep 17 00:00:00 2001 From: Luke20201 Date: Sun, 28 Sep 2025 18:11:14 +0100 Subject: [PATCH] fix location returning hash instead of string --- modules/dispatch/fd_dispatch/client/client.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dispatch/fd_dispatch/client/client.lua b/modules/dispatch/fd_dispatch/client/client.lua index 03ac210..a725dfc 100644 --- a/modules/dispatch/fd_dispatch/client/client.lua +++ b/modules/dispatch/fd_dispatch/client/client.lua @@ -13,11 +13,12 @@ Dispatch.SendAlert = function(data) color = data.colorHex or nil }) end + local coords = data.coords or GetEntityCoords(PlayerPedId()) local alertData = { title = data.message or "No message provided", description = data.message or "", groups = data.jobs or data.job or "police", - location = {coords = data.coords, street = GetStreetNameAtCoord(table.unpack(data.coords))} or {coords = GetEntityCoords(PlayerPedId()), street = GetStreetNameAtCoord(table.unpack(GetEntityCoords(PlayerPedId())))}, + location = {coords = coords, street = GetStreetNameFromHashKey(GetStreetNameAtCoord(coords.x, coords.y, coords.z))}, code = data.code or '10-80', priority = data.priority or 2, metadata = metadata,