NOX 21 Report post Posted January 15, 2019 Is there any function to check if a player already have an item inside temporary bag? Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted January 15, 2019 5 hours ago, NOX said: Is there any function to check if a player already have an item inside temporary bag? Hi! BagTempHasItem(role, item, qty) 2 Quote Share this post Link to post Share on other sites
NOX 21 Report post Posted January 16, 2019 52 minutes ago, Faller said: Hi! BagTempHasItem(role, item, qty) Is it possible for you to send me an example function, for a better understanding? Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted January 17, 2019 (edited) On 1/16/2019 at 2:39 AM, NOX said: Is it possible for you to send me an example function, for a better understanding? u can use it like this local id = 855 local coins = BagTempHasItem(role,id,1) if coins >= 1 then SystemNotice(role, "Please, remove [fairy Coin] from your inventory!") return 0 end Edited January 17, 2019 by mkhzaleh 2 Quote Share this post Link to post Share on other sites
NOX 21 Report post Posted January 17, 2019 5 hours ago, mkhzaleh said: u can use it like this local id = 855 local coins = BagTempHasItem(role,id,1) if coins >= 1 then SystemNotice(role, "Please, remove [fairy Coin] from your inventory!") return 0 end but seems qty not work :) if u try to change 1 to 99 as example won't work Thanks mate, it served perfectly for what I was needing 1 Quote Share this post Link to post Share on other sites