> For the complete documentation index, see [llms.txt](https://source-devs.gitbook.io/source/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://source-devs.gitbook.io/source/paid-resources/src-multichar/id-card/required.md).

# Required

Please do this to create the default id card item

## OX\_INVENTORY Example

ox\_inventory/data/items.lua

```lua
["idcard"] = {
	label = "Id card",
	weight = 1,
	stack = false,
	close = true,
	buttons = {
		{
			label = "Look",
			action = function(slot)
			    TriggerEvent("ox_inventory:closeInventory")
	                    exports["src-multichar"]:OpenCardFromInventory(slot)
	                end
		},
		{
			label = "Show",
			action = function(slot)
			    TriggerEvent("ox_inventory:closeInventory")
	                    exports["src-multichar"]:ShowCardFromInventory(slot)
	                end
		}
	}
}
```

## QB-INVENTORY Example

qb-core/shared/items.lua

```lua
idcard = {
    name = 'idcard',
    label = 'ID Card',
    weight = 0,
    type = 'item',
    image = 'idcard.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'ID Card'
}
```
