Skip to content

Commit

Permalink
feat: added wraith plate reader support
Browse files Browse the repository at this point in the history
  • Loading branch information
BubbleDK committed Aug 24, 2024
1 parent 0927f48 commit 8266786
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ return {
defaultAlertsDelay = 10,
fivemanageAPIKey = '',
defaultRespondKey = 'g'
enableWraithPlateReader = false,
}
6 changes: 6 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ RegisterServerEvent("mdt:server:AddFingerprintToProfile", function(citizenid, fi
db.addFingerprintToProfile(citizenid, fingerprint)
end)

if config.enableWraithPlateReader then
RegisterServerEvent("wk:onPlateScanned", function(_, plate)
db.isVehicleBOLO(plate)
end)
end

AddEventHandler('onResourceStop', function(resource)
if resource ~= cache.resource then return end

Expand Down

0 comments on commit 8266786

Please sign in to comment.