Skip to content

Commit

Permalink
Little Fix
Browse files Browse the repository at this point in the history
Fix for little no drivers license bug
  • Loading branch information
LeSiiN authored and MonkeyWhisper committed Aug 4, 2023
1 parent b547747 commit 46bec2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if Config.UseWolfknightRadar == true then
TriggerClientEvent('QBCore:Notify', src, 'NO DRIVERS LICENCE | Registered Owner: '..vehicleOwner..' | Plate: '..plate, 'error', Config.WolfknightNotifyTime)
end

if bolo or warrant or (Config.PlateScanForDriversLicense and not driversLicense) then
if bolo or warrant or (Config.PlateScanForDriversLicense and not driversLicense) and vehicleOwner then
TriggerClientEvent("wk:togglePlateLock", src, cam, true, 1)
end
end)
Expand Down Expand Up @@ -1926,4 +1926,4 @@ function GetPlayerPropertiesByCitizenId(citizenid)
end

return properties
end
end

0 comments on commit 46bec2e

Please sign in to comment.