โ๏ธTroubleshooting
Some common question and "issues"
Why do people disconnect from the server, yet I still see them on the ts-10system?
Explanation
So how do we fix it?
TriggerEvent('QBCore:Server:PlayerDropped', Player)AddEventHandler('playerDropped', function(reason)
local src = source
if not QBCore.Players[src] then return end
local Player = QBCore.Players[src]
TriggerEvent('qb-log:server:CreateLog', 'joinleave', 'Dropped', 'red', '**' .. GetPlayerName(src) .. '** (' .. Player.PlayerData.license .. ') left..' .. '\n **Reason:** ' .. reason)
TriggerEvent('QBCore:Server:PlayerDropped', Player)
Player.Functions.Save()
QBCore.Player_Buckets[Player.PlayerData.license] = nil
QBCore.Players[src] = nil
end)People change their callsign and it dosen't update what should I do?
So how do we fix it?
Last updated