# Keys, Fuel & Inventory

# Keys, Fuel & Inventory

## Nord Vehicle Keys

When `nord_vehiclekeys` is used, Nord Garages integrates server-authoritatively.

Typical API usage includes registering the owned network entity, checking keys/physical key items and granting keys only when needed.

With `Config.Keys.keepOwnerKeysOnStore = false`, storing/impounding removes the physical vehicle key lifecycle where appropriate, and spawning recreates valid owner access without duplicating physical key items.

## Fuel

The fuel bridge restores the saved fuel value during entity initialization, then stops writing so the active fuel resource controls normal consumption.

`lc_fuel` receives extra initialization safety to avoid persisting an uninitialized decorator as a false `0%` tank.

## Inventory bridge API

Internally normalized operations include:

```lua
NordInventory.GetCount(source, item, metadata)
NordInventory.HasItem(source, item, amount, metadata)
NordInventory.GetItem(source, item, metadata)
NordInventory.AddItem(source, item, amount, metadata, slot, reason)
NordInventory.RemoveItem(source, item, amount, metadata, slot, reason)
NordInventory.RegisterStash(id, label, slots, weight, owner, groups, coords)
NordInventory.OpenStash(source, id, owner)
```
