#Props on drop item [ox_inventory]
1 messages · Page 1 of 1 (latest)
Damn, Release bro ?

Is this for sale?

Looks sick, does it support target for picking back up the items?
I've only added interact support , maybe I'll look into adding ox_target too
I'm gonna release it on tebex soon
Cool!
I'm not editing inventory code, and this one spawn prop for every item you drop not only for the newdrop
same in their no need to edit the invnetory code
it does lol
yea it does.
local dropItems = {
burger = prop_cs_burger_01,
water = prop_ld_flow_bottle
}
exports.ox_inventory:registerHook("swapItems", function(payload)
if payload.toInventory ~= "newdrop" then return end
local item = payload.fromSlot
local items = {{item.name, payload.count}}
local dropId = exports.ox_inventory:CustomDrop(item.label, items, GetEntityCoords(GetPlayerPed(payload.source)), 50, 30000, nil, dropItems[item.name])
if not dropId then return end
CreateThread(function()
exports.ox_inventory:RemoveItem(payload.source, item.name, item.count, nil, item.slot)
Wait(0)
exports.ox_inventory:forceOpenInventory(payload.source, "drop", dropId)
end)
return false
end, {
itemFilter = dropItems,
typeFilter = {player = true}
})
add this to any server side it ll do the same thing man
its not hard to configure ox target or interact to this one
if payload.toInventory ~= "newdrop" then return end
Only for the newdrop
not for the current drops
so that means it only leave a prop down and not mulitple
this one for to get a idea how it works
it's actually 200 lines of code , it's not diff to create it
u going to sell this?
Yes
seriously lol
if you dont like dont buy it LOL take the free and stop typing please ❤️
ok ok good luck
Cringe
embarassing😂
can you dm me yours please? I want this and i cant seem to find anything that does the same thing as this
Please refrain from posting hate comments it’s pointless 
Yes discord moderator notriotx
The snippet the guy provided earlier…
You simply need 3 brain cells to do this
ill give it a shot and compare it with the one the author provided thanks
And u could probably edit a couples lines of codes and make it have multiple drops rather than one
This is not all that complicated
i mean i want to have one drop? Like it is now on the default ox_inventory but instead of one static prop or marker it places the prop items on the ground instead
either way ill test the snippet if it works as the one the author of this post provided it is what it is 
embarassing or not , it is what it is
if you don't like it , re-create and post it on github for free
Are those net entities? 👀
most definetely. hes not adding target to pick up all props with that prop model. def net entities.
oh good idea
Wait. So AFAIK creating too many entities will cause problems such as texture loading issues, falling through the map, etc., right? [correct this if Im wrong] So what if many players drop stuff to the ground...
It uses lib zones and entinties are not networked
how r u handling two items, same prop
like water_bottle and bottle_water items, both have the same prop model on drops
post it
it aint hard
just not got the time
personally
maybe
put it on github then
i didnt say anything bad about this script
but selling code edits for ox_inventory, a free resource. is really shitty behaviour and also not acceptable here.