mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-17 14:36:03 +01:00
100 lines
8.8 KiB
Lua
100 lines
8.8 KiB
Lua
Config = Config or {}
|
|
|
|
Config.Consumables = {
|
|
|
|
--Effects can be applied here, like stamina on coffee for example
|
|
vodka = { emote = "vodkab", canRun = false, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "alcohol", stats = { effect = "stress", time = 5000, amount = 2, thirst = math.random(10,20), canOD = true }},
|
|
beer = { emote = "beer", canRun = false, time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 0, type = "alcohol", stats = { thirst = math.random(10,20), canOD = true }},
|
|
whiskey = { emote = "whiskey", canRun = false, time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 0, type = "alcohol", stats = { thirst = math.random(10,20), canOD = true }},
|
|
sandwich = { emote = "sandwich", canRun = false, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "food", stats = { hunger = 20, }},
|
|
|
|
twerks_candy = { emote = "egobar", canRun = true, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "food", stats = { hunger = math.random(10,15), }},
|
|
snikkel_candy = { emote = "egobar", canRun = true, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "food", stats = { hunger = math.random(10,15), }},
|
|
|
|
coffee = { emote = "coffee", canRun = false, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "drink", stats = { time = 10000, thirst = math.random(10,15), }},
|
|
water_bottle = { emote = "drink", canRun = false, time = math.random(5000, 6000), stress = 0, heal = 0, armor = 0, type = "drink", stats = { thirst = 20, }},
|
|
tosti = { emote = "sandwich", canRun = false, time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 0, type = "food", stats = { hunger = math.random(10,15), }},
|
|
|
|
kurkakola = { emote = "ecola", canRun = false, time = math.random(5000, 6000), stress = math.random(2, 4), heal = 0, armor = 0, type = "drink", stats = { thirst = math.random(10,20), }},
|
|
|
|
--[[----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
-- Items that effect status changes, like bleeding can cause problems as they are all handled in their own scripts
|
|
-- Testing these but they may be best left handled by default scripts
|
|
["ifaks"] = { emote = "oxy", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 10, armor = 0, type = "drug", stats = { effect = "heal", amount = 6, widepupils = false, canOD = false } },
|
|
["bandage"] = { emote = "oxy", time = math.random(5000, 6000), stress = 0, heal = 10, armor = 0, type = "drug", stats = { effect = "heal", amount = 3, widepupils = false, canOD = false } }, },
|
|
]]
|
|
|
|
--Testing effects & armor with small functionality to drugs - This may be another one left to default scripts
|
|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
--[[ --Testing effects & armor with small functionality to drugs - This may be another one left to default scripts
|
|
joint = { emote = "smoke3", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 10, type = "drug", stats = { screen = "weed", effect = "armor", widepupils = false, canOD = false } },
|
|
|
|
cokebaggy = { emote = "coke", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 0, type = "drug", stats = { screen = "focus", effect = "stamina", widepupils = false, canOD = true } },
|
|
--crackbaggy = { emote = "coke", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 0, type = "drug", stats = { effect = "heal", widepupils = false, canOD = true } },
|
|
xtcbaggy = { emote = "oxy", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 10, type = "drug", stats = { effect = "strength", widepupils = true, canOD = true } },
|
|
oxy = { emote = "oxy", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 0, type = "drug", stats = { effect = "heal", widepupils = false, canOD = false } },
|
|
meth = { emote = "coke", time = math.random(5000, 6000), stress = math.random(12, 24), heal = 0, armor = 10, type = "drug", stats = { effect = "stamina", widepupils = false, canOD = true } },
|
|
]] ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
--Example item
|
|
-- heartstopper = {
|
|
-- emote = "burger", -- Select an emote from below, it has to be in here
|
|
-- time = math.random(5000, 6000), -- Amount of time it takes to consume the item
|
|
-- stress = math.random(1,2), -- Amount of stress relief, can be 0
|
|
-- heal = 0, -- Set amount to heal by after consuming
|
|
-- armor = 5, -- Amount of armor to add
|
|
-- type = "food", -- Type: "alcohol" / "drink" / "food"
|
|
-- canRun = true, -- If true player can run while using the item, if not it will cancel the event
|
|
--
|
|
-- stats = {
|
|
-- screen = "thermal", -- The screen effect to be played when after consuming the item "rampage" "turbo" "focus" "weed" "trevor" "nightvision" "thermal"
|
|
-- effect = "heal", -- The status effect given by the item, "heal" / "stamina"
|
|
-- -- This supports ps-buffs effects "armor" "stress" "swimming" "hacking" "intelligence" "luck" "strength"
|
|
-- time = 10000, -- How long the effect should last (if not added it will default to 10000)
|
|
-- amount = 6, -- How much the value is changed by per second
|
|
-- hunger = math.random(10, 20), -- The hunger/thirst stats of the item, if not found in the items.lua
|
|
-- thirst = math.random(10, 20), -- The hunger/thirst stats of the item, if not found in the items.lua
|
|
-- canOD = true, -- This creates an OD Effect, killing the user if they have too much
|
|
-- },
|
|
-- --Reward Items Variables
|
|
-- -- These can be the only thing in a consumable table and the item will still work
|
|
-- amounttogive = 3, -- Used for "RewardItems", tells the script how many to give
|
|
-- rewards = {
|
|
-- [1] = {
|
|
-- item = "plastic", -- prize item name
|
|
-- max = 10, -- max amount to give (this is put into math.random(1, max) )
|
|
-- rarity = 1, -- the rarity system, 1 being rarest, 4 being most common
|
|
-- },
|
|
-- },
|
|
-- },
|
|
|
|
-- Example Box Item
|
|
-- ["9_box"] = { -- Name of the box item in the shared
|
|
-- emote = "uncuff", -- The emote than should run when "unboxing"
|
|
-- canRun = true, -- If true player can run while using the item, if not it will cancel the event
|
|
-- time = 3500, -- How long it takes to use the item
|
|
-- type = "pack", -- Designate it as a "pack" to the script knows what to do
|
|
-- pack = {
|
|
-- item = "9_ammo", -- The item to give from the box when complete
|
|
-- amount = 20 -- How many of the item to give
|
|
-- },
|
|
-- },
|
|
|
|
-- Example Cigar Item wiht requirements
|
|
-- ["cigar"] = { -- Name of the item in your shared items
|
|
-- emote = "smokecigar", -- The emote than should run when "smoking"
|
|
-- canRun = true, -- If true player can run while using the item, if not it will cancel the event
|
|
-- time = math.random(5000, 6000), -- How long it takes to use the item
|
|
-- type = "smoke", -- Designate it as a "smoke" to the script knows what to do
|
|
-- requiredItem = "lighter", -- Set a required item making it unsable if they don't have it
|
|
-- stats = {
|
|
-- effect = "stress",
|
|
-- time = 5000,
|
|
-- amount = math.random(10, 15),
|
|
-- canOD = false
|
|
-- }
|
|
-- },
|
|
} |