ReferenceMiscellaneous

gethwid

Returns the device identifier exposed to scripts.

Syntax

gethwid() -> string

Also available as

get_hwid

Returns

TypeDescription
stringCurrent device identifier.

Description

Treat the value as sensitive account/device metadata. It is not a username, password or authorization token. Hardware and installation changes can affect device identification; do not assume it is a universal machine serial number.

Example

local identifier = gethwid()
print(type(identifier), #identifier)

Notes

These are Game executor contracts. Check build requirements and session lifetimes before using them.