Skip to content

Commit

Permalink
Updated to new resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSzymkowicz committed May 17, 2022
1 parent 648f847 commit e341e17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RegisterNetEvent('mdt:server:openMDT', function()
local JobType = GetJobType(PlayerData.job.name)
local bulletin = GetBulletins(JobType)

local calls = exports['qb-dispatch']:GetDispatchCalls()
local calls = exports['ps-dispatch']:GetDispatchCalls()

--TriggerClientEvent('mdt:client:dashboardbulletin', src, bulletin)
TriggerClientEvent('mdt:client:open', src, bulletin, activeUnits, calls, PlayerData.citizenid)
Expand Down Expand Up @@ -1012,7 +1012,7 @@ RegisterNetEvent('mdt:server:setWaypoint', function(callid)
local JobType = GetJobType(Player.PlayerData.job.name)
if JobType == 'police' or JobType == 'ambulance' then
if callid then
local calls = exports['qb-dispatch']:GetDispatchCalls()
local calls = exports['ps-dispatch']:GetDispatchCalls()
TriggerClientEvent('mdt:client:setWaypoint', src, calls[callid])
end
end
Expand Down Expand Up @@ -1063,7 +1063,7 @@ RegisterNetEvent('mdt:server:attachedUnits', function(callid)
local JobType = GetJobType(Player.PlayerData.job.name)
if JobType == 'police' or JobType == 'ambulance' then
if callid then
local calls = exports['qb-dispatch']:GetDispatchCalls()
local calls = exports['ps-dispatch']:GetDispatchCalls()
TriggerClientEvent('mdt:client:attachedUnits', src, calls[callid]['units'], callid)
end
end
Expand Down Expand Up @@ -1096,7 +1096,7 @@ RegisterNetEvent('mdt:server:setDispatchWaypoint', function(callid, cid)
local JobType = GetJobType(Player.PlayerData.job.name)
if JobType == 'police' or JobType == 'ambulance' then
if callid then
local calls = exports['qb-dispatch']:GetDispatchCalls()
local calls = exports['ps-dispatch']:GetDispatchCalls()
TriggerClientEvent('mdt:client:setWaypoint', src, calls[callid])
end
end
Expand Down Expand Up @@ -1172,7 +1172,7 @@ RegisterNetEvent('mdt:server:getCallResponses', function(callid)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if IsPolice(Player.PlayerData.job.name) then
local calls = exports['qb-dispatch']:GetDispatchCalls()
local calls = exports['ps-dispatch']:GetDispatchCalls()
TriggerClientEvent('mdt:client:getCallResponses', src, calls[callid]['responses'], callid)
end
end)
Expand Down

0 comments on commit e341e17

Please sign in to comment.