# Exports

## 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",
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://source-devs.gitbook.io/source/paid-resources/src-multichar/id-card/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
