Exports
Client
GetPlayerUIDfromSID(serverId)
Gets the UniqueID from a ServerID.
Parameters:
serverId - number - The player server id
Returns:
number - The player unique id
Example:
local svid = GetPlayerServerId(PlayerId())
local targetUID = exports.zrx_uniqueid:GetPlayerUIDfromSID(svid)
print(targetUID)GetPlayerSIDfromUID(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:GetPlayerSIDfromUID(10)
print(targetID)Server
GetPlayerUIDfromSID(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:GetPlayerUIDfromSID(source)
print(targetID)ChangePlayerUID(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:ChangePlayerUID(69, 100)Last updated
Was this helpful?