# Exports & Commands

### The `giveBlueprint` Export

#### Function Signature

```lua
exports.lvs_crafting:giveBlueprint(playerId, recipeName, label)
```

#### Parameters

* `playerId` (number): Server ID of the target player
* `recipeName` (string): Recipe identifier from `Config.Recipes`
* `label` (string): Display label for the blueprint

#### Example Usage

```lua
-- Give a specific recipe blueprint
exports.lvs_crafting:giveBlueprint(playerId, 'lvs_stock_brakes', 'Stock Brakes Blueprint')

-- Give a shared blueprint (if recipe uses blueprint.name = 'brake_blueprint')
exports.lvs_crafting:giveBlueprint(playerId, 'brake_blueprint', 'Brake System Blueprint')
```

#### Important Notes

* The function checks if the player can carry the item before giving it
* Blueprint metadata is automatically created with `durability = 100`
* The `recipeName` must exist in `Config.Recipes`
* If the recipe has `blueprint.name`, that name is used; otherwise, the recipe name itself is used

#### Admin Command

An admin command is already registered:

```
/giveBlueprint [playerId] [recipeName] [label]
```

***

### Commands

#### Built-in Commands

**Admin Only:**

```
/giveBlueprint [playerId] [recipeName] [label]
```

Gives a blueprint to a player.

* `playerId`: Target player server ID
* `recipeName`: Recipe identifier from Config.Recipes
* `label`: Display name (optional, uses recipe label if empty)


---

# 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-crafting/exports-and-commands.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.
