# Installation

### Dependency&#x20;

[Ox Lib](https://github.com/overextended/ox_lib/releases)

### OX INVENTORY

Add this in data/items.lua of ox\_inventory

```lua

	["paper"] = {
		label = "Paper",
		weight = 50,
		stack = false,
		close = true,
		},
	},
```

```lua
	["pencil"] = { ---
		label = "Penna",
		weight = 100,
	},
```

Add this to modules/items/client.lua

```lua
Item("paper", function(data, slot)
	local metadata = slot.metadata
	local serial = metadata.serial
	TriggerEvent("df:vedidoc", serial, slot)
end)
```

For **custom inventory** use `TriggerEvent("df:vedidoc", serial, slot)` on item "paper" use

### QB CORE

For QB Core add this to qb-core/shared/items.lua

```lua
	paper = {
		name = "paper",
		label = "Paper",
		weight = 100,
		type = "item",
		image = "paper.png",
		unique = true,
		useable = true,
		shouldClose = true,
		combinable = nil,
		description = "Writable paper document",
	},
	pencil = {
		name = "pencil",
		label = "Pencil",
		weight = 50,
		type = "item",
		image = "pencil.png",
		unique = false,
		useable = false,
		shouldClose = true,
		combinable = nil,
		description = "Used to write on paper",
	},

```


---

# 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://dfdevelopment.gitbook.io/df-store/paper/installation.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.
