Garry's Mod

Garry's Mod

86 ratings
Garry's Tube - YouTube player for Garry's Mod[x86-64]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
File Size
Posted
Updated
35.300 KB
Jan 2, 2024 @ 7:45pm
Jan 9 @ 9:44pm
5 Change Notes ( view )

Subscribe to download
Garry's Tube - YouTube player for Garry's Mod[x86-64]

Description
Please read the description before you download or comment.

Fixed and working as of 1-10-2025

You need to go into steam and right click Garry's Mod/ Properties/Beta's and switch to the [x86-64] version for this addon to work! This uses gmod html to access the YouTube page (not to be confused with the steam overlay web browser). I call it a YouTube player because it allows you to run it in the background and save URL's inside Garry's Mod. When you save them it adds a button to the menu when you open it.

Things you should know:
1. To get started type !yt or !ytm to open the main menu
2. You can open YouTube and add your first link by clicking the Open YouTube button.
3. After you add a link you can click the newly generated button to open the Current Video player.
4. You can hide the player in the background by clicking the X and listen to it play.

Please read carefully:

5. This next part is not recommended and is a warning, You can sign-in to YouTube on it and it will stay logged into it during the duration you are on Garry's Mod and when you close it, it will forget the login. However I am not specialized in security and I do not know how secure logging in from Garry's Mod is. Therefore, I do not recommend it as you can still press the skip ads button in the current video player.

6. This addon hasn't been tested in every scenario. There will be problems which is why there is a backup button for your links. You can also navigate to your garrysmod/data folder to find your page names and links. I will slowly make this addon better over time. I am only 1 person and with the help of Copilot I have been able to make this possible. If there are any major changes in YouTube or Garry's Mod[x86-64] it very possible that this addon will break.

7. I only tested this on 1 server and it seems the server needs the addon even though it will have no involvement in the addons processes. This is another reason not to log into YouTube as it may be possible for servers you join to gain access to things. Again I am not an expert and that was just a theory.

8. I hope you enjoy this addon and have fun! I hope I didn't forget anything ~_~
18 Comments
RainBroFTW  [author] Feb 7 @ 11:21pm 
I am not getting this error and I have ULX. Might there be another addon you have or you are not on the x86 version of garry's mod?
Dobbi Jan 10 @ 9:50am 
Thank you for updating this. I'm not sure if the mods is suppose to be compatible with ULX or not but this is the error on startup, then the error on use. Thank you for your support thus far.

[ULib] lua/autorun/client/ytmenu.lua:47: attempt to call global 'CurrentVideo' (a nil value)
1. fn - lua/autorun/client/ytmenu.lua:47
2. unknown - lua/ulib/shared/hook.lua:109

[ERROR] lua/autorun/client/ytmenu.lua:16: attempt to call global 'YTLinksMenu' (a nil value)
1. YTMainFunctions - lua/autorun/client/ytmenu.lua:16
2. unknown - lua/autorun/client/ytmenu.lua:22
3. unknown - lua/includes/modules/concommand.lua:54
RainBroFTW  [author] Jan 9 @ 9:49pm 
I fixed it. I cant believe its been broken for so long. At some point there was a version uploaded that was incomplete. I am sorry to everyone who was wanting to use this! It is working correctly now!!!
fine.
Dobbi Dec 27, 2024 @ 5:58pm 
[Garry's Tube - YouTube player for Garry's Mod[x86-64]] lua/autorun/client/ytmenu.lua:16: attempt to call global 'YTLinksMenu' (a nil value)
1. YTMainFunctions - lua/autorun/client/ytmenu.lua:16
2. unknown - lua/autorun/client/ytmenu.lua:22
3. unknown - lua/includes/modules/concommand.lua:54

Not sure if I'm doing it wrong, but my server has the x64 branch as well as me.
rex splode Apr 12, 2024 @ 1:10pm 
can it make vids
panman Jan 9, 2024 @ 6:30am 
is it more optimized than a media player?
my pc doesn't like media player and fps drops from 80 to 20-10
RainBroFTW  [author] Jan 8, 2024 @ 3:26pm 
It can do anything you can normally do on the YouTube website. As for why you would need this? There is no need. It was fun to make and some people don't have dual monitors so this could be useful. The point of Garry's Mod is to make things and have fun with them, not to need them.
kagamine len's terrorist threats Jan 8, 2024 @ 12:54pm 
if it can play livestreams (something media player can't) then that'd be neat
kagamine len's terrorist threats Jan 8, 2024 @ 12:53pm 
does it play livestreams