Would it be possible

Would it be possible to change the youtube player to a diffrent video website? If so I might need some help and I was willing if someone could help me, I just want to convert it to a diffrent site.

Yeah.

Would everthing within the mod need to be changed, or the dimensions and links and stuff? I just think the dimensions and stuff

post the code and i will have a go

shared.lua
[lua]/*
YouTube Player by I_am_McLovin
<mclovin1015@gmail.com>
*/

ENT.Type = “anim”
ENT.Base = “base_anim”
ENT.PrintName = “YouTube Player”
ENT.Author = “I am McLovin”

ENT.Spawnable = false
ENT.AdminSpawnable = true

ENT.RenderGroup = RENDERGROUP_TRANSLUCENT

/*
If you decide to add your own screen
just put the screen dir in Screen_List here like
I did with the others, then you can define your
own offsets in Screen_Offsets. It should
be pretty straight forward. If I get enough requests I
might release a tutorial on how to modify/add screens.
Keep checking my channel for updates! (McLoves1001)

NOTE: 
Keep the width and height the same. Sometimes
it will give you purple and black shit and if you raise the 
resolution it will start to lag.

*/

Screen_List = {
[“models/props/cs_office/tv_plasma.mdl”] = true,
[“models/props/cs_assault/billboard.mdl”] = true,
[“models/props/cs_office/projector.mdl”] = true
}

Screen_Offsets = {
[“models/props/cs_office/tv_plasma.mdl”] = {
[“scale”] = 0.0555,
[“w”] = 1025,
[“h”] = 513,
[“x”] = 0.79,
[“y”] = 1.9,
[“z”] = 8
},
[“models/props/cs_assault/billboard.mdl”] = {
[“scale”] = 0.219,
[“w”] = 1025,
[“h”] = 513,
[“x”] = 52,
[“y”] = 7.8,
[“z”] = 17.8
},
[“models/props/cs_office/projector.mdl”] = {
[“scale”] = 0.001,
[“w”] = 1025,
[“h”] = 513
}
}
[/lua]
init.lua
[lua]/*
YouTube Player by I_am_McLovin
<mclovin1015@gmail.com>
*/

AddCSLuaFile( “cl_init.lua” )
AddCSLuaFile( “shared.lua” )

include( “shared.lua” )

/*
Set this to nil or “” for no password,.
But if you would like a password simply
set it to what you would like.

Example:
local password = "password"

*/

local password = nil

local passwords = {}

function ENT:Initialize()

self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
self.Entity:DrawShadow( false )

end

function ENT:SpawnFunction( ply, trace )

if #ents.FindByClass( "youtube_player" ) &gt;= 1 then return end 

if !file.IsDir( "youtube player" ) then file.CreateDir( "youtube player" ) end
if !file.IsDir( "youtube player/videos" ) then file.CreateDir( "youtube player/videos" ) end
	
if password then
	if passwords[ply] and passwords[ply].correct == true then
		umsg.Start( "youtube_player_spawnmenu", ply )
		umsg.End( )
	else
		umsg.Start( "youtube_player_password_request", ply )
			umsg.String( "youtube_player_spawnmenu" )
		umsg.End()
	end
else
	umsg.Start( "youtube_player_spawnmenu", ply )
	umsg.End( )
end

end

function ENT:Use( ply, caller )

if !timer.IsTimer( "youtube_player_use_delay"..tostring( self.Entity:EntIndex() ) ) and self.Entity and self.Entity:IsValid() and ply and ply:IsValid() then
	local index = tostring( self.Entity:EntIndex() )
	
	umsg.Start( "youtube_player_use_menu", ply )
		if password then
			if passwords[ply] and passwords[ply].correct then
				umsg.Bool( true )
			else
				umsg.Bool( false )
			end
		else
			umsg.Bool( true )
		end
	umsg.End( )
	
	timer.Create( "youtube_player_use_delay" .. index, 2, 1, function( index )
		timer.Remove( "youtube_player_use_delay" .. index )
	end, index )
