Looking for drug script where you use a scale and break bricks into ounces or grams

Hello !
I once saw a server with a script where you’d collect ‘’ bricks’’ of coke for example on drug point and then you’d have to buy baggies and a scale to break them down into grams before selling them to npcs.

Does anyone know that script and where i can get it? This would help me a lot :slight_smile:

2 Likes

ever found it???

1 Like

I havent but if you want drop me a private message and i will explain to you how to make useable items in your optional needs that will just make the same for you

3 Likes

thank you so much! i found a solution to what i needed :smiley:

I am looking for the same script, did you ever find it?

No but if you want i can Dm you and let you know how to make your own items to do it :slight_smile:

1 Like

That would be great, thanks!

2 Likes

Mind sharing it with me as well?

can you share that info with me aswell please

1 Like

Same with me as well

would you be able to help me do this also if you found out how to do it ?

i could really use this too please some trying to charge me 50pound to break my drugs down

can u share this with me to please!

can someone still help me with this ?

could you help me as well

0121 drugs

I just came up in some bricks. How do I break it down

1 Like

how do i do it ?

can you help me with the optional needs

Ok so i’ll just leave this here since i get tons of DMs about it :sweat_smile:

So in your server.lua file of whichever script… could be optionalneeds could be your drug script, doesnt matter. You can add something like this:

ESX.RegisterUsableItem(‘drugscale’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

if xPlayer.getInventoryItem('cokebrick').count > 0 then
    xPlayer.removeInventoryItem('cokebrick', 1)
    Citizen.Wait(0)
    xPlayer.addInventoryItem('coke_pooch', 10)
elseif xPlayer.getInventoryItem('weedbrick').count > 0 then
      xPlayer.removeInventoryItem('weedbrick', 1)
      Citizen.Wait(0)
      xPlayer.addInventoryItem('weed_pooch', 10)	  
end
end)

Adjust the items names and quantity to whatever you want :slight_smile:

Also if you guys want to know how to make bricks for example it could be something like this :

ESX.RegisterUsableItem(‘wrap’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)

if xPlayer.getInventoryItem('coke').count > 99 then
    xPlayer.removeInventoryItem('coke', 100)
    Citizen.Wait(0)
    xPlayer.addInventoryItem('cokebrick', 1)
elseif xPlayer.getInventoryItem('weed').count > 99 then
      xPlayer.removeInventoryItem('weed', 100)
      Citizen.Wait(0)
      xPlayer.addInventoryItem('weedbrick', 1)	  
end
end)

If you’re not using ESX just adjust that to the framework you’re using

2 Likes