[Generic] [PointShop] Provide a player with a weapon on spawn/Permanent weapons

Ok, not sure how I can start this question, but long story short I want people to be able to purchase Permanent weapons. Get them on spawn etc.

Here is my code for the 357. If it matters at all, this works with DarkRP (but I’m not posting it in the DarkRP help thread as its mainly about PointShop)

[lua]ITEM.Name = ‘357 Magnum’
ITEM.Price = 200
ITEM.Model = ‘models/weapons/w_357.mdl’
ITEM.WeaponClass = ‘weapon_mad_357’
ITEM.SingleUse = true

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

function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end[/lua]

From what I can tell, It only gives the player the item when the player buys the damn thing.

I already know that to make it always in inventory, i need to make ITEM.SingleUse = false… but theres no point if it only gives it to the player on spawn.

Is it something like LocalPlayer():OnSpawn() or what? I’ve never really worked on lua that exists outside the cot that is DarkRP

EDIT: Forget it, google helped me. Perhaps I should google before I post.