# Slot Actions

***

## Default Slot Value

To determine the number of slots that will be open by default, follow the path below

Open the config file and find the Variable below and change the number according to yourself.

```lua
Config.DefaultSlotValue = 3 -- Number of slots available for use by default. You can change it here. After the change, if any user is not using the new slot, it will be deleted or opened.
```

{% hint style="danger" %}
**The Default Slot number is valid for first time users.**
{% endhint %}

***

## How do <mark style="background-color:orange;">Open slot</mark> with <mark style="background-color:orange;">Command</mark>

{% hint style="info" %}
This command has 2 different usage types.
{% endhint %}

{% hint style="danger" %}
Use to activate slots using a license only for **Offline players**
{% endhint %}

{% tabs %}
{% tab title="Online Player" %}
*Usage: /open playerid slotnumber*

*The command will activate <mark style="background-color:blue;">slot 5</mark> of <mark style="background-color:blue;">player 1</mark>.*

*/open* [*1*](#user-content-fn-1)[^1] [*5*](#user-content-fn-2)[^2]
{% endtab %}

{% tab title="Offline Player" %}
*Usage: /open playerlicense slotnumber*

*The command will activate <mark style="background-color:blue;">slot 5</mark> of <mark style="background-color:blue;">licensed player</mark>.*

*/open* [*license:*&#x62;52b79a06dba2d89fc261122089f1a2471bb8b2ba](#user-content-fn-3)[^3] [*5*](#user-content-fn-2)[^2]
{% endtab %}
{% endtabs %}

***

## How do <mark style="background-color:orange;">Close slot</mark> with <mark style="background-color:orange;">Command</mark>

{% hint style="info" %}
This command has 2 different usage types.
{% endhint %}

{% hint style="danger" %}
Use to activate slots using a license only for **Offline players**
{% endhint %}

{% tabs %}
{% tab title="Online Player" %}
*Usage: /close playerid slotnumber*

*The command will deactivate <mark style="background-color:blue;">slot 5</mark> of <mark style="background-color:blue;">player 1</mark>.*

*/close* [*1*](#user-content-fn-1)[^1] [*5*](#user-content-fn-2)[^2]
{% endtab %}

{% tab title="Offline Player" %}
*Usage: /open playerlicense slotnumber*

*The command will deactivate <mark style="background-color:blue;">slot 5</mark> of <mark style="background-color:blue;">licensed player</mark>.*

*/close* [*license:*&#x62;52b79a06dba2d89fc261122089f1a2471bb8b2ba](#user-content-fn-3)[^3] [*5*](#user-content-fn-2)[^2]
{% endtab %}
{% endtabs %}

[^1]: ID of the active user

[^2]: Slot number to be opened

[^3]: Offline user's license id
