Syntax
gethwid(): stringReturns
| Name | Type | Description |
|---|---|---|
hardwareId | string | Hardware 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)