OOP in Lua: classes via metatables
Lua does not have classes. It has tables and a one-line trick called setmetatable that lets you fake them well enough to ship. This lesson teaches the canonical class pattern, single-level inheritance, and, just as important, when to skip OOP entirely and just use a plain table.
Build it
Make the resource folder
Inside your server's resources folder, create this folder:
resources/qu_oop_metatables
Create the files
Create this exact file layout:
resources/qu_oop_metatables/
fxmanifest.lua
server.lua