Is it possible to hide specific items from LocalPlayer when he has another item?
Example : Player has 0 items. Player buys Item_1 . Now player[B] can't[/B] see on the shop the Item_2 and the Item_3 .
HEY, I'll see if I can make a code to do that, will reply when done.
[editline]14th January 2016[/editline]
What are the items you have on pointshop that will need the code? (Just asking for broad categories, like hats, weapons, playermodels, etc and only the ones you need to use this code for)
[editline]14th January 2016[/editline]
For now, I've come up with this, it DOESN NOT HIDE IT.
BUT it prevents them from buying the item:
Put this in the code in the items you want the player to not be able to purchase if he already has a certain item(whose name you place in the parenthesis saying Item Name Here)
So, if you "Item_1" in the parenthesis, then you can put this in the code for Item 2 and Item 3, and if player has Item 1, it will tell them they can't buy Item 2 or 3 if they try to purchase them.
[CODE]function ITEM:CanPlayerBuy(ply)
if ply:PS_HasItem("Item Name Here")
then return true
else return false
end
end[/CODE]
Sorry, you need to Log In to post a reply to this thread.