EZ Scripts
DiscordTebex
  • 💡Welcome To EZ Scripts
  • FIVEM
    • 🍀EZ White Widow
      • Config File
      • Add more locations
      • Common Issues
    • 🟣EZ Lean Drug
      • Config File
      • Add more locations
    • ❄️EZ Coke & Crack Drug
      • Config File
      • Add more locations
    • 🔠EZ Plate Changer
      • Config File
    • 📑Ez Lib
      • Config File
    • 🛡️Ez Admin Authority
      • Config File
    • 🫳Ez Item Spawner
      • Config File
      • Permission Check
      • Add Item
      • Get Items
  • RedM
    • 💼EZ Society & Job Meny
      • Config File
      • Exports
      • Syn Society
    • 🌍EZ Fast Travel
      • Config File
    • 🛡️Ez Admin Authority
      • Config File
    • 🍖Ez Consumables
      • Config File
    • 📺Ez HUD
      • Config File
      • Exports and Events
    • 🚷EZ Combat Logging
      • Config File
    • 🗽EZ Life Style
      • Getting Life Style
      • Config File
    • ☢️EZ Radial Menu
      • Config File
    • 🫳Ez Item Spawner
      • Config File
      • Permission Check
      • Add Item
      • Get Items
Powered by GitBook
On this page

Was this helpful?

  1. FIVEM
  2. EZ Lean Drug

Config File

PreviousEZ Lean DrugNextAdd more locations

Last updated 8 months ago

Was this helpful?

🟣
https://github.com/EZ-Scripts/ez_leandrug/blob/main/shared/config.lua
Config = {
    Locale = "en",
	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,
    PoliceAlert = function(coords) -- Your police alert event/export (Client)
        TriggerServerEvent("police:server:policeAlert", "Codeine delivery in progress")
    end,
    RemoveTrackerItem = "trackerremover_device", -- Item to remove tracker
    RemoveTracker = function() -- Add a custom minigame to remove tracker
        exports["boii-chiphack"]:StartGame(function(success)
            if success then
                Ez_lib.Shared.TriggerNotify(nil, "Tracker Removed", "success")
                PoliceAlert.enabled = false
            else
                Ez_lib.Shared.TriggerNotify(nil, "Hack failed", "error")
            end
        end, 1, 60)
    end,
}


--[[
████████╗██████╗░██╗░░░██╗░█████╗░██╗░░██╗██╗███╗░░██╗░██████╗░
╚══██╔══╝██╔══██╗██║░░░██║██╔══██╗██║░██╔╝██║████╗░██║██╔════╝░
░░░██║░░░██████╔╝██║░░░██║██║░░╚═╝█████═╝░██║██╔██╗██║██║░░██╗░
░░░██║░░░██╔══██╗██║░░░██║██║░░██╗██╔═██╗░██║██║╚████║██║░░╚██╗
░░░██║░░░██║░░██║╚██████╔╝╚█████╔╝██║░╚██╗██║██║░╚███║╚██████╔╝
░░░╚═╝░░░╚═╝░░╚═╝░╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░╚══╝░╚═════╝░

Read the guide on how to add more locations on the Documentation.
]]
Config.TruckingLocations = { -- Locations to deliver codeine, add more if needed
    {
        coords = vector4(-492.5, -347.88, 34.5, 0.08),
        width = 2.0,
        length = 2.0,
        blip = { -- Blip for location at coords
            enabled = true,
            name = "Codeine Delivery",
            sprite = 51,
            scale = 0.7,
            col = 30,
        },
        ped = { -- spawn peds at coords
            enabled = true,
            model = "s_m_m_doctor_01",
        },
        spawnLocations = { -- Where Trucks may spawn by chance, add more if needed
            vector4(854.98, -3145.19, 5.9, 5.57),
            vector4(963.58, -1707.19, 30.06, 177.17),
            vector4(-2013.07, -471.65, 11.52, 51.78),
        },
        deliveryLocations = { -- Where to deliver trucks by chance, add more if needed
            vector4(-702.14, 5774.57, 17.33, 250.09),
            vector4(-186.81, 3687.05, 44.1, 210.98),
            vector4(271.42, -172.94, 60.54, 249.64),
            vector4(293.08, -610.11, 43.37, 254.83)
        },
        receive = { -- Receive items per delivery, you can add more items if needed
            ["codeine_bottle"] = math.random(3, 5), -- How much Codeine you recieve every delivery
        },
        vehicle = { -- Vehicle to use for delivery
            model = "pounder"
        },
        policeAlert = { -- Police alert for location
            enabled = true, -- true = Enable this feature, false = No alerts
            time = 30, -- How often does police get location of vehicle, in Seconds
        },
        cooldown = { -- Cooldown for location
            enabled = false, -- true = Enable this feature, false = No cooldown
            time = 30, -- Cooldown time in Minutes
        },
    },
}


