Xovos / esx_illegal

I changed ESX_Drugs and added a lot of features like more drugs and licenses for the money was and the money wash itself.
GNU General Public License v3.0
16 stars 16 forks source link

Super #16

Closed rxbindotmp3 closed 4 years ago

rxbindotmp3 commented 4 years ago

Hi man awsome script! Just wondering real quick, is there a way to not pick-up the drugs? Like can i some how enable it to be a circle or could you link me that script :)

Xovos commented 4 years ago

Hi Could you clarify that a little, I don't understand the question.

Demo4889 commented 4 years ago

@rxbindotmp3 means like the old ESX_Drugs where you just go to a location and hit a button to start harvesting or processing and have it keep going until you are done so someone doesn't have to walk from plant to plant, or keep hitting E to process each time.

rxbindotmp3 commented 4 years ago

yea

rxbindotmp3 commented 4 years ago

because there is no drug plugin working on my server not esx_drugs (any realeses) and not esx_illegal_drugs because the same problem happens every time when i try to collect. I can show you if you wan't to and or can help me :) It would be so appreciated.

Demo4889 commented 4 years ago

if you want to show me, that is fine. I can either join your server, or you can take a video of it.

rxbindotmp3 commented 4 years ago

I'll send some pictures wait about 5 mins. Thank you so much bro!

rxbindotmp3 commented 4 years ago

Here, it's so sad because it works to pack & sell but not to collect. Any of them cocaine, weed, opium, meth :( 1 2

The script i use: https://github.com/ESX-Org/esx_drugs/releases V1.0.2

Demo4889 commented 4 years ago

That has nothing to do with this script... that is the original esx_drugs script, perhaps you should contact them on their issues board instead of here.

rxbindotmp3 commented 4 years ago

I did now, thanks anyway 👍

Demo4889 commented 4 years ago

what is line 53 anyway? im thinking i know how to do a quick fix considering they don't use limit anymore

rxbindotmp3 commented 4 years ago

Shure ill send it

rxbindotmp3 commented 4 years ago

3

rxbindotmp3 commented 4 years ago

local function HarvestCoke(source)

if CopsConnected < Config.RequiredCopsCoke then
    TriggerClientEvent('esx:showNotification', source, _U('act_imp_police', CopsConnected, Config.RequiredCopsCoke))
    return
end

SetTimeout(5000, function()

    if PlayersHarvestingCoke[source] == true then

        local xPlayer  = ESX.GetPlayerFromId(source)

        local coke = xPlayer.getInventoryItem('coke')

        if coke.limit ~= -1 and coke.count >= coke.limit then
            TriggerClientEvent('esx:showNotification', source, _U('inv_full_coke'))
        else
            xPlayer.addInventoryItem('coke', 1)
            HarvestCoke(source)
        end

    end
end)

end

rxbindotmp3 commented 4 years ago

That's where the error happens.

Demo4889 commented 4 years ago

replace line 53 with

if coke.limit == -1 and coke.count >= coke.limit then

rxbindotmp3 commented 4 years ago

ok tnx ill try

rxbindotmp3 commented 4 years ago

OH MY FUCKING GOD DUDE FUCKING THANK YOU FOR FUCK SAKE

rxbindotmp3 commented 4 years ago

You literally just saved my fucking server!

rxbindotmp3 commented 4 years ago

Do you wan't loaf_housing i bought it?

Demo4889 commented 4 years ago

They actually don't use "limit" anymore, so that version is old and not widely used anymore. es_extended has been updated and there are a lot of scripts you don't need anymore, so you should really think about updating a lot of things.

Demo4889 commented 4 years ago

No idea what loaf_housing is, but i can take a look at it and see if it's something I could use.

rxbindotmp3 commented 4 years ago

Damn, yeah i'll update sum. For example when my police search people's id the date says nil is that a quick fix?

Demo4889 commented 4 years ago

If you wanna add me on discord, we can talk there so this doesn't keep getting comments on it. Demo#1180

rxbindotmp3 commented 4 years ago

shure thanks bruv!

Xovos commented 4 years ago

@Demo4889 Thanks for the help in responding to the issues! @rxbindotmp3 Hope this works out for you.