> 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/exports.md).

# Exports

The exports for the ID Card system

## Open the card from an inventory slot

```lua
-- Example
exports("OpenCardFromInventory", 10) -- 10 is the slot
-- PS: This is used for the inventory "Look" Button
```

## Show the card at another player from an inventory slot

```lua
-- Example
exports("ShowCardFromInventory", 10) -- 10 is the slot
-- PS: This is used for the inventory "Show" Button
```

## Show the card at another player from an inventory slot

```lua
-- Example
-- cardType: string (The card type)
-- createCard: boolean (It will give the player the card item after the creation is finished)

exports("TakePhoto", "idcard", true)
```

## Open the ID Card

```lua
-- Example
-- cardType: string (The card type)
-- info: the card Info

exports("OpenCard", "idcard", {
    name = "Source",
    surname = "Devs",
    photoUrl = "imageUrl",
    expire = 10000,
    uniqueId = "LEOPUNTUS_SHKSSJ",
})
```
