Garry's Mod

Garry's Mod

Counter-Strike SWEPs
World Models do not display, "HasShield" error.
Title. The weapons' world models do not appear when held by the player, only when dropped. Furthermore, whenever the weapons are held, they spam consistent errors over 100 times per second, being:

[Counter-Strike SWEPs] lua/weapons/weapon_cs_base.lua:300: attempt to call method 'HasShield' (a nil value) 1. CheckWorldModel - lua/weapons/weapon_cs_base.lua:300 2. unknown - lua/weapons/weapon_cs_base.lua:489
[Counter-Strike SWEPs] lua/weapons/weapon_cs_base.lua:445: attempt to call method 'HasShield' (a nil value) 1. unknown - lua/weapons/weapon_cs_base.lua:445
This one specifically occurs when the knife is drawn:
[Counter-Strike SWEPs] lua/weapons/weapon_cs16_knife.lua:328: attempt to call method 'IsShieldDrawn' (a nil value) 1. WeaponIdle - lua/weapons/weapon_cs16_knife.lua:328 2. unknown - lua/weapons/weapon_cs_base.lua:120

I hope the mod can one day be updated to fix these errors, and that we get to see the icons and gamemode you had been working on!
Last edited by Saturn's Ring; 22 Jun, 2022 @ 2:34am