qbcore-framework / qb-smallresources

A compilation of small resources combined into one
GNU General Public License v3.0
51 stars 346 forks source link

optimize(main): implement more efficient way to get player count #396

Closed EinS4ckZwiebeln closed 10 months ago

EinS4ckZwiebeln commented 11 months ago

The old way to get the current player count was inefficient and over-complicated when such easy thing can be done in one line. I don't think I have to explain any further why this solution is more reasonable in this scenario.

Questions (please complete the following information):

FBFezz commented 11 months ago

Seems fine from my test on a localhost