GetPlayerIdentifierByType
Docslocal retval = GetPlayerIdentifierByType(playerSrc, identifierType)Description
Get an identifier from a player by the type of the identifier.
Known Identifiers
Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The player to get the identifier for |
identifierType | char* | The string to match in an identifier, this can be `"license"` for example. |
Returns
char*Examples
Official
local playerLicenses = {}
AddEventHandler('playerJoining', function()
playerLicenses[source] = GetPlayerIdentifierByType(source, 'license')
end)