# 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:**

```
['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

```
'@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

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