> 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/driving-school/exports.md).

# Exports

#### Client Exports

***

<details>

<summary><code>hasLicense</code></summary>

{% code overflow="wrap" %}

```lua
local hasB = exports['stg-drivingschool']:hasLicense('drive_b')

if hasB then
    print("he have!")
else
    print("he haven't")
end
```

{% endcode %}

Returns whether the player has the specified license or not as true or false.

</details>

<details>

<summary><code>addLicense</code></summary>

{% code overflow="wrap" %}

```lua
local addLicense = exports['stg-drivingschool']:addLicense(licenseName)

if addLicense then
    print("added license!")
else
    print("he already have this license.")
end
```

{% endcode %}

Adds a license to the local player. Returns true if added successfully, false if player already has it.

</details>

<details>

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

{% code overflow="wrap" %}

```lua
local addLicense = exports['stg-drivingschool']:removeLicense(licenseName)

if addLicense then
    print("Removed license!")
else
    print("he already dont have this license.")
end
```

{% endcode %}

Removes a license from the local player. Returns true if removed successfully, false if player doesn't have it.

</details>

#### Server Exports

***

<details>

<summary><code>hasLicense</code></summary>

{% code overflow="wrap" %}

```lua
local hasB = exports['stg-drivingschool']:hasLicense(source, 'drive_b')

if hasB then
    print("he have!")
else
    print("he haven't")
end
```

{% endcode %}

Returns whether the player has the specified license or not as true or false.

</details>

<details>

<summary><code>addLicense</code></summary>

{% code overflow="wrap" %}

```lua
local addLicense = exports['stg-drivingschool']:addLicense(source, licenseName)

if addLicense then
    print("added license!")
else
    print("he already have this license.")
end
```

{% endcode %}

Adds a license to the player. Returns true if added successfully, false if player already has it.

</details>

<details>

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

{% code overflow="wrap" %}

```lua
local addLicense = exports['stg-drivingschool']:removeLicense(source, licenseName)

if addLicense then
    print("Removed license!")
else
    print("he already dont have this license.")
end
```

{% endcode %}

Removes a license from the player. Returns true if removed successfully, false if player doesn't have it.

</details>
