> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/integration/loaf/garage.md).

# garage

## Vehicle Key

Use this change to give players keys when they take out a vehicle from **Loaf Garage**.

### Update the browse file

Path: `loaf_garage/client/browse.lua`

Add this block after the function that sets vehicle properties.

Remove or comment out the default QBCore vehicle keys trigger.

```lua
if GetResourceState("ak47_vehiclekeys") == "started" then
    exports['ak47_vehiclekeys']:GiveKey(data.plate)
elseif GetResourceState("ak47_qb_vehiclekeys") == "started" then
    exports['ak47_qb_vehiclekeys']:GiveKey(data.plate)
end
```

This supports both versions:

* `ak47_vehiclekeys`
* `ak47_qb_vehiclekeys`

### Example result

Use the screenshot below to confirm the final placement.

<figure><img src="https://2088945756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkHcyR2RbVMcj5NHJ2HEa%2Fuploads%2F2gRtklaF1DmZ7TmQd92U%2Fimage.png?alt=media&amp;token=d6c33515-c272-4709-9ac1-921de448f505" alt=""><figcaption></figcaption></figure>
