# RD Citations

{% embed url="<https://youtu.be/Nqj-wlLwREg?si=LKYOUGrfphYc-PwH>" %}

## Step 1 - SQL

Simply open the citations.sql file in the script folder in for example heidi sql and run the sql code

## Step 2 - Add items

**QBCore:**

```lua
['citation'] 		             = {['name'] = 'citation', 			            ['label'] = 'Citation', 			    ['weight'] = 0, 		['type'] = 'item', 		['image'] = 'citation.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'A Citation'},
['citation_roll'] 		     = {['name'] = 'citation_roll', 			    ['label'] = 'Citation Roll', 	            ['weight'] = 0, 		['type'] = 'item', 		['image'] = 'citation_roll.png', 	        ['unique'] = true, 		['useable'] = true, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'A roll for Citations'},
```

**OX Inventory (QBX or ESX):**

```lua
["citation"] = {label = "Citation", weight = 1, stack = true, close = true},
["citation_roll"] = {label = "Citation", weight = 1, stack = true, close = true},
```

## Step 3 - Add item images

Add the images in itemImages in the script folder to the location where you inventory system has all the item images.

## Step 4 (ESX and QBX Only)

#### ESX

If you use ESX you must add the following to the fxmanifest under shared\_scripts in RD\_Citations

```lua
'@es_extended/imports.lua',
'@ox_lib/init.lua',
```

#### QBX

If you use QBX you must add the following to the fxmanifest under shared\_scripts in RD\_Citations

```luau
'@ox_lib/init.lua',
```


---

# 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://right-development.gitbook.io/right-development-documentation/scripts/rd-citations.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.
