qb-core
qb-core copied to clipboard
Add wait on removing playerdata
Describe Pull request Without the wait you cant use that players data at all on any other playerDropped events. Making you unable to get players names or citizenids for logs this 10 second wait gives scripts enough time to get the players info and use it before its gone.
If your PR is to fix an issue mention that issue here
- Cant use any player data on log out like check job to remove from duty or get their name/citizenId for any logs
Questions (please complete the following information):
- Have you personally loaded this code into an updated qbcore project and checked all it's functionality? Yes
- Does your code fit the style guidelines? Yes
- Does your PR fit the contribution guidelines? Yes
You will need to update your pull request to remove the trailing whitespaces on line 20 to ensure it passes the lint check
I would recommend using a TimeOut instead of a createthread + timer, cleaner code and better functionality.