> For the complete documentation index, see [llms.txt](https://stg-store.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stg-store.gitbook.io/documentation/scripts/wallet-system-v2/exports.md).

# Exports

#### Client Exports

***

<details>

<summary><code>openLicenseMenu</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-walletv2']:openLicenseMenu()
```

{% endcode %}

Opens the license control menu.

</details>

<details>

<summary><code>isInWallet</code></summary>

{% code overflow="wrap" %}

```lua
exports["stg-walletv2"]:isInWallet()
```

{% endcode %}

Returns whether the wallet is being used or not as true or false.

</details>

<details>

<summary><code>openWallet</code></summary>

{% code overflow="wrap" %}

```lua
exports["stg-walletv2"]:openWallet(color)
```

{% endcode %}

Open the wallet. You can set the color of the wallet using the color parameter: “black,” “purple,” or “brown.”

***

**`Examples:`**

* `exports["stg-walletv2"]:openWallet("black")`
* `exports["stg-walletv2"]:openWallet("purple")`
* `exports["stg-walletv2"]:openWallet("brown")`

</details>

<details>

<summary><code>closeWallet</code></summary>

{% code overflow="wrap" %}

```lua
exports["stg-walletv2"]:closeWallet()
```

{% endcode %}

Closes the wallet.

</details>

<details>

<summary><code>giveLicenseClient</code></summary>

```lua
exports['stg-walletv2']:giveLicenseClient(playerID, licenseType)
```

Grants the license specified by the client to the player

***

**`Examples:`**

* `exports['stg-walletv2']:giveLicenseClient(1, 'drive_b')`
* `exports['stg-walletv2']:giveLicenseClient(1, 'fishing')`
* `exports['stg-walletv2']:giveLicenseClient(1, 'hunting')`

</details>

<details>

<summary><code>removeLicenseClient</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-walletv2']:removeLicenseClient(playerID, licenseType)
```

{% endcode %}

Removes the license assigned to the player by the client

***

**`Examples`:**

* `exports['stg-walletv2']:removeLicenseClient(1, 'drive_b')`
* `exports['stg-walletv2']:removeLicenseClient(1, 'fishing')`
* `exports['stg-walletv2']:removeLicenseClient(1, 'hunting')`

</details>

#### Server Exports

***

<details>

<summary><code>giveLicense</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-walletv2']:giveLicense(playerID, licenseType)
```

{% endcode %}

Grants the license specified by the server to the player

***

**`Examples:`**

* `exports['stg-walletv2']:giveLicense(1, 'drive_b')`
* `exports['stg-walletv2']:giveLicense(1, 'fishing')`
* `exports['stg-walletv2']:giveLicense(1, 'hunting')`

</details>

<details>

<summary><code>removeLicense</code></summary>

{% code overflow="wrap" %}

```lua
exports['stg-walletv2']:removeLicense(playerID, licenseType)
```

{% endcode %}

Removes the license assigned to the player by the server

***

**`Examples:`**

* `exports['stg-walletv2']:removeLicense(1, 'drive_b')`
* `exports['stg-walletv2']:removeLicense(1, 'fishing')`
* `exports['stg-walletv2']:removeLicense(1, 'hunting')`

</details>
