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

Update GetPlayerByLicense in player.lua

Open Swellington-Soares opened this issue 1 year ago • 0 comments

The function as previously implemented did not make sense, since the user can have more than one character, and it would always only return the first record found by the license. Instead, search to see if any player is online and has the license specified in the search.

Description

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.

Swellington-Soares avatar Feb 11 '24 07:02 Swellington-Soares