mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-17 02:58:33 +00:00
fix(vehicle): removing old keys & check for engine keys
This commit is contained in:
1 parent
fb7c7b1de4
commit
b8bb98b20d
2 files changed
+2
-3
No files matched your search
@@ -372,7 +372,7 @@ local function hasVehicleKeys(veh, checkEngine)
|
||||
local state = Entity(veh).state
|
||||
if Config.ox_inventory and Config.useInventoryForKeys then
|
||||
local metadata = {
|
||||
vehPlate = GetVehicleNumberPlateText(veh),
|
||||
vehId = state.id,
|
||||
keyEnabled = true
|
||||
}
|
||||
local hasKey = exports.ox_inventory:GetItemCount("keys", metadata) > 0
|
||||
|
||||
Reference in new issue
Block a user