PlayerIdentifier

Get any of all the identifiers of a player via identifier name

Parameters description

ParameterTypeDescriptionDefault

playerId

integer

Existing player server Id

----

identifier

string|'all'|table

Identifier type

----

removeNames

boolean?

remove the name(s) of the identifier(s)

false

isArray

boolean?

if you chose more than one identifiers, you can choose to return them in an array format

false

Return:

  • ... | string

Example

local steamHex = HRLib.PlayerIdentifier(playerId, 'steam')
print(steamHex) -- Output: steam:0000

local identifiers = HRLib.PlayerIdentifier(playerId, { 'steam', 'license' }, nil, true)
for i=1, #identifiers do
    print(identifiers[i])
end
--[[ Output:
    steam:0000
    license:0000
]]

Last updated