zRxnx Scripts
  • Landing page
  • Dependency
    • zrx_utility
      • Exports
      • Client
      • Server
  • Scripts
    • zrx_carlock
      • Configuration
      • Exports
    • zrx_rental
      • Configuration
      • Exports
    • zrx_personalmenu
      • Configuration
      • Exports
    • zrx_restrictedzone
      • Configuration
      • Exports
    • zrx_lobby
      • Configuration
      • Exports
    • zrx_armour
      • Configuration
      • Exports
    • zrx_uniqueid
      • Configuration
      • Exports
    • zrx_blackmarket
      • Configuration
      • Exports
    • zrx_panicbutton
      • Configuration
      • Exports
    • zrx_repairkit
      • Configuration
      • Exports
Powered by GitBook
On this page
  • Client
  • GetPlayerUIDfromSID(serverId)
  • GetPlayerSIDfromUID(uniqueId)
  • Server
  • GetPlayerUIDfromSID(uniqueId)
  • ChangePlayerUID(old_uid, new_uid)

Was this helpful?

Edit on GitHub
  1. Scripts
  2. zrx_uniqueid

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)
PreviousConfigurationNextzrx_blackmarket

Last updated 5 months ago

Was this helpful?