Question with mysql-async

I got this error at import mysql-async:

module ‘resources/mysql-async/lib/MySQL’ not found

I import it like this in my server.lua but not working

require "resources/mysql-async/lib/MySQL"

How can i solve it o dont know it i have tu import it by the fxmanifest.lua or server.lua

You cannot use require like that; you load the file in fxmanifest.lua the same way you add server_script.

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

1 Like