[Release] vRP_itemdrops

I can confirm this, tested it.[quote=“BenjaTW, post:20, topic:82781”]
You can duplicate if both players press enter on picking up item at same time.

Picking up what others dropped doesnt remove the “Bag” from the ground
[/quote]

I can confirm this, tested it.

Okey, when I will be free, i check and fix this problem.

2 Likes

Fixed?
(20 characters)

I will fix this problem after some days… or somebody can do this and publish fix, because now i have some problem with free time

Here is the version for vrpex for anyone that wants it. Enjoy!vrp_itemdrop.rar (1.8 KB)

Nice work again Xander :wink:

2 Likes

As fo fixing the dupe bug you can do this:

          if IsControlJustPressed(table.unpack(KeyMarker)) then
            DeleteBag(Bag, function(deleted) 
                 if deleted then 
                      TriggerServerEvent('DropSystem:take', k)  
                  end
             end)
          end
        end
      end
    end
  end
end)


function DeleteBag(bag, cb)
   if (DeleteObject(bag))then
         cb(true)
   end
end

Or…
You could create a variable on the server like beingPicked = {} and then index that variable by the handle of the spawned objects you would be picking up like beingPicked[bag] = true and you could check for not beingPicked[bag] before going through with any actions this way the second player wouldnt be able to pick up the bag maybe?

P.S Hi Benja :wink:

2 Likes

Hello !

Thx again for this script. It’s very nice.
I have some issue with it with me server vRP. Everthing working but no the pickup while. I do not why.

Any idea ?

i try to log some function

Upadate : after some log it’s work perfectly and the anti glitch system by @Genrp work too.

what is vrpex?
i see this in alot of topics… dnt know what it is =\

its an smarter version of vrp, and the version that imagic will proceed on developing.

this is usable or just for developing?

Yeah thats works, but then it Remove the Bag, too if you dont have Place in your Inventory…

It doesn’t work for me? Can you add it in my configuration for me please? :smiley:inventory.lua (21.5 KB)

@XanderWP i was wondering if you can make it to were u get random cars and stuff too and it will go in ur inv and a player can spawn it at any time?

Anyone got a problem that if someone picks up the bag you have dropped that the bag is still on the ground? (Prop)

@XanderWP Is not working for me
inventory.lua (2.2 KB)

Its work in vrp?

Yea its working.

what a question the title say’s vRP_itemdrop and you ask it s working on vRP ?

Anybody know or have a ESX version like this working?

1 Like

There is a html inventory that it s doing this , just search on the forum