PS-Dispatch Integration
Make death screen compactible with QBCore ps-dispatch.
Go to client/bridge:33 and replace the line with this code snippet:
local currentPos = GetEntityCoords(PlayerPedId())
local locationInfo = getStreetandZone(currentPos)
local gender = GetPedGender()
TriggerServerEvent("dispatch:server:notify", {
dispatchcodename = "civdown",
dispatchCode = "10-69",
firstStreet = locationInfo,
gender = gender,
model = nil,
plate = nil,
priority = 1,
firstColor = nil,
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = _U('civdown'),
job = {"EMS", "ambulance"}
})
Last updated