mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-19 15:36:05 +01:00
Update README.md
This commit is contained in:
@@ -13,7 +13,7 @@ It already takes control of default qbcore food and drink, but you would probabl
|
|||||||
|
|
||||||
To add an item, you only need to add a new item table in the Config.Consumables like this:
|
To add an item, you only need to add a new item table in the Config.Consumables like this:
|
||||||
```lua
|
```lua
|
||||||
["heartstopper"] = {
|
["heartstopper"] = {
|
||||||
emote = "burger", -- Select an emote from below, it has to be in here
|
emote = "burger", -- Select an emote from below, it has to be in here
|
||||||
stress = math.random(1,2), -- Amount of stress relief, can be 0
|
stress = math.random(1,2), -- Amount of stress relief, can be 0
|
||||||
heal = 0, -- Set amount to heal by after consuming
|
heal = 0, -- Set amount to heal by after consuming
|
||||||
@@ -21,7 +21,7 @@ To add an item, you only need to add a new item table in the Config.Consumables
|
|||||||
type = "food", -- Type: "alcohol" / "drink" / "food"
|
type = "food", -- Type: "alcohol" / "drink" / "food"
|
||||||
effect = { effect = "healdouble", }, -- The status effect given by the item, "heal" / "healdouble" / "stamina"
|
effect = { effect = "healdouble", }, -- The status effect given by the item, "heal" / "healdouble" / "stamina"
|
||||||
stats = { hunger = math.random(10,20), }, -- The stats of the item, if not found in the items.lua
|
stats = { hunger = math.random(10,20), }, -- The stats of the item, if not found in the items.lua
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
This script supports dpemotes style emotes, so if you have some that you want to be triggered when eating or drinking drop it in the Config.Emotes
|
This script supports dpemotes style emotes, so if you have some that you want to be triggered when eating or drinking drop it in the Config.Emotes
|
||||||
|
|||||||
Reference in New Issue
Block a user