Some minor optimizations I did on the fly, it ain't much but this should improve performance for these functions a little.
My tests with one player resulted in a~5-10% performance gain per function, however there could be a larger gain on higher player counts.
Checklist
[x] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
Description
Some minor optimizations I did on the fly, it ain't much but this should improve performance for these functions a little. My tests with one player resulted in a~5-10% performance gain per function, however there could be a larger gain on higher player counts.
Checklist