SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulti

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Retalak
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Jan 01, 2014 11:44 pm

SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulti

Post by Retalak »

Every time someone takes out a custom SWEP it says "SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulting to normal)" in the chat for everyone. Any ideas? 8O
theRadAleks
This is my homepage
This is my homepage
Posts: 203
Joined: Wed Feb 19, 2014 6:07 pm
Location: Dallas, TX

Re: SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defa

Post by theRadAleks »

I'm pretty positive this is happening to every Garry's mod server at the moment ( including my own ) it has something to do with the newest update, but as far as i know it doesn't cause any problems.
pgjohn
New to forums
New to forums
Posts: 1
Joined: Wed Sep 03, 2014 2:18 pm

Re: SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defa

Post by pgjohn »

Code: Select all

SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulting to normal)
This error is caused by one of the recent GMod updates that removed "SetWeaponHoldType" and replaced it with "SetHoldType".

If you have any addons (weapons) that still have "SetWeaponHoldType" - this error will be shown. You can easily fix it by finding in the weapon code where it says "SetWeaponHoldType" and change it to "SetHoldType".
Post Reply