[Release] wrp_drugs the all in one drugs script

WRP_DRUGS

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

14 Likes

Video is not public lol

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.

Best regards, Hiso.

Sorry about the video being sub-only, I could swear I made it Public, but I guess Twitch is not letting me do that, I’ll upload it to Youtube ASAP

EDIT: Uploaded a new video, explaining how it works

1 Like

Welcome to League of Draveeeen

Good script friend

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.

so, how can i add some bags? include sql please

Sveikas geras scriptas :wink:

Just add the item you want to use to your items database and change it in the config. It shouldn’t be too hard to do it yourself.

Make an SQL just to add a bag as an item? Really come on dude…

1 Like

Well this is a time, when a lot of people want everything placed on a silver plate and presented to them without any effort. I might be wrong though.

OMGGGGG ! An awesome script! Thank you soo much baaabe :100: :heart_eyes_cat:

No problem, I took and learned so much from the community, that I thought I should give something back.

1 Like

This is amazing man great work keep it up

Is that Disk inventory or yours coz it looks amazing

Ya i just figured out. Sorry im newbie in this :see_no_evil:

Any chance of an update any time soon on the not selling bug?

When I press ‘E’ to gather nothing happen, why ?
I have to equip a bag or just have one as an item?

@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.

1 Like

My bad bro sorry, I just forget in my sql to change bag to bags:

input = {{item = "bags", amount = 1}},

Awesome script, tell me something: it’s possible to change animation? Do you have a little list?
Thank you again, I love your work ! <3