• Pointshop help!
    5 replies, posted
-snip wrong section-
Maybe it's being loaded too quickly? I can't replicate this with the current version from the GitHub.
[QUOTE=code_gs;48413363]Maybe it's being loaded too quickly? I can't replicate this with the current version from the GitHub.[/QUOTE] I'm trying to replace a crowbar with a lightsaber using pointshop, I deleted the TTT weapon converter in the lightsaber lua
[QUOTE=Aerosoft;48413263]There an error with my pointshop something about a nil value for item [CODE][ERROR] addons/pointshop-master/lua/pointshop/items/weapons/lightsaber.lua:1: attempt to index global 'ITEM' (a nil value) 1. unknown - addons/pointshop-master/lua/pointshop/items/weapons/lightsaber.lua:1 [/CODE] Here's the lua file [CODE]ITEM.Name = 'Lightsaber' ITEM.Price = 1500 ITEM.Model = 'models/weapons/v_crewbar.mdl' ITEM.WeaponClass = 'lightsaber' function ITEM:OnEquip(ply) ply:StripWeapon('weapon_zm_improvised') if not ply:IsSpec() then ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) if not ply:IsSpec() then ply:Give('weapon_zm_improvised') ply:SelectWeapon('weapon_zm_improvised') end end[/CODE] PS. I also changed the weaponclass from weapon_zm_lightsaber to lightsaber because I didn't have a weapon_zm_lightsaber folder[/QUOTE] Wrong section. Pointshop isn't playing gmod. I'd recommend you move this before a ban. [highlight](User was banned for this post ("report, don't reply" - postal))[/highlight]
[QUOTE=CGHippo;48413667]Wrong section. Pointshop isn't playing gmod. I'd recommend you move this before a ban.[/QUOTE] How do I move it
edit it. Remove everything and replace it with -snip wrong section- then make a new thread in developer discussion
Sorry, you need to Log In to post a reply to this thread.