Garry's Mod

Garry's Mod

504 ratings
Music player
 
Rate  
Favorite
Favorited
Unfavorite
Type: Tool, Addon
Tags: Fun, Scenic
File Size
Posted
Updated
0.017 MB
24 Jul, 2014 @ 12:29pm
19 Dec, 2014 @ 3:09pm
11 Change Notes ( view )

Subscribe to download
Music player

Subscribed
Unsubscribe
Description
Before complaining about this not working/being broken read Issues&Solutions AND the comments!

THIS DOES NOT WORK WITH YOUTUBE!


A simple yet powerful and elegant music player which allows you to play your favorite music with the press of a button. The music player can be operated through a derma menu, chat commands or even console commands, meaning you can bind keys to control the player! The player has a simple and pretty design, even including an FFT equalizer.

The player has the functionality to play music from both URLs and local files on your computer! In addition, you can save your favorite playlists and they'll be loaded right away for the next use. There's a whole lot more commands to play around with.

Features
  • Easy to use
  • Pretty design & colors
  • FFT equalizer
  • Shuffling!
  • The ability to control the player through chat commands
  • Usable whereever clientside Lua is allowed!

The easiest way to operate the music player is through the derma menu. To access this, use the console command music_menu. To make it even easier, you can bind the command to a key by entering this in the console:

bind keyhere "music_menu"

Chat commands can be used to operate the player just as well as you can use console commands. All commands are prefixed with !musicplayer, followed by the command.

Example: !musicplayer start
This will start playing music.

Chat commands
start - Starts playing music.
stop - Stops playing music.
pause - Pauses the music.
unpause - Unpauses the music.
next - Plays the next song, or starts the playlist again if you're at the playlist's last song.
back - Plays the previous song, or starts the playlist again if you're at the playlist's first song.
toggleplaymode - Toggles the playmode between from URL and from file.
clearplaylist - Stops the music and clears the playlist.
saveplaylist - Saves the playlist (automatically loaded when the player initializes).
deleteplaylist - Deletes a saved playlist.
getplaymode - Adds a chat message saying the current playmode (URL/File).
add "name of song" link_or_path/to/song.mp3 - Adds a song to the playlist, it's important the song name is in quotes!
remove name of song - Removes a song from the playlist, it'll be gone by the next time the playlist starts.

Alternatively, you can use console commands. These are useful if you want to bind a music player control to a key.

Example: bind p "music_start"
This is ran in the console. Now, when p is pressed, the music will start playing!

Console commands
music_start
music_stop
music_togglepause
music_next
music_back
music_add
music_remove
music_clearplaylist
music_toggleplaymode
music_getplaymode
music_saveplaylist
music_deleteplaylist
music_showplaylist

Issues&Solutions

I can't make the player appear or anything, it doesn't work at all!
- Chances are the server you play on (if you do) doesn't allow clientside Lua, therefore the player doesn't load. Try using it in Sandbox and you'll see it works. If it still doesn't work, read the description of the addon once more to see if you didn't misunderstand or miss anything, then make a comment.

But I know the server allows clientside Lua, why didn't it load?
- If this is the case, you can manually load the player. Go into your console and execute the following command: lua_run_cl include("autorun/client/musicplayer.lua")

I added music, but then it doesn't play and just removes itself from the playlist!
- You've either put in an invalid link/file path (double-check, links should be DIRECT, meaning if you open it in your browser the file downloads), or the playmode is wrong. It's also possible you didn't add the music correctly, remember to use quotes around the music's name!

How do I open a saved playlist?
- Your saved playlist is automatically opened when you get in the game, just hit play!

I got an error!
- Post a comment here and I'll look into it!
< >
105 Comments
Huskaquerty 27 Jan @ 11:29am 
it says music added to playlist but it doesnt plays it
JACK 14 Jan @ 2:25pm 
not easy to use lol
drwatson3rd 23 Nov, 2019 @ 10:11am 
it doesn't work on youtube
THAT'S BULLSHIT FIX THAT SHIT
*TRIGGER*
RESSST 7 Sep, 2019 @ 12:59am 
its doesnt work, you cocksucker
Ludicrous239 29 Aug, 2019 @ 4:10pm 
@ipermoda there is something called spotify
ipermoda 11 Jul, 2019 @ 10:36am 
How else are you supposed to find music on a website other than youtube
lockietardis458 24 May, 2019 @ 5:49pm 
This addon has not ben updated since 2014, nor has the developer responded to any comments since then. It is obviously broken and stone dead, unsubbing and moving on
Äsriéél ツ 20 Apr, 2019 @ 11:14am 
omfg this is fucking weird
Kanan 30 Mar, 2019 @ 3:53pm 
The mod is not working, seems like a Lua error
Peely banana 20 Feb, 2019 @ 9:44am 
idk how to use it