# Exports & Usage

### hasEBT

Checks if a player has an EBT card with a balance greater than 0

```lua
exports['dynyx_ebtcards']:hasEBT(source)
```

#### Parameters

* **source** *(number)* Player's server ID.

#### Returns

* **boolean** – `true` if the player has an active EBT card, `false` otherwise.

***

### getBalance

Returns the current balance on the player's EBT card.

```lua
exports['dynyx_ebtcards']:getBalance(source)
```

#### Parameters

* **source** *(number)* Player's server ID.

#### Returns

* **number** – Current EBT card balance, or `0` if the player has no card.

***

### addBalance

Adds funds to the player's existing EBT card.

```lua
exports['dynyx_ebtcards']:addBalance(source, amount)
```

#### Parameters

* **source** *(number)* Player's server ID.
* **amount** *(number)* Amount to add to the card.

#### Returns

* **number** – New balance after adding funds.
* **false** – If the player has no EBT card.

***

### removeBalance

Removes funds from the player's EBT card.

```lua
exports['dynyx_ebtcards']:removeBalance(source, amount)
```

#### Parameters

* **source** *(number)* Player's server ID.
* **amount** *(number)* Amount to remove from the card.

#### Returns

* **number** – New balance after removing funds.
* **false** – If the player has no EBT card or insufficient balance.


---

# 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/exports-and-usage.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.
