function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=971, y=961, z=8} -- if you want effect that says thanks!
if item.itemid == 1945 and (doPlayerRemoveItem(cid, 6527, 3) == TRUE) and getPlayerFreeCap(cid) >= 100 then
doPlayerAddItem(cid, 10503, 1) ---- the item
doPlayerSendTextMessage(cid,21,"You bought an Donate Outfitbox!, Thanks for supporting this server!")
doSendAnimatedText(pos, "Thanks!", 215)
doTransformItem(item.uid, item.itemid + 1)
elseif item.itemid == 1946 and getPlayerFreeCap(cid) >= 85 then
doPlayerSendTextMessage(cid,21,"Please Try Again!")
doTransformItem(item.uid, item.itemid - 1)
else
doPlayerSendCancel(cid,"You don't got enought vip coins or cap!")
end
return TRUE
end