Sell Drugs by zones [ESX]

Hi,
in the server I develop, for selling drugs we use stasiek_selldrugs. We know how to add drugs to sell, but we are interested in sell the drugs by zones, i.e. weed in sandy, coke in Paleto…
Has anyone worked on this?
In stasiek when selling drugs you compare your position to a place in the map for all drugs, it´s possible to configure a “compare position” to every drug?
Thanks

2 Likes

Yes, add an if statement checking for the players zone and and if statement checking what drug the player is trying to sell.

You can use a street label address script such as this: https://github.com/codibez/streetLabel/blob/master/streetLabel/client.lua to see how you can check where a player is located (as in what street or what suburb the player is in.)

Thanks, must try that. Hope it works, the RP will get better cause if you want you can control the selling zone and create a hood-gang

1 Like