brouznouf/fivem-mysql-async

SCRIPT ERROR: @core/server.lua:13: attempt to index a nil value (global 'MySQL')

Closed this issue · 1 comments

Hi ! i'm in server side and have this error : SCRIPT ERROR: @core/server.lua:13: attempt to index a nil value (global 'MySQL')
My Server code.. Have you some idea why Mysql return nil each time ?
Yes in my Manifest @mysql-async/lib/MySQL.lua is in the first.

AddEventHandler('playerConnecting', function(playerName, setKickReason)
    identifiers = GetPlayerIdentifiers(source)
    for i in ipairs(identifiers) do
        print('Player: ' .. playerName .. ', Identifier #' .. i .. ': ' .. identifiers[i])
        print(identifiers[i])
        if i == 1 then
            MySQL.Async.insert('INSERT INTO players (`license`) VALUES (@licence,)',
            { ['licence'] = identifiers[i]},
            function(id)
                print(id)
            end
            )
        end
    end
end)

update my fxserver for more information, and have some bug in my request sql