[Release-OUTDATED] Ban System with mySQL & aSync

Error loading script ban_s.lua in resource ban-async: ban_s.lua:2: attempt to call a nil value (global ‘require’)
stack traceback:
ban_s.lua:2: in main chunk
Failed to load script ban_s.lua.
Started resource ban-async

Current version: 5.0.0
Updater version: 5.0.0

Basic Script

start es_admin2
start esplugin_mysql
start mysql-async
start async
start essentialmode

your loadouts are wrong in your server.cfg, i believe (if i remember correctly) mysql-async comes first, then essentialmode, then esplugin_mysql then es_admin2 and then async…

refer to the documentation of each resource and try again

anyone get this working i get the same error
Error loading script ban_s.lua in resource ban-async: ban_s.lua:2: attempt to call a nil value (global ‘require’)
stack traceback:
not sure how to fix it i need a ban script that goes to the database

Hey, @Rhodiniium ! Thank you for this great script! If only it would be working today! :smiley:

Like mentioned above, problem is with the command “require” in first line of the script. We can’t get it working now. Could you, please, take a look at it?

Easy fix honestly. Take the first line where the require is out of the script, and then open your _resource.lua and paste this in the top:

server_script '@mysql-async/lib/MySQL.lua'
1 Like

Hello the donwload links are down, can you fix it?

Was massively outdated and didn’t really work there is much better ones out there now :slight_smile:

yeah but you revived it 3 days ago xD

link is down