Hello! I’m having an issue with my server. I have tried all kinds of ways to fix it. I have a QBCore server, and when I load in and select my player and then hit play, I get kicked for exploitation. There are no anti cheats in my server, nor I’m my fivem directory, if I load into any other server I can load in just fine. There are no errors in console.
Funny thing about this is, I was just playing in my server 2 days ago just fine, and then yesterday is when this all happened, only thing I’ve added is SonoranCMS.
Probably due to qb-anticheat if I had to take a guess. If you don’t have that, search your code base for the message it gives you.
It just leads me to qb-core/server/player.lua/ line 12 and it just shows me the reasons why I’m getting kicked, I’ve tried removing line, I can load in but, get stuck on a black screen, and can’t spawn into server after selecting character.
function QBCore.Player.Login(source, citizenid, newData)
if source and source ~= ‘’ then
if citizenid then
local license = QBCore.Functions.GetIdentifier(source, ‘license’)
local PlayerData = MySQL.prepare.await(‘SELECT * FROM players where citizenid = ?’, { citizenid })
if PlayerData and license == PlayerData.license then
PlayerData.money = json.decode(PlayerData.money)
PlayerData.job = json.decode(PlayerData.job)
PlayerData.position = json.decode(PlayerData.position)
PlayerData.metadata = json.decode(PlayerData.metadata)
PlayerData.charinfo = json.decode(PlayerData.charinfo)
if PlayerData.gang then
PlayerData.gang = json.decode(PlayerData.gang)
else
PlayerData.gang = {}
end
QBCore.Player.CheckPlayerData(source, PlayerData)
else
DropPlayer(source, Lang:t(“info.exploit_dropped”))
TriggerEvent(‘qb-log:server:CreateLog’, ‘anticheat’, ‘Anti-Cheat’, ‘white’, GetPlayerName(source) … ’ Has Been Dropped For Character Joining Exploit’, false)
end
else
QBCore.Player.CheckPlayerData(source, newData)
end
return true
else
QBCore.ShowError(GetCurrentResourceName(), ‘ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!’)
return false
end
end
Looks like there is something wrong with your character’s data and/or your license tied to the character.