end

end

concommand.Add( “youtube_player_spawn”, function( ply, com, args )

if ply and ply:IsValid() and ply:IsAdmin() then
	if Screen_List[args[1]] and ( !password or ( password and passwords[ply] and passwords[ply].correct ) ) then
		local trace = ply:GetEyeTrace()

		local ent = ents.Create( "youtube_player" )
			ent:SetModel( args[1] )
			ent:SetPos( trace.HitPos + trace.HitNormal * 80 )
			ent:DropToFloor()
			ent:PhysWake()
			ent:Spawn()
			ent:Activate()
		
		ply:AddCleanup( "props", ent )
		
		undo.Create( "YouTube_Player" )
			undo.AddEntity( ent )
			undo.SetPlayer( ply )
		undo.Finish()
	end
end

end )

concommand.Add( “youtube_player_password”, function( ply, com, args )

if password then
	if passwords[ply] then 
		if !passwords[ply].correct then
			if passwords[ply].tries &gt;= 10 then
				ply:PrintMessage( HUD_PRINTTALK, "You have made too many password attempts!" )
			else
				if args[1] == password then
					passwords[ply].correct = true
					if args[2] then
						umsg.Start( args[2], ply )
						umsg.End( )
					end
				else
					passwords[ply].tries = passwords[ply].tries + 1
					ply:PrintMessage( HUD_PRINTTALK, "Incorrect Password." )
				end
			end
		end
	else
		passwords[ply] = {
			correct = false, 
			tries = 0
		}
		if args[1] == password then
			passwords[ply].correct = true
			if args[2] then
				umsg.Start( args[2], ply )
				umsg.End( )
			end
		else
			passwords[ply].tries = passwords[ply].tries + 1
			ply:PrintMessage( HUD_PRINTTALK, "Incorrect Password." )
		end
	end
end

end )

concommand.Add( “youtube_player_add_video”, function( ply, com, args )

if ply and ply:IsValid() and ply:IsAdmin() then
	if ( !password or ( password and passwords[ply] and passwords[ply].correct ) ) and file.IsDir( "youtube player" ) and file.IsDir( "youtube player/videos" ) then
		file.Write( "youtube player/videos/" .. args[1] .. ".txt", table.concat( { args[1], args[2] }, ";" ) )
	end
end

end )

concommand.Add( “youtube_player_remove_video”, function( ply, com, args )

if ply and ply:IsValid() and ply:IsAdmin() then
	if ( !password or ( password and passwords[ply] and passwords[ply].correct ) ) and file.IsDir( "youtube player" ) and file.IsDir( "youtube player/videos" ) then
		if file.Exists( "youtube player/videos/" .. string.lower( args[1] ) .. ".txt" ) then
			file.Delete( "youtube player/videos/" .. string.lower( args[1] ) .. ".txt" )
		end
	end
end

end )

concommand.Add( “youtube_player_start_populate”, function( ply, com, args )

if ply and ply:IsValid() and ply:IsAdmin() then
	if ( !password or ( password and passwords[ply] and passwords[ply].correct ) ) and file.IsDir( "youtube player" ) and file.IsDir( "youtube player/videos" ) then
		file.TFind( "data/youtube player/videos/*.txt", function( search, folders, files )				
			for k,v in pairs( files ) do
				local fl = file.Read( "youtube player/videos/" .. v )
				
				umsg.Start( "youtube_player_populate_video_list", ply )
				
				umsg.String( string.Explode( ";", fl )[1] )
				umsg.String( string.Explode( ";", fl )[2] )
				
				umsg.End()
			end
			
		end )
	end
end

end )

