This drug script was made for our community, but I am releasing it to the public as I believe it is a pretty unique piece. Almost everything is customizable in the CFG of the script and adding new drugs in is as simple as just copypasting the other drug and changing things up. You can set specific selling coordinates or you can just allow the players to sell in specified zones(hoods) which you set in the CFG sell part of the script, where there are NPC’s because you’re selling the drugs to them. The script requires a tiny bit of tidying up, but I will do it over time, as I don’t have that much free time now!
CHANGELOG
12/6/2019 massive update
Fixed the drug selling problem.
Added support for multiple drug selling at one.
Added a bit more customisation to the selling type, now the player can walk to the NPC and sell the drugs himself if you set it so in the CFG.
Fixed some dumb errors that messed with some features.
12/11/2019 bugfixes and new sellmod
Fixed some selling issues
Added a third method of selling drugs. Now you can just sell drugs at a specific location by just pressing E and without any NPC interaction. Set sellMode = 3 in the config for it to work.
Fixed a bug where if you cancelled selling drugs to an NPC you could just go to another NPC and get paid for both.
DOWNLOAD
Video of how it works
Dependancies
-ESX (required)
-Mythic notifications(required unless you change the code to suite whatever you need) You can find it Here
Known bugs
As I said, need to tidy up a bit, but the performance at the moment seems clean enough.
About me
I am a pretty new coder in the Fivem scene, but I’ve done some GameDev before, so I believe I have some experience to create some pretty good content.
Credits
-To the guy or guys(and gals if there were any) who made mythic notifications he’s amazing
-To the people behing ESX, you’re like the best <3
-Everything else in there was made by me from scratch over the course of two days <3
Would love to watch your vídeo, since it sounds interesting…BUT your vídeos on twitch are only available for SUBSCRIBERS…Wich BTW i’m not Even sure is allowed here.
You should actually use either YT or streamable for videos.
Thank you!
Tried making it as simple to use and as functional as I could, so you could add content without much work. Will probably be working on some more features overtime as well, but it is a pretty solid base.
@Fourthbeam working on it and a few improvements right now. Gonna try and finish fixing it by the end of this week. @Emrys are there any errors in the console, do you have the items defined in the items sql database and you might’ve messed up the config syntax if you change anything. If everything seems fine, then the items may be undefined(input and output in the CFG)
EDIT: @Emrys just tested it, nothing is happening if the item is undefined in your database. The script itself is fully functional.