Miscellaneous

gethwid

Returns Real's hardware identifier string.

Syntax

gethwid(): string

Returns

NameTypeDescription
hardwareIdstringHardware identifier string.

Description

Returns Real's hardware identifier string.

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

Read Real's cached hardware identifier string.

local hardwareId = gethwid()
print(hardwareId)