Files
overextended.github.io/docs/ox_inventory/Functions/External/Client/displayMetadata.md
T
2022-03-12 15:07:20 +01:00

712 B

Sets a metadata property to display in the tooltip.

-- metadata: table or string
-- value: string (optional)
exports.ox_inventory:displayMetadata(metadata, value)

metadata can either be table or string, if it's a string it's the metadata property that you want to display, value is not optional then.

value represents the label for the property you want to display.

Otherwise metadata can be a table of key value pairs, key being the metadata property and value being the label for that metadata.

Example:

exports.ox_inventory:displayMetadata('mustard', 'Mustard')
exports.ox_inventory:displayMetadata({
    mustard = 'Mustard',
    ketchup = 'Ketchup'
})