Error loading script server/main.lua in resource esx_military: server/main.lua:1: attempt to call a nil value (global 'require')
stack traceback:
server/main.lua:1: in main chunk
Failed to load script server/main.lua.
Require hasnt been used in a long time here as lua 5.3 doesn’t use if. If you would have used the search bar you would see its been said multiple times…
I’ve been serching for 2 hours now. I always serch before I make a help post.
So what do I do now then. How do I make the plugin communicate with the db?
Unfortunately some old tutorials have yet to be removed using the require method but you can use that method to load any external Lua files from another resource as MySQL Async shows a good example for that.
Even if they are not in the same resources folder ? Example, I have a [ESX] resources folder with all my ESX resources and a [FiveMDefault] with my other resources will it work anyways ?