# Exports

## Set Player info from other resources

Client side:

```lua
exports.lvs_inventory:setInfo('house', '742 Evergreen Terrace')
exports.lvs_inventory:setInfo('phone', '+54123456789')
exports.lvs_inventory:setInfo('vehicle', 'LVS1234')
-- or --
exports.lvs_inventory:setInfo({
    house = '742 Evergreen Terrace',
    phone = '+54123456789',
    vehicle = 'LVS1234'
})


-- You can also set the name (character name) and cid (Citizen ID). 
-- These are set when the character is loaded, but they can be updated any time.
exports.lvs_inventory:setInfo({
    name = 'Hans Landa',
    cid = 'SS123456789',
})
```

***

## Get special slot

Server side:

```lua
-- If a player is wearing a backpack, it returns the slot of it; otherwise, it's null. 
-- The data structure is the slot from ox_inventory

local backpack = exports.lvs_inventory:getSpecialSlot('backpack')
```


---

# 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://fivem.lvsoft.com.ar/qb-esx/lvs-inventory/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.
