FoodHud SQL script

Hello everyone,

I’m trying to implement this script,

Under one of the files, foodshops_sv.lua, it says this:

require "resources/essentialmode/lib/MySQL"
MySQL:open("127.0.0.1", "gta5_gamemode_essential", "root", "PASSWORD")

I’m not really familiar with linking resources to SQL yet but as far as I know, in essentialmode, there’s no such thing as a lib folder and I’m not sure where MySQL would come from. Would that be me exporting the SQL file of the server?

Also if it matters, I’m using HeidiSQL to do all the SQL part.

Error that it creates in the rcon:

[ 2458297] Error loading script foodshops_sv.lua in resource foodhud: foodshops_sv.lua:1: attempt to call a nil value (global ‘require’)
[ 2458297] stack traceback:
[ 2458297] foodshops_sv.lua:1: in main chunk
[ 2458297] Failed to load script foodshops_sv.lua.

Regards,
Marty