Update main.lua

This commit is contained in:
Mycroft
2021-04-06 21:10:46 +01:00
parent eb8152fc4f
commit bd78870f60
+3 -3
View File
@@ -7,9 +7,9 @@ local IdentifierTables = {}
function GetTables()
MySQL.ready(function ()
MySQL.Async.fetchAll(" SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'owner'"}, function(result)
MySQL.Async.fetchAll('SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = @id AND TABLE_SCHEMA = @db', { ['@id'] = "identifier", ["@db"] = "plumeesx_11cb80"}, function(result)
if result then
print(json.encode(result))
print(json.encode(result))
for k, v in pairs(result) do
table.insert( IdentifierTables, {table = v.TABLE_NAME, column = "owner"})
end
@@ -25,7 +25,7 @@ function GetTables()
end)
end)
end
GetTables()
RegisterServerEvent("kashactersS:SetupCharacters")
AddEventHandler('kashactersS:SetupCharacters', function()