#Lua Class

1 messages · Page 1 of 1 (latest)

hazy knot
#

A Lua microclass system that prioritizes readability and low friction. Write classes, methods, and inheritance with complex syntax — without having to manually assemble metatables each time.

Why use it?

✨ Simple syntax: class 'Name' { ... } and class 'Child' :extends 'Base' { ... }.
⚙️ Zero configuration: import a single file (class.lua) and use it.
🌍 Multi-environment: Lua scripts in general and also MTA:SA.
Note: This system works as a "singleton per class": new 'Name' (...) initializes and returns the class's own table. It is common to store it in a local variable: local Name = new 'Name' (...).

https://github.com/ThigasDevelopment/lua-class

GitHub

Lua simple class generator. Contribute to ThigasDevelopment/lua-class development by creating an account on GitHub.

jaunty solar
#

Wow, it was very well organized and made events and functions much easier with the bind function