Return to site

Gmod remove all weapons

broken image
broken image

lua/weapons/lucian/a:103: attempt to compare nil with numberġ. When it is present, the function stops working altogether and results in If I remove 'and self.ultdelay <= CurTime()' from the first line below SWEP:Think(), the code works just fine, but the desired 15 second delay doesn't apply, the function runs every time R is pressed. Self.Owner:SetWalkSpeed(250) self.Owner:SetRunSpeed(500) įirerate = 0.3 self:SendWeaponAnim( ACT_VM_RELOAD ) self:SetNextPrimaryFire( CurTime() + 2.8 )

broken image

Timer.Create('stopult', 10, 1, function() Self.Owner:SetWalkSpeed(800) self.Owner:SetRunSpeed(800) I just want to know how can i disable the Q (spawn menu) of gmod for other players. Self:EmitSound(self.WeaponSounds2, 100, 100) Dupes, entities, post processing, weapons are all restricted to. If self.Owner:KeyPressed( IN_RELOAD ) and self.ultdelay <= CurTime() then So, a stranger suggested that I try this. Unfortunately, there's no convenient function like those set up for other keys. Since Garry is cool, I was able to easily set the delay for the mouse button attacks with SetNextPrimaryFire() and SetNextSecondaryFire().

broken image

I'm making a weapon in Garry's Mod that has three functions that use both mouse buttons and the R key.