Examples of ClientSide Entities

Has anybody used ents.CreateClientProp before?
I’m asking because I’m not making any progress with this code



        ent = ents.CreateClientProp( "models/props_foliage/tree_pine04.mdl")
        ent:SetPos(pos)
        ent:SetModel("models/props_foliage/tree_pine04.mdl")
        ent:SetAngles(ang)
        ent:Spawn()
        ent:SetRenderMode( RENDERMODE_TRANSALPHA )