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:
Server
GetPlayerUIDfromSID(uniqueId)
Gets the ServerID from an UniqueID.
Parameters:
uniqueId - number - The player unique id
Returns:
number - The player server id
Example:
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:
Last updated
Was this helpful?