#Props on drop item [ox_inventory]

1 messages · Page 1 of 1 (latest)

modest canopy
#

Release ? Thats Awsome !

clever cipher
#

Damn, Release bro ?

heady spindle
opaque mango
#

Is this for sale?

honest patrol
real mountain
#

Looks sick, does it support target for picking back up the items?

mild zealot
#

I've only added interact support , maybe I'll look into adding ox_target too

#

I'm gonna release it on tebex soon

real mountain
#

Cool!

honest mantle
#

#1321979852290785351 message

#

?

#

whats the difference?

mild zealot
#

I'm not editing inventory code, and this one spawn prop for every item you drop not only for the newdrop

honest mantle
#

same in their no need to edit the invnetory code

mild zealot
#

Also his provided code doesn't work

wet garden
#

it does lol

soft thunder
#

yea it does.

honest mantle
#

i think linden made something like this

#

he updated in the ox discord

mild zealot
#

It works for 1 item drop

#

not for multiple items drop

#

+mine has interact support

wet garden
#

okay

#

nice

#

i guess

honest mantle
#

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

mild zealot
#
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

honest mantle
#

samething if u know the stuff its ez

#

to make

honest mantle
mild zealot
#

it's actually 200 lines of code , it's not diff to create it

honest mantle
#

u going to sell this?

mild zealot
#

Yes

honest mantle
#

seriously lol

dim epoch
honest mantle
#

ok ok good luck

molten kindle
#

Cringe

lean heart
#

embarassing😂

honest patrol
acoustic arch
#

Please refrain from posting hate comments it’s pointless cool

lean heart
#

You simply need 3 brain cells to do this

honest patrol
#

ill give it a shot and compare it with the one the author provided thanks

lean heart
#

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

honest patrol
#

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 Shrug

mild zealot
dawn surge
#

Are those net entities? 👀

lean heart
dawn surge
mild zealot
lean heart
#

like water_bottle and bottle_water items, both have the same prop model on drops

wet garden
#

its not hard

#

i remade this myself, and yeah its really easy

lean heart
#

it aint hard

#

just not got the time

#

personally

wet garden
#

maybe

mellow oak
wet garden
mellow oak
#

but selling code edits for ox_inventory, a free resource. is really shitty behaviour and also not acceptable here.