Garry's Mod

Garry's Mod

Chuck's Weaponry 2.0
Lua error : attempt to call method 'addRunTime' (a nil value)
Okay so : I have CW 2.0, i have the TFA Base, I have the TFA Warface Weapons (reuploaded), the TFA Insurgency Shared parts addon etc etc AND the [CW2] Warface addons. Whenever I use a CW2 Warface weapon AND make a step, I get this error :
[Chuck's Weaponry 2.0] lua/weapons/cw_base/sh_hooks.lua:29: attempt to call method 'addRunTime' (a nil value)
1. fn - lua/weapons/cw_base/sh_hooks.lua:29
2. unknown - lua/ulib/shared/hook.lua:109 (x3)
Indeed I downloaded the addon, to go and take a look at the origin of this error, and I found that, of course, it was coming from some line telling to do ♥♥♥♥ with footsteps :
elseif CLIENT then
hook.Add("PlayerFootstep", "CW20_Footstep", function(ply, pos, foot, sound, volume)
if ply == LocalPlayer() then
local wep = ply:GetActiveWeapon()

if IsValid(wep) and wep.CW20Weapon then
wep:addRunTime()
end
end
end)
end
My question is : how do I get it to stop ? I'd be very grateful if you can help me.
Note : Do you think that setting sv_footsteps to 0 could do it ? Or will it totally delete footsteps ? Idk man
< >
Showing 1-1 of 1 comments
sv_footsteps fully deletes footsteps, so i don't have the error anymore but that's not the solution i am looking for.
< >
Showing 1-1 of 1 comments
Per page: 1530 50