Hello, dear users of FiveM system. I want to share with you my resource, which allows you to create a bag with this object when throwing an object on the ground.
Resource for vRP
Hello, dear users of FiveM system. I want to share with you my resource, which allows you to create a bag with this object when throwing an object on the ground.
Hi, thx for sharing btw, i have a doubt, where do i put this: TriggerClientEvent (“DropSystem: drop”, player, idname, amount) u say in readme to put in inventory.lua, but at line, can you explain better pls… ty
after notifying that the item is discarded. At me this file is very strongly rewritten, therefore I can not precisely prompt number of a line in the code.
You can send me file and I’ll put string in it.
inventory.lua (17.5 KB)
Here @XanderWP
inventory.lua (17.6 KB)
thank you dude, will test
@XanderWP
Error resuming coroutine: modules/item_transformer.lua:148: attempt to index a nil value (field ‘items’)
stack traceback:
modules/item_transformer.lua:148: in field ‘setItemTransformer’
modules/item_transformer.lua:259: in function <modules/item_transformer.lua:255>
Started resource fivem-map-skater
Started map fivem-map-skater
Loaded MySqlConnector, Version=0.26.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1058498686
hitch warning: frame time of 712 milliseconds
Error running system event handling function for resource vrp: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: modules/item_transformer.lua:156: attempt to index a nil value (field ‘items’)
stack traceback:
modules/item_transformer.lua:156: in field ‘setItemTransformer’
modules/item_transformer.lua:301: in upvalue ‘callback’
lib/utils.lua:43: in upvalue ‘finish’
lib/utils.lua:47: in upvalue ‘task’
base.lua:307: in local ‘cb’
[string “-- begin MySQL module…”]:45: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
hitch warning: frame time of 195 milliseconds
When i run i give this error, in my item/require its called items, same as your mod, can u help me with this error?
@joseehilton sory. Extra blank space accidentally set.
Change 38 line in file to
TriggerClientEvent("DropSystem:drop", player, idname, amount)
Or replace file inventory.lua (17.6 KB)
Why could you make me a file configured without error please
I appreciate it
@KING_ADVENT if u need, I can help you with install, but I think that is not too hard. You can see exaple file inventory.lua in post below and see changes on 38 line
not sure why but there was a period (.) first line of the code.that fixed the error for me.
@KING_ADVENT I think that you can see example in post under my and try yourself, and if you will have problem with it - i will help you) It’s very easy, just only open example))
I can not get you the file I sent up there and do it for me please
Hmmm…
This doesn’t seem to work for me, no error or anything, when I drop an item it’s dropping but there’s no bag or anything it is just like before. Do I have to add the items to the dropList = { } ?
But Script Looks nice thooo
Can confirm, installed it like you said, used TriggerClientEvent("DropSystem:drop", player, idname, amount)
exactly where you said, added to server cfg, no errors in the console but when someone trashes something nothing happens. Any ideas? Have you tested this EXACTLY how you posted it here?
inventory.lua (17.8 KB)
hold works only not writes on earth that lies so as raised immediately see that raised
That worked, thank you!
Nice idea.
Problems:
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