[ESX] USB System (Drugs and more)

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: VNS Scripts | USB System (drugs) | Preview Fivem - YouTube
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 (FiveM-Scripts/mhacking at master · GHMatti/FiveM-Scripts · GitHub)
ProgressBars (Optional) ([RELEASE] Progress Bars 1.0 [STANDALONE])


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

4 Likes

Well it looks really simialr to t1ger_drugs

3 Likes

its inspired from that script

Pretty cool looking script! A bit too pricey for me to cop atm, but will be on the look out for that discount ;p

1 Like

cool, looking cool

1 Like

Do the NPCs respond every time because that was an issue i had in the past where people could walk up and kill them and they wouldnt always fight back

1 Like

no, the NPC spawns one time when the player is near position and they will fight all closed players. also NPCs are sync really good and there no invisible or NPCs with godmode

i thought the same thing to be honest lol

like I said its inspired from that script, t1ger’s script its for drugs, it has drug effects, drug, process. its hard to add more usb types, it has not weapon categories and position categories so its different script idk why you compare my script with t1ger’s. there are many scripts that has bots and loot, most of them are different from each others. also nobody told you to buy my script, you like and you want it? buy it, you like t1ger’s script more? buy his script, dont judge others work

basically t1ger usb

Its good script

is there a qbcore version of this ?

hello, there is a similar version of the script but its without the hack progress, also in that version there are more options for the bots, and you can also start the missions from item or from qb-target

How am I gonna get this into ox_inventory? There’s no items.lua to copy and paste, no items.sql and no shop where you can buy the usbs

there are no items from my script. you have to add the item you want by your self.
my script does only make the items usable and makes the mission. you need to find your own way to give the item to your players and you have to choose the rewards