mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
645 B
645 B
Sets a metadata property to display in the tooltip.
exports.ox_inventory:displayMetadata(metadata, value)
- metadata:
tableorstring- If metadata is a string then it's the metadata property you want to display, value is not optional then.
- Can be a table of key-value pairs, key being the metadata property and value being the label for that property.
- value?:
string- Label for the string metadata property to be displayed.
Example:
exports.ox_inventory:displayMetadata('mustard', 'Mustard')
exports.ox_inventory:displayMetadata({
mustard = 'Mustard',
ketchup = 'Ketchup'
})