• Viewmodel draw hands but not the weapon
    2 replies, posted
Having a brain fart here, using ViewModel:SetNoDraw(true) will just delete the hands too. SWEP.UseHands doesn't do anything at all either. How do I make just the model of the gun invisible in the viewmodel? Code, I just started this: if(SERVER) then      AddCSLuaFile() end SWEP.PrintName = "Vampire SWEP" SWEP.ViewModel = "models/weapons/c_pistol.mdl" SWEP.WorldModel = "" SWEP.HoldType = "pistol" SWEP.Spawnable = true SWEP.Base = "weapon_base" SWEP.Slot = 0 SWEP.SlotPos = 0 SWEP.DrawAmmo = false SWEP.DrawCrosshair = true SWEP.ViewModelFOV = 70 SWEP.ShowWorldModel = false SWEP.ShowViewModel = false SWEP.UseHands = true SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = -1 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "none" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "none" function SWEP:PrimaryAttack() local ply = self:GetOwner() local tr = ply:GetEyeTrace()      return true end function SWEP:SecondaryAttack() local ply = self:GetOwner() local tr = ply:GetEyeTrace()      return true end function SWEP:Initialize()      self:SetHoldType(self.HoldType) end function SWEP:Reload()      local ply = self:GetOwner()      local tr = ply:GetEyeTrace()      return true end function SWEP:PreDrawViewModel(vm, ent, ply)      vm:SetNoDraw(true) end
Have you tried using the new feature? Might work idk lol
It did!
Sorry, you need to Log In to post a reply to this thread.