# Installation

1. Download the resource
   * Download the purchased resource from [keymaster](https://keymaster.fivem.net/asset-grants), FiveM's official hub for downloading purchased resources

2. Install Dependencies

   | Resource                 | Download Link                                  |
   | ------------------------ | ---------------------------------------------- |
   | ox\_lib                  | <https://github.com/overextended/ox_lib>       |
   | ox\_inventory (v2.40.0+) | <https://github.com/overextended/ox_inventory> |
   | devm-bridge              | <https://keymaster.fivem.net/asset-grants>     |

3. Navigate to `ox_inventory/modules/shop` and drag the contents of our shops folder from `_INSTALL FIRST/shops` to replace everything in that folder

4. Run the following sql file which can also be found in `_INSTALL FIRST`

```sql
CREATE TABLE `ebt_applications` (
	`identifier` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
	`applied_at` TIMESTAMP NULL DEFAULT current_timestamp(),
	PRIMARY KEY (`identifier`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES (41, 'socialworker', 0, 'worker', 'Support', 0, '{}', '{}');
```

5. Install the following item into `ox_inventory/data/items.lua`

```lua
['ebt_card'] = {
	label = 'EBT Card',
	server = {
		export = 'devm-ebt.ebt_card'
	}
},
```

6. Drag the ebt\_card.png image from `_INSTALL FIRST` *to* `ox_inventory/web/images`
7. You have now installed the EBT Card script. To make an item eligible to be purchased with an EBT card, put `ebt = true` under the item in `ox_inventory/data/items.lua` like this

<pre class="language-lua"><code class="lang-lua"><strong>['burger'] = {
</strong>	label = 'Burger',
	weight = 220,
	ebt = true, -- add this 
	client = {
		status = { hunger = 200000 },
		anim = 'eating',
		prop = 'burger',
		usetime = 2500,
		notification = 'You ate a delicious burger'
	},
},
</code></pre>
