Garry's Mod Custom Gamemode, Invisable hands...??

Hey everyone,

I am currently coding my custom game mode, and for all the weapons there is no hand model being shown… i derived the game mode from the “base” game mode included in Garry’s Mod, I don’t think there’s a error in my code

I don’t know what can be causing this error because in other game modes i play on like sandbox or other custom ones, the model is drawn successfully, but in mine there is non drawn.
Any help, or known fixes?

here is the shared lua



team.SetUp( 0, "Blue", Color(0, 0, 255) )

function GM:Initialize()
	self.BaseClass.Initialize( self )
end
// loading the models before they join
util.PrecacheModel('models/player/group01/male_07.mdl')


init - part that has to do with anything


function GM:PlayerInitialSpawn( ply )
	print("Player: " .. ply:Nick() .. ", has spawned.")
	
	ply:SetGamemodeTeam( 0 )
end

function GM:PlayerSpawn( ply )
	ply:SetModel('models/player/group01/male_07.mdl')
	ply:GiveGamemodeWeapons()
end


and my player lua


local ply = FindMetaTable("Player")

local teams = {}

teams[0] = {name = "Base", weapons = {"weapon_crowbar", "weapon_pistol"} }

function ply:SetGamemodeTeam( n )
	if not teams[n] then return end
	
	self:SetTeam( n )
	
	
	self:GiveGamemodeWeapons()
	
	return true
end

function ply:GiveGamemodeWeapons()
	local n = self:Team()
	self:StripWeapons()
	
	for k, wep in pairs(teams[n].weapons) do
		self:Give(wep)
	end
end

Thank you,
Strikerz

Somewhere in PlayerSpawn you need to call the class hooks:

[lua] player_manager.SetPlayerClass( Player, “player_acecool_dev” )

player_manager.OnPlayerSpawn( Player )
player_manager.RunClass( Player, "Spawn" )[/lua]

Let the chain continue http://www.facepunch.com/showthread.php?t=1286481

Thank you so much man!