Exports

Client

GetUID(serverId)

Gets the UniqueID from a ServerID.

Parameters: serverId - number - The player server id

Returns: number - The player unique id

Example:

local targetUID = exports.zrx_uniqueid:GetUID(GetPlayerServerId(targetPlayer) or nil)

print(targetUID)

Server

GetID(uniqueId)

Gets the ServerID from an UniqueID.

Parameters: uniqueId - number - The player unique id

Returns: number - The player server id

Example:

local targetID = exports.zrx_uniqueid:GetID(source)

print(targetID)

ChangeUID(old_uid, new_uid)

Changes the player UniqueID.

Parameters: old_uid - number - The player current unique id new_uid - number - The player new unique id

Example:

exports.zrx_uniqueid:ChangeUID(69, 100)

Last updated