• Pointshop Help!
    6 replies, posted
I need some help because I could not find an awnser anywhere els. So im trying to add some weapon the pointshop any ive seached the code. The item pops up in the pointshop but I don't recive anything from purchasing the item. Its a workshop item and I used gmad to get the files inside of it. The model shows up but when I equipt it, I don't recive it. The gamemode im running is Deathrun, but I don't think that has anyrthing to do with it. Please help me. Lua Code: ITEM.Name = 'Excalibur' ITEM.Price = 5000 ITEM.Model = 'models/tiggomods/weapons/satbk/v_excalibur.mdl' ITEM.WeaponClass = 'weapon_satbkexcalibur' function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end
Do you actually have a weapon called weapon_satbkexcalibur on the server?
Yes
Alright, do you have anything in the same slot it goes in by default? If you do, the pointshop'll remove points but not give anything back.
Yes, it has a crowbar in the slot. This is deathrun so the slots look like a sandbox [editline]15th December 2013[/editline] And its a workshop item, so i cant edit the shared.lua
Ah, okay, you'll want to add a thing to OnBuy/OnHolster, to remove/reequip the crowbar swep
And what is the code i need to remove?
Sorry, you need to Log In to post a reply to this thread.