Pointshop custom weapons problem.

I have added a custom weapon for pointshop on my server (Lightsaber).
However, when I’m trying to buy it, it just doesn’t appear on my inventory.
I get the current error code on my srcds:
Attempted to create unknown entity type weapon_ttt_lightsaber!
NULL Ent in GiveNamedItem!
I’m currently a noob on scripting so please in case I have made a usual mistake, don’t judge!

No code? No links to the addon? How do you expect us to help you?

post your Item code, please

Alright here it is:

ITEM.Name = ‘Lightsaber’
ITEM.Price = 9000
ITEM.Model = ‘models/weapons/v_crewbar.mdl’
ITEM.WeaponClass = ‘weapon_ttt_Lightsaber’
ITEM.SingleUse = false

function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end

function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end

function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end

function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end

Also I tried to buy stock pointshop weapons but same thing happens :confused: