# Inventory config

{% hint style="success" %}
&#x20;The CarPlay system includes a configuration with multiple base inventories. This system is designed to verify that you possess the required item in order to use the CarPlay.
{% endhint %}

```lua
-----------------------------------------------
-- Restricted Item / Item Restreint
-----------------------------------------------
Config.RestrictedItem = {
    enabled = true,
    itemName = 'carplay_device'
}
-- FR: Si enabled = true, les joueurs doivent avoir l'item pour utiliser CarPlay
-- EN: If enabled = true, players must have the item to use CarPlay
-- itemName: Nom de l'item requis

```

{% hint style="info" %}
For the system to function at 100%, please place these items in their respective inventories.
{% endhint %}

QBCore Items

```lua
carplay_device = { name = 'carplay_device', label = 'CarPlay Device', weight = 500, type = 'item', image = 'carplay_device.png', unique = false, useable = true, shouldClose = true, description = 'A device that allows you to use CarPlay and play music in your vehicle' },

```

OX-Inventory Items

```lua
['carplay_device'] = {
    label = 'CarPlay Device',
    weight = 500,
    stack = true,
    close = true,
    description = 'A CarPlay device to listen to music in your vehicle',
    client = {
        image = 'carplay_device.png',
    }
}
```

QS-Inventory Items

```lua
['carplay_device'] = {
    name = 'carplay_device',
    label = 'CarPlay Device',
    weight = 500,
    type = 'item',
    image = 'carplay_device.png',
    unique = false,
    useable = false,
    shouldClose = true,
    combinable = nil,
    description = 'A CarPlay device to listen to music in your vehicle'
}
```
