mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
fix(vehicle): removing old keys & check for engine keys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user