PlayerIdentifierByIndex

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

Parameters description

Parameter
Type
Description
Default

playerId

integer

Existing player server Id

----

identifier

integer|'all'|table

Identifier number ( 0-8 )

----

removeNames

boolean?

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

false

isArray

boolean?

false

Example

local steamHex = HRLib.PlayerIdentifierByIndex(playerId, 0)
print(steamHex) -- Output: steam:0000

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

Last updated