mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
inventory client new properties style update
This commit is contained in:
1 parent
5d2f3e22ff
commit
c013d3ff0c
7 files changed
+40
-32
No files matched your search
@@ -1,18 +1,13 @@
|
||||
Sets a metadata property to display in the tooltip.
|
||||
|
||||
```lua
|
||||
-- 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.
|
||||
* 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
|
||||
@@ -24,4 +19,4 @@ exports.ox_inventory:displayMetadata({
|
||||
mustard = 'Mustard',
|
||||
ketchup = 'Ketchup'
|
||||
})
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user