--[[
██████╗░██████╗░░█████╗░░█████╗░███████╗░██████╗░██████╗██╗███╗░░██╗░██████╗░
██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔════╝██╔════╝██║████╗░██║██╔════╝░
██████╔╝██████╔╝██║░░██║██║░░╚═╝█████╗░░╚█████╗░╚█████╗░██║██╔██╗██║██║░░██╗░
██╔═══╝░██╔══██╗██║░░██║██║░░██╗██╔══╝░░░╚═══██╗░╚═══██╗██║██║╚████║██║░░╚██╗
██║░░░░░██║░░██║╚█████╔╝╚█████╔╝███████╗██████╔╝██████╔╝██║██║░╚███║╚██████╔╝
╚═╝░░░░░╚═╝░░╚═╝░╚════╝░░╚════╝░╚══════╝╚═════╝░╚═════╝░╚═╝╚═╝░░╚══╝░╚═════╝░

Read the guide on how to add more locations on the Documentation.
]]
Config.ProcessingLocations = { -- Locations to create lean, add more if needed
    {
        coords = vector4(1394.59, 3600.98, 39.91, 203.6),
        width = 2.0,
        length = 2.0,
        blip = { -- Blip for location at coords
            enabled = true,
            name = "Lean Processing",
            sprite = 51,
            scale = 0.7,
            col = 30,
        },
        crafting = { -- Crafting details for location
            Items = {
                { item = "lean", recipe = { ["codeine_bottle"] = 2, ["cup"] = 3, ["sprunk"] = 2, }, amount = math.random(2, 3) },
            },
            Menu = {
                header = Loc[Config.Locale].target["LeanProcessing"],
            },
            Progress = {
                label = Loc[Config.Locale].progress["MixingCodeine"],
                time = 15,
                animation = { animDict = "anim@amb@business@coc@coc_unpack_cut_left@", anim = "coke_cut_v5_coccutter" },
            }
        }
    },
}


--[[
░█████╗░░█████╗░███╗░░██╗░██████╗██╗░░░██╗███╗░░░███╗░█████╗░██████╗░██╗░░░░░███████╗░██████╗
██╔══██╗██╔══██╗████╗░██║██╔════╝██║░░░██║████╗░████║██╔══██╗██╔══██╗██║░░░░░██╔════╝██╔════╝
██║░░╚═╝██║░░██║██╔██╗██║╚█████╗░██║░░░██║██╔████╔██║███████║██████╦╝██║░░░░░█████╗░░╚█████╗░
██║░░██╗██║░░██║██║╚████║░╚═══██╗██║░░░██║██║╚██╔╝██║██╔══██║██╔══██╗██║░░░░░██╔══╝░░░╚═══██╗
╚█████╔╝╚█████╔╝██║░╚███║██████╔╝╚██████╔╝██║░╚═╝░██║██║░░██║██████╦╝███████╗███████╗██████╔╝
░╚════╝░░╚════╝░╚═╝░░╚══╝╚═════╝░░╚═════╝░╚═╝░░░░░╚═╝╚═╝░░╚═╝╚═════╝░╚══════╝╚══════╝╚═════╝░

-- Credit for props: https://www.gta5-mods.com/misc/styrofoam-double-cup-with-lean 

Built in Effects:
	- 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 = { -- Item name = {data}
    lean = {
        Armour = 30,
        Thirst = 50,
        Stress = 30,
        RemoveItem = true,
        Progress = {
			label = Loc[Config.Locale].progress["Drinking"],
			time = 5,
			disableCombat = true,
            animation = {animDict = "amb@world_human_drinking@coffee@male@idle_a",anim = "idle_c"},
            animationOptions = { Prop = "p_amb_coffeecup_01", PropBone = 28422, PropPlacement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, EmoteMoving = true, EmoteLoop = true,},
		},
        Success = function()
			-- Anything you want to do when the progress is successful
			StaminaEffect(10)
			Config.Evidence("redeyes", 200)
		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,
    },
    codeine_bottle = {
        Armour = 0,
        Thirst = 30,
        Stress = 50,
        RemoveItem = true,
        Progress = {
			label = Loc[Config.Locale].progress["Drinking"],
			time = 5,
			disableCombat = true,
            animation = {animDict = "amb@world_human_drinking@coffee@male@idle_a",anim = "idle_c"},
            animationOptions = { Prop = "prop_cs_script_bottle_01", PropBone = 28422, PropPlacement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, EmoteMoving = true, EmoteLoop = true,},
        },
        Success = function()
			-- Anything you want to do when the progress is successful
			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,
    },
    sprunk = {
        Armour = 0,
        Thirst = 30,
        Stress = 0,
        RemoveItem = true,
        Progress = {
			label = Loc[Config.Locale].progress["Drinking"],
			time = 3,
			disableCombat = true,
			animation = {animDict = "amb@world_human_drinking@coffee@male@idle_a",anim = "idle_c"},
            animationOptions = { Prop = "ng_proc_sodacan_01b", PropBone = 28422, PropPlacement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, EmoteMoving = true, EmoteLoop = true,}
		},
		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 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.
]]
Shops = {
    LeanBlackMarket = {
        label = "BlackMarket",
		slots = 1,
		items = { -- You need to add your own items here, any you want
			{ name = "trackerremover_device",       	 price = 400,    amount = 50,  info = {}, type = "item", slot = 1 },
		},
    },
}

-- DO NOT TOUCH BELOW THIS LINE
ResourceName = GetCurrentResourceName()