Remove and get item in inventory

I need some help.

I want to do the following.
If i use the item “poke_pack” then the “poke_pack” has to be removed from my inventory.
than one item has to be added to my inventory (called “poke_001”)

What i have is:

LSCore.Functions.CreateUseableItem("poke_pack", function(source, item)
    local Player = LSCore.Functions.GetPlayer(source)
    Player.Functions.RemoveItem("poke_pack", 1) 
    Player.Functions.AddItem("poke_001", 1)
end)

poke_pack is an usable item,
poke_001 is an non usable item in my shared.lua

I do have a config butt that didn’t work either so i tried just giving me the poke_001 item.
What am i doing wrong here, im very new in this world.
Hope i gave enough iinformation. Hope someone can help!

That’s some weird framework name or whatever that is, so you’ll be much better off providing (linking) the resources you use to handle the inventory

the inventory resource is called ls-inventory

Cannot seem to find such a resource - is it a custom one or something? If so, bets are off, and you’ll need to speak to the person who made that resource to be able to help. Or you can just post it here, but considering it appears to be custom I wouldn’t do that.