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!