concommand.Add( “youtube_player_url”, function( ply, com, args )

if ply and ply:IsValid() and ply:IsAdmin() then
	if password then
		if passwords[ply] then 
			if passwords[ply].correct then		
				umsg.Start( "youtube_player_start_video", RecipientFilter():AddAllPlayers() )
					umsg.String( args[1] )
				umsg.End( )
			else
				umsg.Start( "youtube_player_password_request", ply )
					umsg.String( "youtube_player_url" )
				umsg.End()
			end
		else
			umsg.Start( "youtube_player_password_request", ply )
				umsg.String( "youtube_player_url" )
			umsg.End()
		end
	else
		umsg.Start( "youtube_player_start_video", RecipientFilter():AddAllPlayers() )
			umsg.String( args[1] )
		umsg.End( )
	end
end

end )[/lua]

[editline]11:30AM[/editline]

cl_init.lua
[lua]/*
YouTube Player by I_am_McLovin
<mclovin1015@gmail.com>

*/

include( “shared.lua” )

ENT.RenderGroup = RENDERGROUP_OPAQUE

ENT.Base = “base_anim”
ENT.Type = “anim”

local _self, video_list, yt_mfps, yt_on

local start_html = [[
<html>
<head>
<style type=“text/css”>
body, html{
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
text-align: center;
vertical-align:100%;
height:100%;
}
</style>
</head>
<body scroll=“no”; bgcolor=“black”>
</body>
</html>
]]

local function Create_Browser( self )

local offsets = Screen_Offsets[self.Entity:GetModel()]

self.BW = offsets.w
self.BH = offsets.h

self.Scale = offsets.scale

self.Browser = vgui.Create( "HTML" )
	self.Browser:SetSize( self.BW, self.BH )
	self.Browser:SetPaintedManually( true )
	self.Browser:SetVerticalScrollbarEnabled( false )
	self.Browser:SetHTML( start_html )
	self.Browser:StartAnimate( 1000 / yt_mfps )

end

local function send_password( pass, _umsg )
if pass and string.len( pass ) <= 150 then
if _umsg and _umsg != “” then
RunConsoleCommand( “youtube_player_password”, pass, _umsg )
else
RunConsoleCommand( “youtube_player_password”, pass )
end
return true
else
LocalPlayer():PrintMessage( HUD_PRINTTALK, “Invalid Password.” )
return false
end
end

function ENT:Initialize()

if !file.IsDir( "youtube player" ) then file.CreateDir( "youtube player" ) end
if !file.IsDir( "youtube player/settings" ) then file.CreateDir( "youtube player/settings" ) end
if !file.Exists( "youtube player/settings/settings.txt" ) then file.Write( "youtube player/settings/settings.txt", "20;1" ) end

local fl = file.Read( "youtube player/settings/settings.txt" )

yt_mfps = tonumber( string.Explode( ";", fl )[1] )
yt_on = tonumber( string.Explode( ";", fl )[2] )

_self = self

self:DrawShadow( false )

if yt_on == 1 then Create_Browser( self ) end

if self:GetModel() == "models/props/cs_office/projector.mdl" then
	self:SetRenderBounds( Vector( -55000, -55000, -55000 ), Vector( 55000, 55000, 55000 ) )
end

end

function ENT:Draw()

self.Entity:DrawModel() 

if !self.Browser or !self.Browser:IsValid() then 
	if yt_on == 1 then
		Create_Browser( _self )
	end
	return
end

local pos, ang, _draw
local scale = self.Scale

if self.Entity:GetModel() != "models/props/cs_office/projector.mdl" then
	local offsets = Screen_Offsets[self.Entity:GetModel()]
	
	local obbmax, obbmin = self:OBBMaxs(), self:OBBMins()
	
	obbmax.x = obbmax.x - offsets.x
	obbmax.y = obbmin.y + offsets.y
	obbmax.z = obbmax.z - offsets.z
	
	pos = self:LocalToWorld( obbmax )
	
	ang = self:GetAngles()
	ang:RotateAroundAxis( ang:Right(), -90 )  
	ang:RotateAroundAxis( ang:Up(), 90 )
