# Installation & Configuration

{% stepper %}
{% step %}

### Add the resource

**Drag the `dynyx_ebtcards` folder into your `resources` directory.**\
Make sure it’s properly placed so your server can access it. Don’t forget to add `ensure dynyx_ebtcards` to your `server.cfg` file to activate the resource.
{% endstep %}

{% step %}

### Install Dependencies

**Ensure all required dependencies for the script are installed and up to date.**\
Dependencies usually include core resources like the framework (QBCore, ESX), target systems (e.g., ox\_target), and an inventory system (like ox\_inventory, qb-inventory, or ps-inventory). Missing dependencies may prevent the script from working properly.
{% endstep %}

{% step %}

### Import the SQL File

**Open your database (e.g., HeidiSQL, phpMyAdmin) and import the provided SQL file.**\
This will create the necessary tables and data for the script to function correctly.
{% endstep %}

{% step %}

### Configure Inventory Integration

**Navigate to the `inventory` folder.**\
Each inventory system requires a slightly different configuration. Follow the guide specific to your inventory system (like ox\_inventory, qb-inventory, or ps-inventory).\
The item images for your inventory can be found in the `images` folder to ensure seamless visual integration.

* [ox\_inventory](/dynyx-scripts/weed-growing/installation-and-configuration/ox_inventory.md)
* [qb-inventory](/dynyx-scripts/ebt-cards/installation-and-configuration/qb-inventory-ps-inventory.md)
* [ps-inventory](/dynyx-scripts/ebt-cards/installation-and-configuration/qb-inventory-ps-inventory.md)
  {% endstep %}
  {% endstepper %}

## Configuration:

```lua
Config = {}

Config.Locale = "en" -- "en" / "de" / "fr" / "es"

Config.Inventory = "auto" -- "auto" / "ox_inventory" / "qb-inventory" / "ps-inventory"
Config.Target = "auto" -- "auto" / "ox_target" / "qb-target"

-- How long until the player can apply for another EBT card. Stored in the SQL so it persists across logoffs.
Config.Cooldown = 10080 -- (Minutes) Default: 10080 = 1 week

-- If the player has more than this amount in their bank they will be denied for having too much money. Set to 0 to disable.
Config.MaxBankBalance = 500000

-- Same as above but for cash on hand. This is checked separately from bank balance. Set to 0 to disable.
-- Recommended to keep this equal to or below Config.MaxBankBalance
Config.MaxCashBalance = 500000

-- Max & Min EBT Balance that a player can apply for.
Config.MaxApply = 25000
Config.MinApply = 50

Config.Webhook = false
Config.Webhook = "PLACE_YOUR_WEBHOOK_HERE" --  For Discord Logs

Config.GovernmentPed = "csb_tomcasino" --  Ped Name
Config.GovernmentPedCoords = vector4(-544.8433, -204.5809, 37.2151, 211.2208) -- Ped Coords
Config.Blip = true -- Display Blip on Ped

```

<br>


---

# 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://dynyx-scripts.gitbook.io/dynyx-scripts/ebt-cards/installation-and-configuration.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.
