diff --git a/server/main.lua b/server/main.lua index dcb6b771..c5d98583 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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) @@ -1926,4 +1926,4 @@ function GetPlayerPropertiesByCitizenId(citizenid) end return properties -end \ No newline at end of file +end