[Release] [ESX] ESX_DRUGS (UPDATE version)

  1. Added weight system by esx
  2. Added blibs can put invisiable

Buy New Version Here
Price: 10.00€ + tax
You can get this script in my store: https://vincent-developing.tebex.io/package/4988089

38 Likes

where are the location coordinates

1 Like

@Synlx in the Config File you can see the cords and you can edit this

is there a way to change the blip maker

1 Like

do u have any videos or picks of the plants/items to collect

Thanks

1 Like

Yeah i add Some picks in a few Std

@SergioRocha Yeah you must edit this in the config File

Hello there, but there is no markup to collect!

@SergioRocha You must look in the Radius around the Tent

Thank you was used to the excellent old script system

1 Like

the sql has an error for me

@Synlx What error?


SQL error

You probably use weight instead of limit. Just change limit to weight.

Sql File - Linie 23 - Needs to be added on end β€œ,” if you can just update it becouse there is a lot of noobs.

2 Likes


Guys any idea?

EDIT: Okey i solved the problem :smiley:

the farms dosent work, i press to harvest coca leaf or weed and it does nothing
EDIT : my bad cuz i cant read it’s using limit, so for those who use weight do this
server main lua line 54

ESX.RegisterServerCallback('esx_illegal:canPickUp', function(source, cb, item)
	local xPlayer = ESX.GetPlayerFromId(source)
	local xItem = xPlayer.getInventoryItem(item)

	if xItem.weight ~= -1 and xItem.count >= xItem.weight then
		cb(false)
	else
		cb(true)
	end
end)

After that enter in every β€˜drug’ lua from server and edit LIMIT to Weight like so
Example coke.lua
line 8 to 13

RegisterServerEvent('esx_illegal:pickedUpCocaLeaf')
AddEventHandler('esx_illegal:pickedUpCocaLeaf', function()
	local xPlayer = ESX.GetPlayerFromId(source)
	local xItem = xPlayer.getInventoryItem('coca_leaf')

	if xItem.weight ~= -1 and (xItem.count + 1) > xItem.weight then
		TriggerClientEvent('esx:showNotification', _source, _U('coca_leaf_inventoryfull'))
	else
		xPlayer.addInventoryItem(xItem.name, 1)
	end
end)
3 Likes

You must replace ~= to == Everywhere weed.lua, coke.lua etc.