> For the complete documentation index, see [llms.txt](https://timmy.gitbook.io/classlib-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timmy.gitbook.io/classlib-1/scripting-reference/baseclassex.md).

# 📗 BaseClassEx

{% hint style="info" %}
💂 **AUTHORITY**

This class can be spawned on both 🟧 [Client](https://docs.nanos.world/docs/next/core-concepts/scripting/authority-concepts) and 🟦 [Server](https://docs.nanos.world/docs/next/core-concepts/scripting/authority-concepts) side
{% endhint %}

{% hint style="info" %}
👪 **INHERITANCE**

This class shares methods and events from [BaseClass](/classlib-1/scripting-reference/baseclass.md)
{% endhint %}

***

## 🦠 Methods

***

### `GetLabel`

Returns the label of the instance

— Returns [string](https://docs.nanos.world/docs/next/scripting-reference/glossary/basic-types#string)

<pre class="language-lua"><code class="lang-lua"><strong>local ret = my_instance:GetLabel()
</strong></code></pre>

***

### `SetLabel`

Sets the label of the instance

```lua
my_instance:SetLabel(sLabel)
```

| Type                                                                                         | Name     | Default | Description    |
| -------------------------------------------------------------------------------------------- | -------- | ------- | -------------- |
| [string](https://docs.nanos.world/docs/next/scripting-reference/glossary/basic-types#string) | `sLabel` |         | Instance label |

***

### `GetDescription`

Returns the description of the instance

— Returns [string](https://docs.nanos.world/docs/next/scripting-reference/glossary/basic-types#string)

<pre class="language-lua"><code class="lang-lua"><strong>local ret = my_instance:GetDescription()
</strong></code></pre>

***

### `SetDescription`

Sets the description of the instance

```lua
my_instance:SetDescription(sLabel)
```

| Type                                                                                         | Name           | Default | Description          |
| -------------------------------------------------------------------------------------------- | -------------- | ------- | -------------------- |
| [string](https://docs.nanos.world/docs/next/scripting-reference/glossary/basic-types#string) | `sDescription` |         | Instance description |

***

### `GetColor`

Returns the color of the instance

— Returns [Color](https://docs.nanos.world/docs/next/scripting-reference/structs/color)

```lua
local ret = my_instance:GetColor(tColor)
```

***

### `SetColor`

Sets the color of the instance

```lua
my_instance:SetColor(tColor)
```

| Type                                                                          | Name     | Default | Description    |
| ----------------------------------------------------------------------------- | -------- | ------- | -------------- |
| [Color](https://docs.nanos.world/docs/next/scripting-reference/structs/color) | `tColor` |         | Instance color |

***