else
	local start = self.Entity:LocalToWorld( self.Entity:OBBCenter() )
	
	local excludes = player.GetAll()
	table.insert( excludes, self.Entity )
	
	//increase the multiplier for a greater max distance and max size
	local trace = util.QuickTrace( start, self.Entity:GetRight() * 2000, excludes )
	
	_draw = trace.Hit
	
	if _draw then
		scale = ( ( self.Scale ) * start:Distance( trace.HitPos ) )
	
		ang = trace.HitNormal:Angle()
		ang:RotateAroundAxis( ang:Forward(), 90 ) 
		ang:RotateAroundAxis( ang:Right(), -90 )
		
		pos = trace.HitPos + ( trace.HitNormal * 3 ) - ang:Right() * ( ( self.BH * scale ) / 2 ) - ang:Forward() * ( ( self.BW * scale ) / 2 )
	end
	
end

if self.Browser and self.Browser:IsValid() and ( self.Entity:GetModel() != "models/props/cs_office/projector.mdl" or ( self.Entity:GetModel() == "models/props/cs_office/projector.mdl" and _draw ) ) then
	self.Browser:SetPaintedManually( false )
	
	render.SuppressEngineLighting( true )
	
	cam.Start3D2D( pos, ang, scale )
		self.Browser:PaintManual()
		
		surface.SetDrawColor( 0, 0, 0, 255 )
		if self.Entity:GetModel() == "models/props/cs_office/tv_plasma.mdl" then
			surface.DrawRect( 0, -90, self.BW, 91 )
		elseif self.Entity:GetModel() == "models/props/cs_assault/billboard.mdl" then
			surface.DrawRect( 0, -30, self.BW, 31 )
		end
	cam.End3D2D()

	render.SuppressEngineLighting( false )
	
	self.Browser:SetPaintedManually( true )
end

end

function ENT:IsTranslucent()

return true

end

function ENT:OnRemove()

if self.Browser and self.Browser:IsValid() then
	self.Browser:Remove()
end

end

usermessage.Hook( “youtube_player_spawnmenu”, function( um )

local frame = vgui.Create( "DFrame" )
	frame:SetTitle( "Youtube URL" )
	frame:SetSize( 211, 130 )
	frame:SetSizable( false )
	frame:Center()
	frame:MakePopup()
	
local panel = vgui.Create( "DPanel", frame )
	panel:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
	panel:SetPos( 5, 25 )
	function panel.Paint() 
		surface.SetDrawColor( 0, 0, 0, 235 )
		surface.DrawRect( 0, 0, panel:GetWide(), panel:GetTall() )
	end
	
local text = vgui.Create( "DLabel", frame )
	text:SetText( "Please choose a screen." )
	text:SizeToContents()
	text:SetPos( ((frame:GetWide() / 2) - (text:GetWide() / 2 )), 28 )
	text:SetColor( Color( 255, 255, 255, 175 ) )

local spawn_menu = vgui.Create( "DPanelList", frame )
	spawn_menu:EnableVerticalScrollbar( false ) 
	spawn_menu:EnableHorizontal( true )
	spawn_menu:SetPadding( 5 )
	spawn_menu:SetPos( 5, 45 )
	spawn_menu:SetSize( 201, 75 )

for screen,_ in pairs( Screen_List ) do
	local icon = vgui.Create( "SpawnIcon", spawn_menu )
		icon:SetModel( screen )
		icon.model = screen
		function icon.DoClick( )
			surface.PlaySound( "ui/buttonclickrelease.wav" )
			RunConsoleCommand( "youtube_player_spawn", icon.model )
			frame:Close()
		end
		
	spawn_menu:AddItem( icon )
end

end )

usermessage.Hook( “youtube_player_populate_video_list”, function( um )

if video_list and video_list:IsValid() then
	video_list:AddLine( um:ReadString(), um:ReadString() )
end	

video_list:SortByColumn( 1 )

end )

