> For the complete documentation index, see [llms.txt](https://dynyx-scripts.gitbook.io/dynyx-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dynyx-scripts.gitbook.io/dynyx-scripts/ebt-cards/installation-and-configuration.md).

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