Skip to content

Commit

Permalink
Added support for Wolfknight98 Wraith ARS 2X
Browse files Browse the repository at this point in the history
  • Loading branch information
nggcasey committed Jun 9, 2022
1 parent 646a457 commit 7b8e424
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ AddEventHandler("onResourceStart", function(resourceName)
end
end)

--Adds support for Wraith ARS 2X by WolfKnight98 (wk_wars2x)
--https://github.com/WolfKnight98/wk_wars2x
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)

RegisterNetEvent("ps-mdt:server:OnPlayerUnload", function()
--// Delete player from the MDT on logout
local src = source
Expand Down

0 comments on commit 7b8e424

Please sign in to comment.