Spawning a bird mount

I need to know how I could spawn this bird mount

with a simple vgui button. Can anyone help :slight_smile:

call something like this:
[lua]local bird = ents.Create(“mount_crow”)
bird:SetPos(ply:GetPos() + Vector(0, 25, 10))
bird:Spawn()[/lua]

it gives me “attempt to index global ‘ply’ (a nil value)” Sorry im pretty new to lua.

oh, this need to be in a serverside lua, call it with a concommand like [lua]function myfunction(ply)
local bird = ents.Create(“mount_crow”)
bird:SetPos(ply:GetPos() + Vector(0, 25, 10))
bird:Spawn()
end
concommand.Add(“spawnmountcrow”, myfunction)
[/lua]
then call it in your doclick function in your dermalike
[lua]
LocalPlayer():ConCommand(“spawnmountcrow”)[/lua]

That worked, thank you :).