single use item

hello guys I’ve had a lot of trouble trying to script I need to make an item single use for my TTT pointshop, I’ve looked at script for another item that was already single use to try and work it out but no luck

here is the script for super small, this is what I want to be 1 use ony


ITEM.Name = 'Super Small'
ITEM.Price = 10000
ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl'
ITEM.NoPreview = true
ITEM.AllowedUserGroups = { "admin", "vip", "owner", "superadmin" }

function ITEM:OnEquip(ply, modifications)
	ply:SetModelScale(0.5, 1)
end

function ITEM:OnHolster(ply)
	ply:SetModelScale(1, 1)
end

any help would be great! thanks

ps if this is in the wrong forum or prohibited here please let me know.

This should help you.
http://pointshop.burt0n.net/items

thank you very much, I’ve just added it I hope it works :slight_smile:

[editline]7th October 2013[/editline]

ok so I added the bit I need, it has made the item not work, I can buy super small still and its says “this is a single use item you will have to buy it again” but then doesn’t equip the super small for that round


ITEM.Name = 'Super Small'
ITEM.Price = 10000
ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl'
ITEM.NoPreview = true
ITEM.SingleUse = true
ITEM.AllowedUserGroups = { "admin", "vip", "owner", "superadmin" }

function ITEM:OnEquip(ply, modifications)
	ply:SetModelScale(0.5, 1)
end

function ITEM:OnHolster(ply)
	ply:SetModelScale(1, 1)
end