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
  • STEP 1 - Unzip and Add Script To Server
  • STEP 2 - Script Configuration
  • STEP 3 - Dependancy
  • STEP 4 [Optional] - Adding Job to Framework
  • For Qb-Core
  • For ESX

Was this helpful?

  1. FIVEM

EZ White Widow

White widow business is a role play business/ job which allows employees to roll joints and cook edibles efficiently.

STEP 1 - Unzip and Add Script To Server

Unzip the script folder within your server resources folder. Ensure script in server.cfg ... "ensure ez_whitewidow".

STEP 2 - Script Configuration

Script config located in shared/config.lua allows you to create multiple locations for different jobs, customise the job crafting (creating items from other items), usable items effects (armor, stress, time, ...), and so much more.

IMPORTANT

The script has 3 optional features (not required for it to function), clothing, clockin and stress. Functions for each feature are included in the config file for you to adjust to your servers scripts (ESPECIALLY ESX USERS).

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
RemoveStress = function(stress) -- Your remove stress event/export (Client) [Optional]
	TriggerServerEvent('hud:server:RelieveStress', stress)
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

STEP 3 - Dependancy

Ez_script is fully open source and acts like a bridge between other frameworks to allow you to run our fivem scripts on any framework you want to, even your own custom framework.

STEP 4 [Optional] - Adding Job to Framework

You are able to set any job of your choice per location!!! On the default location, we have set a job named whitewidow. This guide will show you how to add a job to your server, including an example of the whitewidow job.

For Qb-Core

Head over to qb-core/shared/jobs.lua, you will see a table called QBShared.Jobs, which defines all/ most jobs in your server.

To add a job you can use an existing job listed as a template and edit it occordingly. It is self-explanatory.

['whitewidow'] = {
        label = 'White Widow',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            ['0'] = { name = 'Picker', payment = 50 },
            ['1'] = { name = 'Deliverer', payment = 75 },
            ['2'] = { name = 'Roller', payment = 100 },
            ['3'] = { name = 'Manager', isboss = true, payment = 125 },
            ['4'] = { name = 'Boss', isboss = true, payment = 150 },
        },
},

For ESX

To set a Job with grades in ESX Framework, you must add the job to the jobs table via a sql statement...

INSERT INTO `jobs` (name, label) VALUES ('whitewidow', 'White Widow');

then add the gob grades to job_grades table...

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
    ('whitewidow', 0, 'picker', 'Picker', 50, '{}', '{}'),
    ('whitewidow', 1, 'deliverer', 'Deliverer', 75, '{}', '{}'),
    ('whitewidow', 2, 'roller', 'Roller', 100, '{}', '{}'),
    ('whitewidow', 3, 'manager', 'Manager', 125, '{}', '{}'),
    ('whitewidow', 4, 'boss', 'Boss', 150, '{}', '{}'),
;
PreviousWelcome To EZ ScriptsNextConfig File

Last updated 7 months ago

Was this helpful?

Requires !!! Download the script.

Ez_lib is required to be configurated to your Framework seperately. It can easily be switched from QBCore and ESX with ox_lib, ox_target and ox_inventory support. Anyother custom frameworks require ez_lib to be modified. Everything is set out in a simple way.

We recommend , an user friendly way to manage your database, to run your sql statements.

🍀
ez_lib
https://github.com/EZ-Scripts/ez_lib
HeidiSQL