⁉️Troubleshooting
Some common question and "issues"
Why do people disconnect from the server, yet I still see them on the ts-10system?
Explanation
This happens when you don't use the latest version of QBCore with the latest trigger QBCore:Server:PlayerDropped
, or if there are issues with the framework files in the ts-10system files.
So how do we fix it?
Make sure to download the latest version of ts-10system with the framework files. After that, open your qb-core/server/events.lua
and search for the playerDropped
event. If you don't see the trigger QBCore:Server:PlayerDropped
, just add it:
TriggerEvent('QBCore:Server:PlayerDropped', Player)
It should look like this:
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?
You will need to find your callsign command and you will need to insert this trigger.
TriggerEvent('QBCore:Server:CallsignChange', src, callsign)
Should look like this:
QBCore.Commands.Add('callsign', Lang:t('commands.callsign'), { { name = 'name', help = Lang:t('info.callsign_name') } }, false, function(source, args)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
Player.Functions.SetMetaData('callsign', table.concat(args, ' '))
TriggerEvent('QBCore:Server:CallsignChange', src, table.concat(args, ' '))
end)
Last updated