usermessage.Hook( “youtube_player_use_menu”, function( um )

local frame = vgui.Create( "DFrame" )
	frame:SetTitle( "Options Panel" )
	frame:SetSize( 250, 130 )
	frame:SetSizable( false )
	frame:Center()
	frame:MakePopup()
	
local menu_tab = vgui.Create( "DPropertySheet", frame )
	menu_tab:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
	menu_tab:SetPos( 5, 25 )

local options_tab = vgui.Create( "DPanel" )
	options_tab:SetSize( menu_tab:GetWide() - 10, menu_tab:GetTall() - 10 )
	options_tab:SetPos( 5, 5 )
	function options_tab.Paint() 
		surface.SetDrawColor( 0, 0, 0, 235 )
		surface.DrawRect( 0, 0, options_tab:GetWide(), options_tab:GetTall() )
	end
	
local fps_bar = vgui.Create( "DNumSlider", options_tab )
	fps_bar:SetSize( options_tab:GetWide() - 10, 100 )
	fps_bar:SetPos( 5, 5 )
	fps_bar:SetText( "Max FPS" )
	fps_bar:SetMin( 1 )
	fps_bar:SetMax( 50 )
	fps_bar:SetDecimals( 0 )
	fps_bar:SetValue( yt_mfps )
	function fps_bar.Think()
		if fps_bar:GetValue() != yt_mfps then
			yt_mfps = fps_bar:GetValue()
			file.Write( "youtube player/settings/settings.txt", table.concat( { yt_mfps, yt_on }, ";" ) )
			if _self.Browser then
				_self.Browser:StopAnimate()
				_self.Browser:StartAnimate( 1000 / yt_mfps ) 
			end
		end
	end
	
local stop_video = vgui.Create( "DButton", options_tab )
	stop_video:SetSize( (options_tab:GetWide() - 10) / 2, 20 )
	stop_video:SetPos( 5, 45 )
	stop_video:SetText( "Stop Video" )
	function stop_video.DoClick()
		if _self.Browser then
			_self.Browser:SetHTML( start_html )
		end
	end	
	
local on_off = vgui.Create( "DCheckBoxLabel", options_tab )
	on_off:SetPos( ( ( options_tab:GetWide() - 10 ) / 2 ) + 20, 47 )
	on_off:SetText( "Player On" )
	on_off:SetValue( yt_on )
	on_off:SizeToContents()
	function on_off.Think()
		local val
		if on_off:GetChecked( true ) then
			val = 1
		else
			val = 0
		end
		if val != yt_on then
			yt_on = val
			file.Write( "youtube player/settings/settings.txt", table.concat( { yt_mfps, yt_on }, ";" ) )
			if yt_on == 1 then
				Create_Browser( _self )
			else
				if _self.Browser then 
					_self.Browser:Remove() 
					_self.Browser = nil
				end
			end
		end
	end
	
menu_tab:AddSheet( "Player Options", options_tab, "gui/silkicons/wrench", false, false, "Youtube Player Options" )

if LocalPlayer():IsAdmin() then
	if um:ReadBool() then
		local video_tab = vgui.Create( "DPanel" )
			video_tab:SetSize( menu_tab:GetWide() - 10, menu_tab:GetTall() - 10 )
			video_tab:SetPos( 5, 5 )
			function video_tab.Paint() 
				surface.SetDrawColor( 0, 0, 0, 235 )
				surface.DrawRect( 0, 0, video_tab:GetWide(), video_tab:GetTall() )
			end
			
		local video_options = vgui.Create( "DLabel", video_tab )
			video_options:SetText( "Video Options" )
			video_options:SizeToContents()
			video_options:SetPos( ( ( video_tab:GetWide() / 2 ) - ( video_options:GetWide() / 2 ) ), 3 )
			video_options:SetColor( Color( 255, 255, 255, 175 ) )
			
		local url_window_btn = vgui.Create( "DButton", video_tab )
			url_window_btn:SetText( "Enter a URL" )
			url_window_btn:SetSize( video_tab:GetWide() - 10, 20 )
			url_window_btn:SetPos( 5, 20 )
			function url_window_btn.DoClick()
				frame:Close()
				
				frame = vgui.Create( "DFrame" )
					frame:SetTitle( "URL Entry" )
					frame:SetSize( 250, 95 )
					frame:SetSizable( false )
					frame:Center()
					frame:MakePopup()
					
				local panel = vgui.Create( "DPanel", frame )
					panel:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
					panel:SetPos( 5, 25 )
					function panel.Paint() 
						surface.SetDrawColor( 0, 0, 0, 235 )
						surface.DrawRect( 0, 0, panel:GetWide(), panel:GetTall() )
					end
					
				local text = vgui.Create( "DLabel", frame )
					text:SetText( "Please enter a Youtube URL" )
					text:SizeToContents()
					text:SetPos( ((frame:GetWide() / 2) - (text:GetWide() / 2 )), 28 )
					text:SetColor( Color( 255, 255, 255, 175 ) )
					
				local textbox = vgui.Create( "DTextEntry", frame )
					textbox:SetSize( 236, 20 )
					textbox:SetPos( 7, 45 )
					function textbox.OnEnter()
						RunConsoleCommand( "youtube_player_url", textbox:GetValue() )
						frame:Close()
					end
					
				local sendurl = vgui.Create( "DButton", frame )
					sendurl:SetText( "Load Video" )
					sendurl:SetSize( 236, 20 )
					sendurl:SetPos( 7, 67 )
					function sendurl.DoClick()
						RunConsoleCommand( "youtube_player_url", textbox:GetValue() )
						frame:Close()
					end
			end
		
		local video_list_btn = vgui.Create( "DButton", video_tab )
			video_list_btn:SetText( "Load Video List" )
			video_list_btn:SetSize( video_tab:GetWide() - 10, 20 )
			video_list_btn:SetPos( 5, 45 )
			function video_list_btn.DoClick()
				frame:Close()
				
				local selected = nil
				
				frame = vgui.Create( "DFrame" )
					frame:SetTitle( "Video List" )
					frame:SetSize( 250, 165 )
					frame:SetSizable( false )
					frame:Center()
					frame:MakePopup()
					
				local panel = vgui.Create( "DPanel", frame )
					panel:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
					panel:SetPos( 5, 25 )
					function panel.Paint() 
						surface.SetDrawColor( 0, 0, 0, 235 )
						surface.DrawRect( 0, 0, panel:GetWide(), panel:GetTall() )
					end
					
				video_list = vgui.Create( "DListView", panel )
					video_list:SetSize( panel:GetWide() - 10, 100 )
					video_list:SetPos( 5, 5 )
					video_list:SetMultiSelect( false )
					video_list:AddColumn( "Name" )
					video_list:AddColumn( "URL" )
					function video_list.OnRowSelected( parent, row )
						local dlist = DermaMenu()
						
						dlist:AddOption( "Load Video", function()
							RunConsoleCommand( "youtube_player_url", video_list:GetLine(row):GetValue(2) )
							frame:Close()
						end )
						
						dlist:AddOption( "Remove Video", function()
							RunConsoleCommand( "youtube_player_remove_video", video_list:GetLine(row):GetValue(1) )
							video_list:RemoveLine( row )
						end )
						
						dlist:Open()
						
						selected = row
					end
					
				local add_video = vgui.Create( "DButton", panel )
					add_video:SetText( "Add Video" )
					add_video:SetSize( panel:GetWide() - 13, 20 )
					add_video:SetPos( 7, 110 )
					function add_video.DoClick()
						frame:Close()
						
						frame = vgui.Create( "DFrame" )
							frame:SetTitle( "Add Video" )
							frame:SetSize( 210, 145 )
							frame:SetSizable( false )
							frame:Center()
							frame:MakePopup()
						
						local panel = vgui.Create( "DPanel", frame )
							panel:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
							panel:SetPos( 5, 25 )
							function panel.Paint() 
								surface.SetDrawColor( 0, 0, 0, 235 )
								surface.DrawRect( 0, 0, panel:GetWide(), panel:GetTall() )
							end
							
						local name_label = vgui.Create( "DLabel", frame )
							name_label:SetText( "Name" )
							name_label:SizeToContents()
							name_label:SetPos( ( ( frame:GetWide() / 2 ) - ( name_label:GetWide() / 2 ) ), 28 )
							name_label:SetColor( Color( 255, 255, 255, 175 ) )
							
						local namebox = vgui.Create( "DTextEntry", frame )
							namebox:SetSize( 190, 20 )
							namebox:SetPos( 10, 45 )
							
						local URL_label = vgui.Create( "DLabel", frame )
							URL_label:SetText( "URL" )
							URL_label:SizeToContents()
							URL_label:SetPos( ( ( frame:GetWide() / 2 ) - ( URL_label:GetWide() / 2 ) ), 70 )
							URL_label:SetColor( Color( 255, 255, 255, 175 ) )
							
						local URL_box = vgui.Create( "DTextEntry", frame )
							URL_box:SetSize( 190, 20 )
							URL_box:SetPos( 10, 90 )
							
						local add_video = vgui.Create( "DButton", frame )
							add_video:SetText( "Add Video" )
							add_video:SetSize( 190, 20 )
							add_video:SetPos( 10, 115 )
							function add_video.DoClick()
								if namebox:GetValue() and namebox:GetValue() != "" and string.len( namebox:GetValue() ) &lt;= 50 and URL_box:GetValue() and URL_box:GetValue() != "" and string.len( URL_box:GetValue() ) &lt;= 100 then
									RunConsoleCommand( "youtube_player_add_video", namebox:GetValue(), URL_box:GetValue() )
									frame:Close()
								end
							end
					end
					
				RunConsoleCommand( "youtube_player_start_populate" )
			end
			
		menu_tab:AddSheet( "Video Options", video_tab, "gui/silkicons/user", false, false, "Youtube Player Video Options" )
	else
		local video_tab = vgui.Create( "DPanel" )
			video_tab:SetSize( menu_tab:GetWide() - 10, menu_tab:GetTall() - 10 )
			video_tab:SetPos( 5, 5 )
			function video_tab.Paint() 
				surface.SetDrawColor( 0, 0, 0, 235 )
				surface.DrawRect( 0, 0, video_tab:GetWide(), video_tab:GetTall() )
			end
			
		local pass_text = vgui.Create( "DLabel", video_tab )
			pass_text:SetText( "Please enter the password." )
			pass_text:SizeToContents()
			pass_text:SetPos( ( ( video_tab:GetWide() / 2 ) - ( pass_text:GetWide() / 2 ) ), 5 )
			pass_text:SetColor( Color( 255, 255, 255, 175 ) )
		
		local pass_box = vgui.Create( "DTextEntry", video_tab )
			pass_box:SetSize( video_tab:GetWide() - 10, 20 )
			pass_box:SetPos( 5, 20 )
			function pass_box.OnEnter()
				if send_password( pass_box:GetValue() ) then frame:Close() end
			end
			
		local send_pass = vgui.Create( "DButton", video_tab )
			send_pass:SetText( "Submit" )
			send_pass:SetSize( video_tab:GetWide() - 10, 20 )
			send_pass:SetPos( 5, 45 )
			function send_pass.DoClick()
				if send_password( pass_box:GetValue() ) then frame:Close() end
			end
		
		menu_tab:AddSheet( "Video Options", video_tab, "gui/silkicons/user", false, false, "Youtube Player Video Options" )
	end
end

end )

