diff --git a/server/events.lua b/server/events.lua index 793271e..a3697e4 100644 --- a/server/events.lua +++ b/server/events.lua @@ -28,7 +28,7 @@ if readyFunction ~= nil then local DatabaseInfo = QBCore.Functions.GetDatabaseInfo() if not DatabaseInfo or not DatabaseInfo.exists then return end - local result = MySQL.query.await('SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCEMA = ? AND TABLE_NAME = "bans";', {DatabaseInfo.database}) + local result = MySQL.query.await('SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCEHMA = ? AND TABLE_NAME = "bans";', {DatabaseInfo.database}) if result and result[1] then bansTableExists = true end