president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hello, I want help with a function in lua. I got this line on my script:
Will add item v[1], v[2] or 1 in his backpack - I want remove this function doPlayerAddItem and transfer to a function that send the item v[1], v[2] or 1 to player balance.
Thanks, I hope you can understand my bad english, xd.
LUA:
return v and getPlayerStorageValue(cid, v[3]) == -1 and doPlayerAddItem(cid, v[1], v[2] or 1) and setPlayerStorageValue(cid, v[3], 4)
Will add item v[1], v[2] or 1 in his backpack - I want remove this function doPlayerAddItem and transfer to a function that send the item v[1], v[2] or 1 to player balance.
Thanks, I hope you can understand my bad english, xd.