qb-core
qb-core copied to clipboard
Add clearer messages and handle database errors on player connecting
Description
Remove unneeded Wait()
calls that made connecting to the server take longer.
Refactor code order to have deferral messages actually represent what happens in the code.
Catch and handle database errors and database timing out.
Checklist
- [x] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
- [x] My code fits the style guidelines.
- [x] My PR fits the contribution guidelines.
tested and working really fast!!