[SWEP CONSTRUCTION KIT] Quad not displayed

Hi,

I added a Quad on the view model of my swep, he is displayed on the swep construction kit but when i import the design only the model is displayed but not the quad, i tried several time with different settings but no result at all !

Do i need to implement custom function in order to make it works ?

Here is my code (without base code, PS : i got the base code but it’s kind of useless to show it)


if CLIENT then

  SWEP.VElements = {
  	["clock"] = { type = "Model", model = "models/props_c17/clock01.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(3.45, 4.429, 0), angle = Angle(123, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
  	["screen"] = { type = "Quad", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(0, 0, -1.481), angle = Angle(-5.557, 0, 7.777), size = 0.102, draw_func = nil}
  }
  SWEP.ViewModelBoneMods = {
  	["ValveBiped.Grenade_body"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) }
  }

end

SWEP.HoldType = "slam"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/v_grenade.mdl"
SWEP.WorldModel = "models/weapons/w_grenade.mdl"
SWEP.ShowViewModel = true
SWEP.ShowWorldModel = false


SWEP.Category            = "Ricky's weapons"
SWEP.Spawnable           = true
SWEP.AdminSpawnable      = true
SWEP.Primary.Automatic   = false
SWEP.Secondary.Ammo			 = "none"



function SWEP:PrimaryAttack()

end


function SWEP:SecondaryAttack()

end

function SWEP:Reload()

end

function SWEP:Think()

end

function SWEP:Deploy()

end

function SWEP:OnRemove()
  
end


The clock model is displayed but not the Quad,

Thanks in advance

You are not adding a function inside draw_func inside VElementd

Thanks for your answer gonzalolog but could you be more specific, i can’t find any exemple on google.

I tough i just had to add one in initialize like this :


  if CLIENT then
	   self.VElements["screen"].draw_func = function(weapon)
		     draw.SimpleText("TEST","default",0,0,Color(255,0,0,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
	   end
  end

BUMP, please anyone ?