Say I have this pseudocode for trying to achieve object oriented programing in the sandbox FiveM has bestowed upon us;
Wrapper = {
Section = {
Method = function(...) return exports.ResourceName:ClassName.__init__(...) end,
}
}
Lua chokes on the ResourceName:ClassName.__init__ part.
Intellisense says this;
This file will be imported to other resources like this; server_script '@dfs/DFS.lua'
Is there something I’m missing to get this to work?
U: Just had an idea pop into mind, gonna try it but not getting my hopes up.
U2: This was my last-ditch effort
Called as; ![]()
Running; ![]()
Yields;
My last thought is possibly instead doing DFS.Player.Function(Player, ...), but that creates fro some messy, convoluted code ![]()

