gethwid
Returns the device identifier exposed to scripts.
Syntax
gethwid() -> string
Also available as
get_hwid
Returns
| Type | Description |
|---|---|
string | Current 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
- The example prints the type and length rather than disclosing the identifier.
These are Game executor contracts. Check build requirements and session lifetimes before using them.
