Function OptionButton.setItemMetadata

Sets the metadata of an item. Metadata may be of any type and can be used to store extra information about an item, such as an external string ID.

void setItemMetadata(VariantArg1) (
  in long idx,
  in VariantArg1 metadata
);