fix(vehicle): removing old keys & check for engine keys

This commit is contained in:
Andyyy7666
2023-10-14 20:04:39 +02:00
parent fb7c7b1de4
commit b8bb98b20d
2 changed files with 2 additions and 3 deletions

View File

@@ -196,8 +196,7 @@ function NDCore.giveVehicleAccess(source, vehicle, access, info)
local model = info?.model or GetEntityModel(vehicle)
local modelName = info?.modelName or model and lib.callback.await("ND_Vehicles:getVehicleModelMakeLabel", source, model) or ""
local hasKey = ox_inventory:GetSlotIdWithItem(source, "keys", {
vehId = vehicleId,
vehNetId = netId
vehId = vehicleId
})
if access and not hasKey then