function GM:PlayerInitialSpawn(ply)
self.BaseClass:PlayerInitialSpawn(ply) – don’t know if you need baseclass here but it couldn’t hurt
umsg.Start(“call_vgui”, ply)
umsg.End()
end
–And to set a player’s model:
function GM:PlayerSpawn(ply)
self.BaseClass:PlayerSpawn(ply)
ply:SetModel(“models/Player/Group01/male_01.mdl”) --Model you want when you spawn.
end [/lua]
Where you’ve got [lua]self.BaseClass:PlayerInitialSpawn(ply)[/lua] you need to have [lua]self.BaseClass.PlayerInitialSpawn(self,ply)[/lua] because [lua]object:func(…)[/lua] is just a shorthand for [lua]object.func(object, …)[/lua] and what you’re essentially doing is [lua]self.BaseClass.PlayerInitialSpawn(self.BaseClass, ply)[/lua]