# Troubleshooting

## 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:

```lua
TriggerEvent('QBCore:Server:PlayerDropped', Player)
```

It should look like this:

```lua
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.

```lua
TriggerEvent('QBCore:Server:CallsignChange', src, callsign)
```

Should look like this:

{% code title="qb-policejob/server.main" %}

```lua
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)
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tehsteel.dev/tehsteels-development/ts-10system/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