usermessage.Hook( “youtube_player_password_request”, function( um )

local _umsg = um:ReadString()

local frame = vgui.Create( "DFrame" )
	frame:SetTitle( "Password Entry" )
	frame:SetSize( 250, 95 )
	frame:SetSizable( false )
	frame:Center()
	frame:MakePopup()
	
local panel = vgui.Create( "DPanel", frame )
	panel:SetSize( frame:GetWide() - 10, frame:GetTall() - 30 )
	panel:SetPos( 5, 25 )
	function panel.Paint() 
		surface.SetDrawColor( 0, 0, 0, 235 )
		surface.DrawRect( 0, 0, panel:GetWide(), panel:GetTall() )
	end
	
local pass_text = vgui.Create( "DLabel", frame )
	pass_text:SetText( "Please enter the password." )
	pass_text:SizeToContents()
	pass_text:SetPos( ( ( frame:GetWide() / 2 ) - ( pass_text:GetWide() / 2 ) ), 28 )
	pass_text:SetColor( Color( 255, 255, 255, 175 ) )
	
local pass_box = vgui.Create( "DTextEntry", frame )
	pass_box:SetSize( 236, 20 )
	pass_box:SetPos( 7, 45 )
	function pass_box.OnEnter()
		if send_password( pass_box:GetValue(), _umsg ) then frame:Close() end
	end
	
local send_pass = vgui.Create( "DButton", frame )
	send_pass:SetText( "Submit" )
	send_pass:SetSize( 236, 20 )
	send_pass:SetPos( 7, 67 )
	function send_pass.DoClick()
		if send_password( pass_box:GetValue(), _umsg ) then frame:Close() end
	end

end )

