mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -0,0 +1,24 @@
|
||||
Sets a metadata property to display in the tooltip.
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:displayMetadata(metadata, value)
|
||||
```
|
||||
|
||||
* metadata: `table` or `string`
|
||||
* 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:**
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:displayMetadata('mustard', 'Mustard')
|
||||
```
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:displayMetadata({
|
||||
mustard = 'Mustard',
|
||||
ketchup = 'Ketchup'
|
||||
})
|
||||
```
|
||||
Reference in new issue
Block a user