Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
darktrovx committed May 17, 2022
1 parent e341e17 commit 67b8d0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

For all support questions, ask in our Discord support chat. Do not create issues if you need help. Issues are for bug reporting and new features only.

https://www.discord.gg/ljlabs
https://www.discord.gg/projectsloth

## Dependencies

Expand Down
2 changes: 1 addition & 1 deletion client/cl_impound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ local function TakeOutImpound(vehicle)
end
end

RegisterNetEvent('qb-mdt:client:TakeOutImpound', function(data)
RegisterNetEvent('ps-mdt:client:TakeOutImpound', function(data)
local pos = GetEntityCoords(PlayerPedId())
currentGarage = data.currentSelection
local takeDist = Config.ImpoundLocations[data.currentSelection]
Expand Down
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
end)

RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
TriggerServerEvent("qb-mdt:server:OnPlayerUnload")
TriggerServerEvent("ps-mdt:server:OnPlayerUnload")
end)

RegisterNetEvent('QBCore:Client:OnJobUpdate', function(JobInfo)
Expand All @@ -32,7 +32,7 @@ end)

RegisterNetEvent("QBCore:Client:SetDuty", function(job, state)
if AllowedJob(job) then
TriggerServerEvent("qb-mdt:server:ToggleDuty")
TriggerServerEvent("ps-mdt:server:ToggleDuty")
end
end)

Expand Down
8 changes: 4 additions & 4 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ local function IsPolice(job)
end

AddEventHandler("onResourceStart", function(resourceName)
if (resourceName == 'qb-mdt') then
if (resourceName == 'ps-mdt') then
activeUnits = {}
end
end)

RegisterNetEvent("qb-mdt:server:OnPlayerUnload", function()
RegisterNetEvent("ps-mdt:server:OnPlayerUnload", function()
--// Delete player from the MDT on logout
local src = source
local player = QBCore.Functions.GetPlayer(src)
Expand Down Expand Up @@ -55,7 +55,7 @@ AddEventHandler("playerDropped", function(reason)
end
end)

RegisterNetEvent("qb-mdt:server:ToggleDuty", function()
RegisterNetEvent("ps-mdt:server:ToggleDuty", function()
local src = source
local player = QBCore.Functions.GetPlayer(src)
if not player.PlayerData.job.onduty then
Expand Down Expand Up @@ -827,7 +827,7 @@ RegisterNetEvent('mdt:server:saveVehicleInfo', function(dbid, plate, imageurl, n

result.currentSelection = impoundInfo.CurrentSelection
result.plate = plate
TriggerClientEvent('qb-mdt:client:TakeOutImpound', src, result)
TriggerClientEvent('ps-mdt:client:TakeOutImpound', src, result)
end

end
Expand Down

0 comments on commit 67b8d0d

Please sign in to comment.