qb-core icon indicating copy to clipboard operation
qb-core copied to clipboard

Add wait on removing playerdata

Open Kmack710 opened this issue 2 years ago • 3 comments

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

Kmack710 avatar Jun 10 '22 08:06 Kmack710

You will need to update your pull request to remove the trailing whitespaces on line 20 to ensure it passes the lint check

uShifty avatar Jun 10 '22 21:06 uShifty

I would recommend using a TimeOut instead of a createthread + timer, cleaner code and better functionality.

FjamZoo avatar Jun 12 '22 20:06 FjamZoo

image

GhzGarage avatar Jun 16 '22 01:06 GhzGarage