Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Project-Sloth/ps-mdt
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSzymkowicz committed Jun 16, 2022
2 parents 4912a27 + 8b4a8bb commit eb33293
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ AddEventHandler("onResourceStart", function(resourceName)
end
end)

if Config.UseWolfknightRadar == true then
RegisterNetEvent("wk:onPlateScanned")
AddEventHandler("wk:onPlateScanned", function(cam, plate, index)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
local bolo = GetBoloStatus(plate)
print(cam, plate, index)
if bolo == true then
TriggerClientEvent("wk:togglePlateLock", Player.PlayerData.source, cam, beep, bolo)
end
end)
end
RegisterNetEvent("ps-mdt:server:OnPlayerUnload", function()
--// Delete player from the MDT on logout
local src = source
Expand Down
9 changes: 9 additions & 0 deletions shared/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ Config.RosterLink = {
['doj'] = '',
}


Config.UseWolfknightRadar = true
--[[
Adds support for Wraith ARS 2X by WolfKnight98 (wk_wars2x)
https://github.com/WolfKnight98/wk_wars2x
To save on unnecessary database queries, in wk_wars2x/config.lua set 'CONFIG.use_sonorancad = true'
This will only check plates of vehicles that have been occupied by a player
--]]

Config.OnlyShowOnDuty = true

Config.Fuel = "lj-fuel" -- "LegacyFuel", "lj-fuel"
Expand Down

0 comments on commit eb33293

Please sign in to comment.