usermessage.Hook( “youtube_player_start_video”, function( um )

local self = _self

if !self or !self:IsValid() or !self.Browser then return end

local url = um:ReadString()

print( "(CLIENT) Loading Video...

" … url … "
" )

/* Patdaman was here :D */
local load_html = [[
&lt;html&gt;
	&lt;body bgcolor="black"&gt;
		&lt;script type='text/javascript'&gt;
			&lt;!--
				var youurl=']] .. url .. [[';
				var newurl=youurl.split('v=');
				var convertedurl = newurl[1]
				
				document.write("&lt;object width='100%' height='100%'&gt;&lt;param name='movie' value='http://www.youtube.com/v/"+ convertedurl +"&hl=en&fs=1&autoplay=1'&gt;&lt;/param&gt;&lt;param name='allowFullScreen' value='true'&gt;&lt;param name='autoplay' value='true'&gt;&lt;/param&gt;&lt;/param&gt;&lt;param name='allowscriptaccess' value='always'&gt;&lt;/param&gt;&lt;embed src='http://www.youtube.com/v/"+ convertedurl + "&hl=en&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='100%' height='100%'&gt;&lt;/embed&gt;&lt;/object&gt;"); 
			// --&gt;
		&lt;/script&gt;
	&lt;/body&gt;
&lt;/html&gt;
]]

self.Browser:SetHTML( load_html )

end )
[/lua]

Line 576, cl_init.lua. Change that document.write argument to whatever you want to embed. That particular script is the embed from youtube.

Ack, that code is so ugly. Please don’t be a wuss and be afraid to use gm_chrome. I don’t care if the people on your server don’t have it, get it! It’s just a no brainer.

You made me get it >:( then didn’t even use it. Wasting my bandwidthz


<object width="510" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://static.xvideos.com/swf/flv_player_site_v4.swf" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="id_video=189977" /><embed src="http://static.xvideos.com/swf/flv_player_site_v4.swf" allowscriptaccess="always" width="510" height="400" menu="false" quality="high" bgcolor="#000000" allowfullscreen="true" flashvars="id_video=189977" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

I got that from one of the sites. How would I turn it around to work universal on the videos
because it used different signs and everything and idk.

It’s not his code, it’s Mr McLovins.

It says Mr.Mclovins at the top, yall should know that