Can't get EF_BONEMERGE to work.

So I’m trying to make an SNPC, and I want to bonemerge another model onto it, but I have no idea how.
As far as I know, the clientside model isn’t even being created. Here’s my code, thank you for the help.

cl_init.lua
[lua]

include(“shared.lua”)

ENT.RenderGroup = RENDERGROUP_BOTH

function ENT:Draw()
self:DrawModel()
end

function ENT:Initialize()
self:SetColor(255,255,255,0)
self.reference = ClientsideModel(“models/kleiner.mdl”) – Will change once I make a custom model
self.reference:SetParent(self)
self.reference:AddEffects(EF_BONEMERGE)
end

function ENT:BuildBonePositions(NumBones, NumPhysBones)
end

function ENT:OnRemove()
self.reference:Remove()
end

function ENT:SetRagdollBones( bIn )
self.m_bRagdollSetup = bIn
end

function ENT:DoRagdollBone(PhysBoneNum, BoneNum)
end
[/lua]

SNPCs don’t have client code that runs.

Well fuck
Should I use a usermessage then?

They do have clientside code AFAIK.

I remember some time ago I faced the same need to bonemerge a model on top of a SNPC, and my approach was to create a dummy entity that would disable physics on itself and add the EF_BONEMERGE effect, then I just created this dummy entity, set the model, and parented it to the desired SNPC (often just by creating it on SNPC initialization)

I’m most sure that certainly isn’t the best way to do that, but Clientside Models weren’t working for me either.

They are entirely serverside - none of SENT hooks are ran for an SNPC on the client.

Wait, not even ENT:Initialize() ?

Nope, none of it