📚
ClassLib
📚 ClassLib Repo
  • ClassLib
  • 📌Getting Started
    • ⚙️ Installation
    • 🎒 Examples
  • 🧰Scripting Reference
    • 📘 BaseClass
    • 📗 BaseClassEx
Powered by GitBook
On this page
  • 🦠 Methods
  • GetLabel
  • SetLabel
  • GetDescription
  • SetDescription
  • GetColor
  • SetColor

Was this helpful?

  1. Scripting Reference

📗 BaseClassEx

BaseClassEx is a class that represents an extended base class, it serves as an example for Inherited Classes, but you can use it if you want to

Previous📘 BaseClass

Last updated 1 year ago

Was this helpful?

💂 AUTHORITY

This class can be spawned on both 🟧 and 🟦 side

👪 INHERITANCE

This class shares methods and events from


🦠 Methods


GetLabel

Returns the label of the instance

— Returns

local ret = my_instance:GetLabel()

SetLabel

Sets the label of the instance

my_instance:SetLabel(sLabel)
Type
Name
Default
Description

sLabel

Instance label


GetDescription

Returns the description of the instance

local ret = my_instance:GetDescription()

SetDescription

Sets the description of the instance

my_instance:SetDescription(sLabel)
Type
Name
Default
Description

sDescription

Instance description


GetColor

Returns the color of the instance

local ret = my_instance:GetColor(tColor)

SetColor

Sets the color of the instance

my_instance:SetColor(tColor)
Type
Name
Default
Description

tColor

Instance color


— Returns

— Returns

Client
Server
BaseClass
string
string
Color
string
string
Color
🧰
Page cover image