Utilities

gethwid

Returns the hardware identifier exposed to scripts.

Syntax

gethwid(): string

Returns

NameTypeDescription
hardwareIdstringHardware identifier string.

Description

Returns the hardware identifier exposed to scripts.

Call it without parameters. The function reads the needed context from the current runtime state.

It returns hardwareId (string). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = gethwid()
print(result)