From c7693d471de5ee3249ac8a9997e456fdb497d1ff Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 23 Sep 2018 22:00:19 +0200 Subject: [PATCH] mysql-async v3.0.1 support --- server/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/common.lua b/server/common.lua index 4ed0d53a..82b8496f 100644 --- a/server/common.lua +++ b/server/common.lua @@ -17,7 +17,7 @@ function getSharedObject() return ESX end -AddEventHandler('onMySQLReady', function() +MySQL.ready(function() MySQL.Async.fetchAll('SELECT * FROM items', {}, function(result) for i=1, #result, 1 do ESX.Items[result[i].name] = {