Weapon Loadout - Unwanted weps

Basicly i spawn with more weapons not just the smg also if i add my own custom weapons you don’t spawn with them.
[lua]function GM:PlayerLoadOut( ply )
if ply:Team() == 1 then

	ply:Give( "weapon_smg" )

ply:Spawn()
end[/lua]

Strip the player before giving them the weapons you want them to have. Also, don’t call player:Spawn

Ok i have this but it’s still giving unwanted weapons.
[lua]function GM:PlayerLoadOut( ply )
Player:StripWeapons( )
if ply:Team() == 1 then

	ply:Give( "weapon_smg" )

end[/lua]

Try:
[lua]function GM:PlayerLoadOut( ply )
if ply:Team() == 1 then

	ply:Give( "weapon_smg" )
	
end

end[/lua]

[lua]
function GM:PlayerLoadOut( ply )
if ply:Team() == 1 then

	ply:Give( "weapon_smg" )
	
end
    return true;

end
[/lua]

You must return true to stop the other loadout.

This:

[lua]
function GM:PlayerLoadOut( ply )
if ply:Team() == 1 then
ply:Give( “weapon_smg1” )
end
return true
end
[/lua]

Right ok thanks i forgot to return true