[Release] Sell Drugs [ESX]

when i use /kosetut it says : kosetut is not a vallid command, any fix?

if u dont change anything in it should work.

yea i didnt , but apparently you need to change the resource name into sydres_kosetut , there after i get error
SCRIPT ERROR: @sydres_kosetut/server/main.lua:14: attempt to index a nil value

well i have no idea about it sorry

image

just drag and drop the script.

this is on line 14 : local Icoke = xPlayer.getInventoryItem(Config.EsrarIsmi).count

did u added items listed in config to your db?

nvm thx great tip, just needed to change the config lolz wtf bin on this like 3 dayz xD

lulw gonna make a new version for that soon

maybe in your new version you could add instead of 1 bag at a time its random between 1-5 bags, or something like that? but thx awesome script

its easy to do here is the code u needed;

        xPlayer.removeInventoryItem(Config.OtIsmi, math.random(1,5))

its gonna sell minimum 1 and up to 5 at the one time

ok this made it work , but the money is the same could you tell me what to change so it gives the right amount if sold 3 it give me 3x amount

1 Like

nice bro!

1 Like

we need qbcore