> 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 |

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://timmy.gitbook.io/classlib-1/scripting-reference/baseclassex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
