bit.tohex bit.tohex(x: number): string The value as eight lowercase hex digits, zero padded. Example luaCopyprint(bit.tohex(255)) --> 000000ff