Config File
Last updated
Last updated
Config = {
Locale = "en",
Clothing = function() -- Your clothing menu event/ export(Client) [Optional]
TriggerEvent("qb-clothing:client:openOutfitMenu")
-- TriggerEvent("illenium-appearance:client:openOutfitMenu")
-- exports["fivem-appearance"]:openWardrobe()
-- TriggerEvent("rcore_clothes:openOutfits")
-- exports["ak47_clothing"]:openOutfit()
-- TriggerEvent("ak47_clothing:openOutfitMenu")
end,
Clockin = function() -- Client event to clockin/out [Optional]
TriggerServerEvent("QBCore:ToggleDuty")
end,
Evidence = function(status, duration) -- Your evidence event/export (Client) [Optional]
-- Duration is in seconds
if status == "weedsmell" then
TriggerEvent("evidence:client:SetStatus", status, duration)
elseif status == "widepupils" then
TriggerEvent("evidence:client:SetStatus", status, duration)
elseif status == "redeyes" then
TriggerEvent("evidence:client:SetStatus", status, duration)
end
end,
PaymentToSociety = true, -- Enable to give money to society via register. The society export can be found in ez_lib (Ez_lib.Shared.AddMoneyToSociety(society, amount))
Payment = function() -- Your payment event/export (Client)
TriggerEvent(ResourceName..":PayDefault")
-- Want to use your own? Get rid of the trigger above and add your own client or server trigger.
end,
UseRcorePool = true, -- Enable to clear pool table, allowing players to play on the pool table.
}
--[[
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââ¦ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââ¦ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
- Model: Model of the prop
- BongTables: Locations of tables with bongs to smoke
- Strains: what items you can use to smoke bong
- SmokeTime: For Bong in seconds
- HighTime: For Bong in seconds
- Stress: Stress to remove when smoking bong
]]
Config.Bong = { -- Bong settings
Model = "prop_bong_01", -- Model of the bong
BongTables = { -- Locations of tables with bongs to smoke
vector3(199.54, -247.01, 53.07),
vector3(195.73, -257.55, 53.07),
vector3(193.71, -263.11, 53.07),
vector3(192.02, -267.75, 53.07),
vector3(183.75, -264.74, 53.07),
vector3(186.01, -258.53, 53.07),
vector3(197.35, -253.1, 53.07),
vector3(188.09, -252.81, 53.07),
},
Strains = { -- what items you can use to smoke bong
"weed_whitewidow_bag",
"weed_skunk_bag",
"weed_ogkush_bag",
"weed_ak47_bag",
"weed_amnesia_bag",
"weed_purplehaze_bag",
"weed_gelato_bag",
"weed_zkittlez_bag"
},
SmokeTime = 2.8, -- For Bong in seconds
HighTime = 30, -- For Bong in seconds
Stress = {min = 5, max = 10}, -- Stress to remove when smoking bong
}
--[[
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Add multiple locations for different jobs. Use the template below to add more locations found on our DOCUMENTATION FOR THE SCRIPT!
]]
Config.Locations = {
{
Job = "whitewidow", -- Job name
Blip = { enabled = true, name = "White Widow", coords = vector3(193.24, -244.53, 54.07), sprite = 469, color = 52, scale = 1.0, }, -- Blip Settings
Vehicle = {
enabled = true, -- Set false if you do not want to use this feature
model = "adder", -- Model of the vehicle to spawn
spawnLocation = vector4(198.45, -277.61, 48.39, 252.49), -- Location at which the vehicle spawns at
deposit = 100, -- Deposit of borrowing vehicle, given back if returned
spawnerLocation = vector4(197.76, -265.13, 50.56, 337.94), -- Where the prop spawns to take out a vehicle when targetted
plate = "WWIDOW", -- The plate number you want the vehicle to have
},
Locations = {
shop = {vector4(175.43, -239.87, 50.17, 170.0), }, -- Where employees go get ingredients and items
cashRegister = {
vector4(197.93, -235.71, 54.19, 116.55),
vector4(188.02, -243.52, 54.98, 251.71),
vector4(188.87, -241.03, 54.99, 253.36),
},
cuttingWeed = { vector4(165.81, -235.84, 49.94, 270.0),}, -- Cutting weed into baggies
rollingJoints = { vector4(185.65, -241.5, 54.12, 70.72), },
cooking = { vector4(171.88, -234.58, 50.06, 341.65), },
customerStorage = { { coords = vector4(188.5, -239.72, 54.12, 70.0), stash = {maxweight = 40000, slots = 5} }, }, -- Trays, etc, Storage anyone can access
employeeStorage = { { coords = vector4(180.03, -243.29, 53.42, 70.0), stash = {maxweight = 400000, slots = 50} }, }, -- Shared Storage only for employees, for stock
snackTable = { vector4(187.12, -247.45, 54.24, 71.12), },
clothing = { -- Use only if you have a clockin system. Check function above.
vector4(174.17, -235.02, 50.06, 71.95),
vector4(184.41, -241.88, 54.07, 71.95),
},
clockin = { vector4(182.43, -250.22, 53.87, 135.0) },
plantHarvesting = {
["weed_skunk_crop"] = {
{coords = vector4(164.45, -248.43, 50.06, 340.0), width = 10.0, length = 1.0, },
},
["weed_ogkush_crop"] = {
{coords = vector4(166.15, -243.68, 50.07, 340.0), width = 10.0, length = 1.0, },
},
["weed_whitewidow_crop"] = {
{coords = vector4(170.62, -241.11, 50.88, 340.0), width = 5.0, length = 3.0, },
},
["weed_ak47_crop"] = {
{coords = vector4(165.66, -244.79, 50.06, 340.0), width = 10.0, length = 1.0, },
},
["weed_amnesia_crop"] = {
{coords = vector4(165.31, -246.07, 50.06, 340.0), width = 10.0, length = 1.0, },
},
["weed_purplehaze_crop"] = {
{coords = vector4(164.94, -247.16, 50.06, 340.0), width = 10.0, length = 1.0, },
},
["weed_gelato_crop"] = {
{coords = vector4(164.12, -239.78, 50.02, 340.0), width = 5.0, length = 1.0, },
},
["weed_zkittlez_crop"] = {
{coords = vector4(164.95, -237.9, 50.07, 340.0), width = 5.0, length = 1.0, },
},
}
},
PropTable = { -- Spawn props at certain locations, already set for white widow mlo provided. Leave empty if nothing required to spawn!
{ model = "prop_cooker_03", coords = vector4(171.88, -234.58, 50.06, 341.65) }, -- Cooker in basement to cook edibles
{ model = "prop_park_ticket_01", coords = vector4(197.66, -265.02, 50.55, 340.85) }, -- Parking garage prop
},
},
-- Add more locations if you want to! Use above as template
}
--[[
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¦âââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¦âââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Built in Effects:
- JointEffect() -- Screen Effect, try it out in server!
- BongEffect() -- Screen Effect, try it out in server!
- RampageEffect() -- Screen Effect, try it out in server!
- HealthEffect(time(sec), health(int)) -- Gives player health over time in seconds. Every 1 second, health is increased by health DIV time.
- StaminaEffect(time(sec)) -- Gives player stamina for time in seconds.
Each Consumable can have... ALL OPTIONAL
- Armour = int -- Amount of armour to give player
- Stress = int -- Amount of stress to remove from player
- Hunger = int -- Amount of hunger to remove from player
- Thirst = int -- Amount of thirst to remove from player
- RequiredItems = {["item"] = int} -- Required items to use the consumable
- RemoveItem = bool -- Remove the item after use
- Progress = { -- Progress bar settings
label = string, -- Label of the progress bar
time = int, -- Time in seconds to complete the progress
animation = {task = string}, -- Animation to play while doing the progress
animationInCar = { animDict = string, anim = string}, -- Optional Animation in car
animationOptions = { Prop = string, PropBone = int, PropPlacement = {x, y, z, xRot, yRot, zRot}, EmoteMoving = bool, EmoteLoop = bool, EmoteStuck = bool}, -- Prop to attach to player
}
- Success = function() -- Function to run when progress is successful
]]
Config.Consumables = {
weed_skunk_joint = {
Armour = math.random(9,13),
Stress = math.random(9,13),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_whitewidow_joint = {
Armour = math.random(12,18),
Stress = math.random(11,13),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_ak47_joint = {
Armour = math.random(16,28),
Stress = math.random(9,13),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_ogkush_joint = {
Armour = math.random(9,13),
Stress = math.random(9,13),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_gelato_joint = {
Armour = math.random(9,13),
Stress = math.random(18,23),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_zkittlez_joint = {
Armour = math.random(7,15),
Stress = math.random(9,23),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_purplehaze_joint = {
Armour = math.random(13,24),
Stress = math.random(20,30),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
weed_amnesia_joint = {
Armour = math.random(9,13),
Stress = math.random(9,13),
RequiredItems = {["lighter"] = 1},
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Joint"],
time = 5.5,
animation = {animDict = "Scenario", anim = "WORLD_HUMAN_SMOKING_POT"},
disableCombat = true,
animationInCar = { animDict = "amb@world_human_smoking@male@male_a@enter", anim = "enter"}, -- Optional Animation in car
animationOptions = { Prop = "p_cs_joint_02", PropBone = 47419, PropPlacement = {0.015, -0.009, 0.003, 55.0, 0.0, 110.0}, EmoteMoving = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
JointEffect()
Config.Evidence("widepupils", 90)
Config.Evidence("redeyes", 200)
Config.Evidence("weedsmell", 300)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
ak47_cookie = {
Armour = math.random(10,20),
Stress = math.random(5,13),
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Cookie"],
time = 5.5,
disableCombat = true,
animation = { animDict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger"},
animationOptions = { Prop = "cookies_urbalife", PropBone = 18905, PropPlacement = {0.13, 0.05, 0.02, 130.0, 16.0, 60.0}, EmoteMoving = true, EmoteLoop = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
RampageEffect()
HealEffect(6, 40) -- Heal increased by 30 total after 6 seconds (5 health per second)
Config.Evidence("widepupils", 90)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
skunk_cookie = {
Armour = math.random(5,10),
Stress = math.random(1,4),
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Cookie"],
time = 5.5,
disableCombat = true,
animation = { animDict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger"}, -- Optional Animation in car
animationOptions = { Prop = "cookies_urbalife", PropBone = 18905, PropPlacement = {0.13, 0.05, 0.02, 130.0, 16.0, 60.0}, EmoteMoving = true, EmoteLoop = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
RampageEffect()
HealEffect(6, 30) -- Heal increased by 30 total after 6 seconds (5 health per second)
Config.Evidence("widepupils", 90)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
whitewidow_cookie = {
Armour = math.random(5,10),
Stress = math.random(1,4),
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Cookie"],
time = 5.5,
disableCombat = true,
animation = { animDict = "mp_player_inteat@burger", anim = "mp_player_int_eat_burger"},
animationOptions = { Prop = "cookies_urbalife", PropBone = 18905, PropPlacement = {0.13, 0.05, 0.02, 130.0, 16.0, 60.0}, EmoteMoving = true, EmoteLoop = true,}
},
Success = function()
-- Anything you want to do when the progress is successful
RampageEffect()
HealEffect(6, 30) -- Heal increased by 30 total after 6 seconds (5 health per second)
Config.Evidence("widepupils", 90)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
strawberrygummybear = {
Armour = math.random(5,10),
Stress = math.random(30,40),
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Gummy"],
time = 5.5,
disableCombat = true,
animation = { animDict = "mp_suicide", anim = "pill"}, -- Optional Animation in car
},
Success = function()
-- Anything you want to do when the progress is successful
RampageEffect()
StaminaEffect(10) -- Stamina for 10 seconds
Config.Evidence("widepupils", 90)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
raspberrygummybear = {
Armour = math.random(5,10),
Stress = math.random(30,40),
RemoveItem = true,
Progress = {
label = Loc[Config.Locale].progress["Gummy"],
time = 5.5,
disableCombat = true,
animation = { animDict = "mp_suicide", anim = "pill"}, -- Optional Animation in car
},
Success = function()
-- Anything you want to do when the progress is successful
RampageEffect()
StaminaEffect(10) -- Stamina for 10 seconds
Config.Evidence("widepupils", 90)
end,
Cancelled = function()
-- Anything you want to do when the progress is cancelled
Ez_lib.Shared.TriggerNotify(nil, Loc[Config.Locale].error["cancelled"], "error")
end,
},
}
--[[
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
The crafting system is fully open source in ez_lib..
e.g. Ez_lib.Functions.Crafting({craftingTable = Config.Crafting.Trimming, imageTemplate = imageTemplate, Items = Items})
Adding/ Modifying items is self-explanitory. Just follow the format below.
{ item = "item_name", recipe = { ["item_needed"] = 1, ["item_needed"] = 1 }, amount = 1 },
The Header is the title of the crafting menu when you open it. The Progress relates to the progress bar.
]]
Config.Crafting = {
Joints = {
Items = {
{ item = "weed_skunk_joint", recipe = { ["weed_skunk_bag"] = 1, ["rolling_paper"] = 3, }, amount = math.random(1, 4) },
{ item = "weed_ogkush_joint", recipe = { ["weed_ogkush_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_whitewidow_joint", recipe = { ["weed_whitewidow_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_ak47_joint", recipe = { ["weed_ak47_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_amnesia_joint", recipe = { ["weed_amnesia_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_purplehaze_joint", recipe = { ["weed_purplehaze_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_gelato_joint", recipe = { ["weed_gelato_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
{ item = "weed_zkittlez_joint", recipe = { ["weed_zkittlez_bag"] = 1, ["rolling_paper"] = 3 }, amount = math.random(1, 4) },
},
Menu = {
header = Loc[Config.Locale].target["roll_joints"],
},
Progress = {
label = Loc[Config.Locale].progress["Rolling"],
time = 3,
animation = { animDict = "amb@prop_human_parking_meter@male@base", anim = "base" },
},
},
Food = {
Items = {
{ item = "strawberrygummybear", recipe = { ["gummymould"] = 1, ["strawberry"] = 1, ["gelatine"] = 1, ["sugar"] = 2, ["weed_ogkush_bag"] = 1 }, amount = math.random(5, 7) },
{ item = "raspberrygummybear", recipe = { ["gummymould"] = 1, ["raspberry"] = 1, ["gelatine"] = 1, ["sugar"] = 1, ["weed_ogkush_bag"] = 1 }, amount = math.random(5, 7) },
{ item = "ak47_cookie", recipe = { ["eggs"] = 1, ["flour"] = 1, ["butter"] = 1, ["bakingsoda"] = 1, ["milk"] = 1, ["weed_ak47_bag"] = 1 }, amount = math.random(3, 5) },
{ item = "skunk_cookie", recipe = { ["eggs"] = 1, ["flour"] = 1, ["butter"] = 1, ["bakingsoda"] = 1, ["milk"] = 1, ["weed_skunk_bag"] = 1 }, amount = math.random(3, 5) },
{ item = "whitewidow_cookie", recipe = { ["eggs"] = 1, ["flour"] = 1, ["butter"] = 1, ["bakingsoda"] = 1, ["milk"] = 1, ["weed_whitewidow_bag"] = 1 }, amount = math.random(3, 5) }
},
Menu = {
header = Loc[Config.Locale].target["use_stove"],
},
Progress = {
label = Loc[Config.Locale].progress["Cooking"],
time = 5,
animation = { animDict = "amb@prop_human_bbq@male@base", anim = "base" },
},
},
Trimming = {
Items = {
{ item = "weed_skunk_bag", recipe = { ["weed_skunk_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_ogkush_bag", recipe = { ["weed_ogkush_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_whitewidow_bag", recipe = { ["weed_whitewidow_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_ak47_bag", recipe = { ["weed_ak47_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_amnesia_bag", recipe = { ["weed_amnesia_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_purplehaze_bag", recipe = { ["weed_purplehaze_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_gelato_bag", recipe = { ["weed_gelato_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) },
{ item = "weed_zkittlez_bag", recipe = { ["weed_zkittlez_crop"] = 1, ["empty_weed_bag"] = 20 }, amount = math.random(1, 3) }
},
Menu = {
header = Loc[Config.Locale].target["trim_weed"],
},
Progress = {
label = Loc[Config.Locale].progress["Trimming"],
time = 5,
animation = { animDict = "amb@prop_human_parking_meter@male@base", anim = "base" },
},
},
}
--[[
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Add required item or set to false if you dont want to have a required item.
Each crop consists of a Progress bar, Amount of items to get when finished and a Chance of Success. To remove chance of failure, set to 100.
]]
Config.CuttingCrops = {
RequiredItem = "drug_shears", -- Set to nil if you dont want to have a required item
Crops = {
weed_skunk_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4}, -- Quantity of items to get when finished
Chance = 90, -- Chance of Success when farming, in percentage (i.e. 100 = no failure)
},
weed_ogkush_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 70,
},
weed_ak47_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 40,
},
weed_whitewidow_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 70,
},
weed_amnesia_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 60,
},
weed_purplehaze_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 30,
},
weed_gelato_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 70,
},
weed_zkittlez_crop = {
Progress = {
label = Loc[Config.Locale].progress["Harvesting"],
time = 10,
animation = {animDict = "anim@amb@business@weed@weed_inspecting_lo_med_hi@", anim = "weed_crouch_checkingleaves_idle_01_inspector"},
canCancel = true,
disableMovement = true,
},
Amount = {min = 2, max = 4},
Chance = 40,
},
}
}
--[[
ââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââ
The shops are fully open source in ez_lib, using the inventory system.
You can add as many shops as you want, with as many items as you want.
]]
Config.Shops = {
StorageItems = { -- For job only players, to get items to sell or craft food
label = "Storage",
items = {
{ name = "eggs", price = 0, amount = 50, info = {}, type = "item", slot = 1, },
{ name = "flour", price = 0, amount = 50, info = {}, type = "item", slot = 2, },
{ name = "sugar", price = 0, amount = 50, info = {}, type = "item", slot = 3, },
{ name = "gelatine", price = 0, amount = 50, info = {}, type = "item", slot = 4, },
{ name = "butter", price = 0, amount = 50, info = {}, type = "item", slot = 5, },
{ name = "bakingsoda", price = 0, amount = 50, info = {}, type = "item", slot = 6, },
{ name = "gummymould", price = 0, amount = 50, info = {}, type = "item", slot = 7, },
{ name = "chocolatechips", price = 0, amount = 50, info = {}, type = "item", slot = 8, },
{ name = "raspberry", price = 0, amount = 50, info = {}, type = "item", slot = 9, },
{ name = "strawberry", price = 0, amount = 50, info = {}, type = "item", slot = 10, },
{ name = "milk", price = 0, amount = 50, info = {}, type = "item", slot = 11, },
{ name = "empty_weed_bag", price = 0, amount = 1000, info = {}, type = "item", slot = 12 },
{ name = "rolling_paper", price = 0, amount = 2000, info = {}, type = "item", slot = 13 },
{ name = "lighter", price = 0, amount = 1000, info = {}, type = "item", slot = 14 },
{ name = "bong", price = 0, amount = 1000, info = {}, type = "item", slot = 15 },
{ name = "whitewidow_menu", price = 0, amount = 1000, info = {}, type = "item", slot = 16 },
{ name = "drug_shears", price = 0, amount = 1, info = {}, type = "item", slot = 17 }
},
},
SnackTable = { -- Items list for snack table, not job restricted, for any player
label = "Shop",
items = { -- You need to add your own items here, any you want
{ name = "kurkakola", price = 3, amount = 100, info = {}, type = "item", slot = 1 },
{ name = "water_bottle", price = 2, amount = 100, info = {}, type = "item", slot = 2 },
{ name = "twerks_candy", price = 2, amount = 100, info = {}, type = "item", slot = 3 },
{ name = "snikkel_candy", price = 2, amount = 100, info = {}, type = "item", slot = 4 },
},
},
}
--[[
âââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââ
Add as many as your want anywhere in your server!!!
]]
Config.Chairs = { -- Add sitable chairs over here, Chairs of the mlo provided are already done.
-- Table1
{ coords = vector4(197.85, -246.37, 54.15, 255.52), stand = vector3(198.34, -246.44, 54.07) },
{ coords = vector4(198.85, -245.16, 54.15, 205.82), stand = vector3(199.06, -245.57, 54.07) },
{ coords = vector4(200.44, -245.1, 54.15, 202.39), stand = vector3(200.66, -245.48, 54.07) },
{ coords = vector4(198.14, -248.56, 54.07, 341.92), stand = vector3(198.4, -248.17, 54.07) },
{ coords = vector4(199.67, -249.16, 54.07, 346.58), stand = vector3(199.8, -248.67, 54.06) },
{ coords = vector4(201.09, -248.43, 54.07, 76.05), stand = vector3(200.66, -248.13, 54.07) },
{ coords = vector4(201.62, -247.05, 54.07, 76.05), stand = vector3(201.13, -246.8, 54.07) },
-- Table2
{ coords = vector4(195.58, -252.18, 54.15, 250.54), stand = vector3(196.15, -252.25, 54.07) },
{ coords = vector4(195.49, -253.8, 54.15, 295.21), stand = vector3(196.0, -253.51, 54.07) },
{ coords = vector4(196.95, -254.91, 54.15, 342.26), stand = vector3(197.21, -254.37, 54.07) },
{ coords = vector4(199.22, -254.0, 54.07, 76.05), stand = vector3(198.54, -253.98, 54.07) },
{ coords = vector4(199.63, -252.74, 54.07, 76.05), stand = vector3(199.05, -252.52, 54.07) },
{ coords = vector4(198.84, -251.21, 54.07, 169.56), stand = vector3(198.68, -251.74, 54.07) },
{ coords = vector4(197.36, -250.6, 54.07, 169.56), stand = vector3(197.11, -251.18, 54.07) },
-- Table3
{ coords = vector4(197.84, -257.31, 54.07, 76.05), stand = vector3(197.4, -257.06, 54.07) },
{ coords = vector4(197.34, -258.79, 54.07, 76.05), stand = vector3(196.87, -258.53, 54.07) },
{ coords = vector4(195.91, -259.4, 54.07, 345.84), stand = vector3(198.68, -251.74, 54.07) },
{ coords = vector4(194.4, -258.86, 54.07, 345.84), stand = vector3(197.11, -251.18, 54.07) },
-- Table4
{ coords = vector4(195.46, -264.17, 54.07, 76.05), stand = vector3(194.88, -264.01, 54.06) },
{ coords = vector4(195.96, -262.64, 54.07, 76.05), stand = vector3(195.41, -262.56, 54.07) },
{ coords = vector4(193.83, -260.77, 54.07, 169.56), stand = vector3(193.51, -261.25, 54.07) },
{ coords = vector4(195.21, -261.32, 54.07, 169.56), stand = vector3(194.92, -261.8, 54.07) },
-- Table5
{ coords = vector4(194.27, -267.51, 54.07, 76.05), stand = vector3(193.73, -267.16, 54.07) },
{ coords = vector4(193.67, -268.9, 54.07, 76.05), stand = vector3(193.19, -268.65, 54.07) },
{ coords = vector4(192.25, -269.68, 54.07, 345.84), stand = vector3(192.41, -269.14, 54.07) },
{ coords = vector4(190.72, -269.1, 54.07, 345.84), stand = vector3(191.0, -268.63, 54.07) },
-- Table6
{ coords = vector4(185.65, -265.1, 54.15, 77.95), stand = vector3(185.05, -265.21, 54.07) },
{ coords = vector4(184.34, -262.63, 54.15, 136.57), stand = vector3(184.02, -263.21, 54.07) },
{ coords = vector4(182.25, -263.22, 54.07, 253.6), stand = vector3(182.86, -263.26, 54.07) },
{ coords = vector4(181.71, -264.73, 54.07, 253.6), stand = vector3(182.39, -264.71, 54.07) },
{ coords = vector4(182.44, -266.17, 54.07, 345.84), stand = vector3(182.74, -265.6, 54.07) },
{ coords = vector4(183.95, -266.75, 54.07, 345.84), stand = vector3(184.25, -266.17, 54.07) },
-- Table7
{ coords = vector4(187.86, -259.04, 54.15, 76.21), stand = vector3(187.23, -258.81, 54.07) },
{ coords = vector4(186.98, -260.16, 54.15, 28.77), stand = vector3(186.59, -259.68, 54.07) },
{ coords = vector4(185.35, -260.21, 54.15, 339.18), stand = vector3(185.58, -259.63, 54.07) },
{ coords = vector4(184.04, -258.4, 54.07, 253.6), stand = vector3(184.6, -258.56, 54.07) },
{ coords = vector4(184.56, -256.91, 54.07, 253.6), stand = vector3(185.12, -257.12, 54.07) },
{ coords = vector4(186.18, -256.09, 54.07, 169.56), stand = vector3(185.85, -256.73, 54.07) },
{ coords = vector4(187.5, -256.76, 54.07, 169.56), stand = vector3(187.32, -257.27, 54.07) },
-- Table8
{ coords = vector4(190.03, -253.3, 54.15, 97.21), stand = vector3(189.49, -253.51, 54.07) },
{ coords = vector4(189.86, -251.71, 54.15, 113.85), stand = vector3(189.42, -252.01, 54.07) },
{ coords = vector4(188.74, -250.57, 54.15, 158.64), stand = vector3(188.54, -251.1, 54.07) },
{ coords = vector4(186.51, -251.55, 54.07, 253.6), stand = vector3(187.06, -251.71, 54.07) },
{ coords = vector4(186.03, -253.0, 54.07, 253.6), stand = vector3(186.57, -253.11, 54.07) },
{ coords = vector4(186.64, -254.53, 54.07, 345.84), stand = vector3(186.88, -253.94, 54.07) },
{ coords = vector4(188.17, -254.96, 54.07, 345.84), stand = vector3(188.4, -254.5, 54.07) },
}
--[[
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Customise the white widow menu prices here. You can add as many items as you want.
]]
MenuPrices = {
["Strains"] = {
["weed_skunk_bag"] = 100,
["weed_ogkush_bag"] = 100,
["weed_ak47_bag"] = 100,
["weed_whitewidow_bag"] = 100,
["weed_amnesia_bag"] = 100,
["weed_purplehaze_bag"] = 100,
["weed_gelato_bag"] = 100,
["weed_zkittlez_bag"] = 100
},
["Joints"] = {
["weed_skunk_joint"] = 100,
["weed_ogkush_joint"] = 100,
["weed_ak47_joint"] = 100,
["weed_whitewidow_joint"] = 100,
["weed_amnesia_joint"] = 100,
["weed_purplehaze_joint"] = 100,
["weed_gelato_joint"] = 100,
["weed_zkittlez_joint"] = 100
},
["Edibles"] = {
["ak47_cookie"] = 100,
["skunk_cookie"] = 100,
["whitewidow_cookie"] = 100,
["strawberrygummybear"] = 100,
["raspberrygummybear"] = 100
},
}
-- DO NOT TOUCH BELOW THIS LINE
ResourceName = GetCurrentResourceName()