Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Scripted item, removing one and adding another


cooldood92
 Share

Recommended Posts

I just want to make it so when you use this item (Item #2) it removes it and adds item #14\. This doesn't work though:

```
        call setplayerinvitemvalue(index, getInvItemslot(Index, 2, 1, 0), GetPlayerInvItemValue( Index,

getInvItemslot(Index, 2, 1, 0)))
        Call giveplayeritemtoslot(Index, getInvItemslot(Index, 0, 1, 0), 14, 1, 0)
        Call SendInventory( Index)

```
What have I done wrong?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...