Ok here it is
[lua]AddCSLuaFile( “cl_init.lua” ) //Tell the server that the client need to download cl_init.lua
AddCSLuaFile( “shared.lua” ) //Tell the server that the client need to download shared.lua
AddCSLuaFile( “cl_modelmenu.lua” )
include( ‘shared.lua’ ) //Tell the server to load shared.lua
function GM:PlayerInitialSpawn( ply )
RunConsoleCommand( “zs_menu” )
RunConsoleCommand( “team_1” )
end
function GM:PlayerLoadout( ply )
if ply:Team() == 1 then
ply:Give( "weapon_physgun" )
ply:Give( "gmod_tool" )
ply:Give( "weapon_pistol" )
ply:GiveAmmo( "50", "pistol" )
end
end
function team1( ply )
ply:SetTeam( 1 )
ply:Spawn()
end
concommand.Add( “team_1”, team1 )
concommand.Add( “zs_setmodel”, function( ply, cmd, args )
if args[1] then
ply:SetModel( args[1] );
end
end );
– Brings up the Menu by pressing F1
function GM:ShowHelp( ply )
ply:ConCommand( “zs_help” )
end
function SchoolShow( ply )
ply:ConCommand( “zs_spawnmenu” )
end
hook.Add(“ShowSpare1”, “School”, SchoolShow)
function SchoolShow( ply )
ply:ConCommand( “zs_menu” )
end
hook.Add(“ShowSpare2”, “School”, SchoolShow)
[/lua]