quadrinka4 Posted August 14, 2016 Share Posted August 14, 2016 (edited) So, I am trying my butt off to remove items from a player's inventory once the command is run. Although I can't figure out this simple code why it wouldn't work. I've tried so far: getPlayer():getInventory():DoRemoveItem("Apple"); getPlayer():getInventory():Remove("Base.Apple"); getPlayer():getInventory():Remove(Apple); getPlayer():getInventory():Remove(Base.Apple); getPlayer():getInventory():Remove("Base.Apple"itemType(Food)); getPlayer():getInventory():RemoveOneOf("Base.Apple"); none of them is working... Remove("Base.Apple"); runs without error but it doesn't actually remove apple from the inventory.. Help please? Thanks in advance~ Edited August 16, 2016 by quadrinka4 Link to comment Share on other sites More sharing options...
RobertJohnson Posted August 14, 2016 Share Posted August 14, 2016 RemoveOneOf("Apple") or Remove("Apple") should work Link to comment Share on other sites More sharing options...
quadrinka4 Posted August 14, 2016 Author Share Posted August 14, 2016 (edited) 17 minutes ago, RobertJohnson said: RemoveOneOf("Apple") or Remove("Apple") should work Im really really.. dumb for not trying that... T-T Thank you T--T Now, how would I remove the multiple items? Edited August 14, 2016 by quadrinka4 Link to comment Share on other sites More sharing options...
RobertJohnson Posted August 15, 2016 Share Posted August 15, 2016 do something like for i=0,x do remove... end x being how much items you wanna remove Link to comment Share on other sites More sharing options...
quadrinka4 Posted August 16, 2016 Author Share Posted August 16, 2016 Thank you so much ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now