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' (...).