> For the complete documentation index, see [llms.txt](https://batscripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://batscripts.gitbook.io/docs/utility-scripts/bat_bucketmanager/commands.md).

# Commands

Commands can be used in chat or client and server consoles.

{% hint style="info" %}
You need to be considered an **Admin** to use these commands from chat or client console. Check the [Configuration file](/docs/utility-scripts/bat_bucketmanager/setup/configuration-file.md) section for more information.
{% endhint %}

## bat\_buckets

Opens the [Bucket Manager UI](/docs/utility-scripts/bat_bucketmanager/manager-ui.md).

***

## bat\_time

Changes the current time (hours and minutes) in the bucket.

* **hours**: `number` (optional / defaults to `0`)
* **minutes**: `number` (optional / defaults to `0`)
* **bucketId**: `number` (optional / defaults to your current bucket)
  * Required when via server console.

**Example:** `bat_time 22 30 1` would change the current time to `22:30` for bucket `1`.

***

## bat\_freezetime

Freezes/unfreezes the time increment in the bucket.

* **freeze**: `number` (optional / defaults to `0`)
  * `1` for true and `0` for false.
* **bucketId**: `number` (optional / defaults to your current bucket)
  * Required when via server console.

**Example:** `bat_freezetime 1` would freeze the time increment for your current bucket.

***

## bat\_weather

Changes the weather in the bucket.

* **weatherType**: `string` (required)
  * Check the [FiveM documentation](https://docs.fivem.net/natives/?_0x29B487C359E19889) for the list of all available options.
* **bucketId**: `number` (optional / defaults to your current bucket)
  * Required when via server console.

**Example:** `bat_weather extrasunny` would change the weather to `extrasunny` for your current bucket.

***

## bat\_rain

Changes the rain level in the bucket.

* **rainLevel**: `number` (optional / defaults to `-1`)
  * `-1` means rain level will change according to the weather (GTA's default values).
  * `0` means no rain at all.
* **bucketId**: `number` (optional / defaults to your current bucket)
  * Required when via server console.

**Example:** `bat_rain 5 3` would change the rain level to `5` for bucket `3`.

***

## bat\_blackout

Enables/disables the artificial lights in the bucket.

* **blackout**: `number` (optional / defaults to `0`)
  * `1` for true and `0` for false.
* **applyBlackoutToVehicles**: `number` (optional / defaults to `0`)
  * `1` for true and `0` for false.
* **bucketId**: `number` (optional / defaults to your current bucket)
  * Required when via server console.

**Example:** `bat_blackout 1 1 5` would enable blackout (disable artificial lights) for bucket `5`, and blackout would also be applied to vehicle lights.
