• Weapon Holdtype
    2 replies, posted
Every weapon i have except for the default ones, There held like pistols, does anyone know how to fix this?
First of all, for these kinds of question i suggest you to go here : [url]http://wiki.garrysmod.com/?title=Main_Page[/url] The gmod wiki has all answers yhou may need :) ---------- Now, for the HoldType (from the wiki) [lua]SWEP.Holdtype = "ar2" function SWEP:Initialize() self:SetWeaponHoldType( self.HoldType ) end [/lua] The actual problem is that the code is written in the SERVER parentesis. So, there is the wrong code : [lua]SWEP.Holdtype = "ar2" function SWEP:Initialize() if SERVER then self:SetWeaponHoldType( self.HoldType ) end [/lua] if SERVER then is causing all the madness here.
Well im not that good with scripting so what do i do with that? [editline]08:02PM[/editline] Oh nvm didnt see the whole post
Sorry, you need to Log In to post a reply to this thread.