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
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
Genrp
March 5, 2018, 11:34pm
25
Here is the version for vrpex for anyone that wants it. Enjoy!vrp_itemdrop.rar (1.8 KB)
Nice work again Xander
2 Likes
Genrp
March 6, 2018, 3:27pm
26
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
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?
TerbSEC
September 8, 2018, 12:49am
31
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? 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?
jeno
October 29, 2018, 9:16pm
34
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)
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