MISC

GetUUID

Returns the unique hardware identifier of this machine.

Syntax

local userId = ONYX.GetUUID()

Parameters

None

Return(s)

integer — ONYXS account id of the authenticated user.

Behavior

  • The id belongs to the account, not the machine, so it stays the same after reinstalls, GPU changes and on other PCs.
  • Useful for scoping per-user data on your backend or matching a customer in support.

Example(s)

local userId = ONYX.GetUUID()
print("logged in as", userId)