[ESX] USB System (Drugs and more)

A script by DarkNosS96

No reviews yet.
[ESX] USB System (Drugs and more) main image

Full Description

This is a USB System that has 3 different USB types (3 usbs for drugs, 1 for documents and 1 for diamonds).
You use the USB, do a hack minigame (mHacking) and if you complete it correctly it shows you a position that will spawn some NPCs that will shoot you, you have to kill them (or skip) and steal the loot from the marker.
There are 3 location categories and 3 weapon levels, level one lower weapons and level 3 has heavy weapons. (you can change and add more levels on config.lua)

WARNING: This is only for ESX Framework, to change it you have to edit it your self.
WARNING: You have to edit the config.lua to add your own items.
WARNING: This script has no selling system.

Video Preview: https://youtu.be/RA1i82p8-b8
Buy from here: https://vns.tebex.io/ 35.00 Euro + TAX

Features:
3 Different USB types, you can easly add more.
Weapon Level for each USB.
Positions for each USB.
Two players can NOT have same mission position.
Give 1 or more items per USB.
Change clothes on NPCs.
Purple USB has mission to steal documents in Humane Labs with 13 NPC with heavy weapons by default.
NPCs are sync for all players. No invisible and unkillable bots.
Optimized.
Full access code, no IP lock or encrypted code.

Config:

Config.ProgressBars = true 	-- set this to true if you want to use ProgressBars
Config.HackLevel = 6	-- mHacking level
Config.HackTime = 40 	-- mHacking timer
Config.Cooldown = 900	-- Cooldown between USBs in seconds
Config.Reward = {
	["greenusb"] 	= {
		PosCateg = 1, -- Config.MissionPosition
		NpcLevel = 1, -- Config.Weapons
		AllItems = true,	-- true will give all items from bellow, false will give a random item from the list
		items = {
			{name = 'weed500g', min = 1, max = 2},	-- item name in database, minimum and maximum ammount that will give
		}
	},
	["whiteusb"] 	= {
		PosCateg = 1,
		NpcLevel = 1,
		AllItems = true,
		items = {
			{name = 'coke500g', min = 1, max = 2},
		}
	},
	["blueusb"] 	= {
		PosCateg = 1,
		NpcLevel = 1,
		AllItems = true,
		items = {
			{name = 'meth500g', min = 1, max = 2},
		}
	},
	["blackusb"] 	= {
		PosCateg = 3,
		NpcLevel = 2,
		AllItems = false,
		items = {
			{name = 'reddiamond', 		min = 1, max = 1},
			{name = 'yellowdiamond', 	min = 1, max = 1},
			{name = 'bluediamond', 		min = 1, max = 1},
		}
	},
	["purpleusb"] 	= {
		PosCateg = 2,
		NpcLevel = 3,
		AllItems = true,
		items = {
			{name = 'documents', min = 5, max = 7},
		}
	},
}

Dependencies
es_extended 1.0, 1.1 or 1.2
mHacking (https://github.com/GHMatti/FiveM-Scripts/tree/master/mhacking)
ProgressBars (Optional) ([RELEASE] Progress Bars 1.0 [STANDALONE])


Check my other scripts:
[ESX] Casino Slots Machine
[YMAP] After Apocalypse Map
[FREE] Audi R8