Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (93,064 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

JohnnyCrazy

[V|REL] GTAV Spotify Player | Your music in your car!

Recommended Posts

JohnnyCrazy

GTAV Spotify Player | Your music in your car!

Always wanted to listen to your Spotify playlists while cruising around Los Santos with full playback-control? Well, now you can!

This mod will add a spotify controller in your right upper corner as soon as you enter a car. With this controller you can:

  • View all track infos (title, artist, album, track-time)
  • Play/Pause
  • Skip/Previous track
  • Select one of your playlists for playback

Some Screens:

 

 

Vc4ck7A.jpg

MD7GV8W.jpg

 

 

 

 

Installation:

  1. Make sure you have the latest ScriptHook + ScriptHook .NET 1.0 installed!
  2. Download the latest build here: GTAVSpotify.zip
  3. Extract it inside your "Grand Theft Auto V"-Folder, so the DLL is located here: "Grand Theft Auto V/scripts/GTAVSpotify.dll"
  4. Run GTAV!

Usage:

  1. Start Spotify before you go ingame (F3 won't work if spotify isn't running)
  2. Press F3 once you're ingame, a message should appear over your map.
  3. Now, just hop in a car and the player should appear.
  4. The player will pause itself when the radio is turned on. Just turn your radio off and it should play again
  5. To Control it (The small little white bar is your "cursor"):
    1. NumPad / = go left
    2. NumPad * = select
    3. NumPad - = go right
  6. When you open "Playlists" the first time, you need to enter your Spotify-ID. (If you go to your Spotify Profile, click on the 3 dots and "copy spotify-URI". "spotify:user:XXXX" XXXX is your spotify-ID)
  7. Make sure your Playlists are public! Else it won't find them.
  8. Have fun listening to your music! :)

You can change the Key-Bindings in "GTAVSpotify.json", located in the /scripts folder.

Key-Codes:

Yea,

Key-Codes:

 

 

 

None: 0
LButton: 1
RButton: 2
Cancel: 3
MButton: 4
XButton1: 5
XButton2: 6
Back: 8
Tab: 9
LineFeed: 10
Clear: 12
Enter: 13
Return: 13
ShiftKey: 16
ControlKey: 17
Menu: 18
Pause: 19
CapsLock: 20
Capital: 20
HangulMode: 21
HanguelMode: 21
KanaMode: 21
JunjaMode: 23
FinalMode: 24
KanjiMode: 25
HanjaMode: 25
Escape: 27
IMEConvert: 28
IMENonconvert: 29
IMEAccept: 30
IMEAceept: 30
IMEModeChange: 31
Space: 32
Prior: 33
PageUp: 33
PageDown: 34
Next: 34
End: 35
Home: 36
Left: 37
Up: 38
Right: 39
Down: 40
Select: 41
Print: 42
Execute: 43
Snapshot: 44
PrintScreen: 44
Insert: 45
Delete: 46
Help: 47
D0: 48
D1: 49
D2: 50
D3: 51
D4: 52
D5: 53
D6: 54
D7: 55
D8: 56
D9: 57
A: 65
B: 66
C: 67
D: 68
E: 69
F: 70
G: 71
H: 72
I: 73
J: 74
K: 75
L: 76
M: 77
N: 78
O: 79
P: 80
Q: 81
R: 82
S: 83
T: 84
U: 85
V: 86
W: 87
X: 88
Y: 89
Z: 90
LWin: 91
RWin: 92
Apps: 93
Sleep: 95
NumPad0: 96
NumPad1: 97
NumPad2: 98
NumPad3: 99
NumPad4: 100
NumPad5: 101
NumPad6: 102
NumPad7: 103
NumPad8: 104
NumPad9: 105
Multiply: 106
Add: 107
Separator: 108
Subtract: 109
Decimal: 110
Divide: 111
F1: 112
F2: 113
F3: 114
F4: 115
F5: 116
F6: 117
F7: 118
F8: 119
F9: 120
F10: 121
F11: 122
F12: 123
F13: 124
F14: 125
F15: 126
F16: 127
F17: 128
F18: 129
F19: 130
F20: 131
F21: 132
F22: 133
F23: 134
F24: 135
NumLock: 144
Scroll: 145
LShiftKey: 160
RShiftKey: 161
LControlKey: 162
RControlKey: 163
LMenu: 164
RMenu: 165
BrowserBack: 166
BrowserForward: 167
BrowserRefresh: 168
BrowserStop: 169
BrowserSearch: 170
BrowserFavorites: 171
BrowserHome: 172
VolumeMute: 173
VolumeDown: 174
VolumeUp: 175
MediaNextTrack: 176
MediaPreviousTrack: 177
MediaStop: 178
MediaPlayPause: 179
LaunchMail: 180
SelectMedia: 181
LaunchApplication1: 182
LaunchApplication2: 183
OemSemicolon: 186
Oem1: 186
Oemplus: 187
Oemcomma: 188
OemMinus: 189
OemPeriod: 190
Oem2: 191
OemQuestion: 191
Oem3: 192
Oemtilde: 192
Oem4: 219
OemOpenBrackets: 219
OemPipe: 220
Oem5: 220
OemCloseBrackets: 221
Oem6: 221
OemQuotes: 222
Oem7: 222
Oem8: 223
Oem102: 226
OemBackslash: 226
ProcessKey: 229
Packet: 231
Attn: 246
Crsel: 247
Exsel: 248
EraseEof: 249
Play: 250
Zoom: 251
NoName: 252
Pa1: 253
OemClear: 254

 

 

 

DOWNLOAD: GTAVSpotify.zip

 

Since I currently don't have any capture software installed, I would be more than grateful if someone could take a small video :)

If it throws any erros, please include all log files so I can trace the issue! Thanks and have fun.

 

Greetings,

Johnny

Edited by JohnnyCrazy

Share this post


Link to post
Share on other sites
JoshLmao

That is fantastic. I've been waiting for something like this and now it's here. Gonna try it out and see how it is

 

I whipped up a quick video about it here:

Edited by JoshLmao

Share this post


Link to post
Share on other sites
mis009

Wow this is nice have been waiting for this good work!

Share this post


Link to post
Share on other sites
qwerasdzxc

If someone could make this for Deezer :/

Share this post


Link to post
Share on other sites
NoShotz

if only it was available where i live

Edit: nevermind, apparently it is now

Edited by NoShotz

Share this post


Link to post
Share on other sites
NeatSquid

Great work :D I'll be trying this out later on. If it works without stutter (*cough* Self Radio), I will be so happy :D

Share this post


Link to post
Share on other sites
teisco

When will these moders understand that not all of us have a numberpad ?

Share this post


Link to post
Share on other sites
JohnnyCrazy

When will these moders understand that not all of us have a numberpad ?

 

Keys can be changed in the GTAVSpotify.json, maybe I will post the Numbercodes later

But srsly, don't even mod your GTA V if you have no Numpad...we are playing on PC god damn it....

Edited by JohnnyCrazy

Share this post


Link to post
Share on other sites
teisco

I play plenty of mods for which the developer has an open mind and includes other forms of input. Also this is 2015 and many play pc with smaller keyboards or laptops without a number pad. You are only limiting your audience and user base by sticking with an outdated device for control.

Share this post


Link to post
Share on other sites
NeatSquid

Mod works perfectly :D No lag on my Pentium :D

Share this post


Link to post
Share on other sites
NeatSquid

Can you please release the key codes? I really need to remap mine.

Share this post


Link to post
Share on other sites
JohnnyCrazy

Yea,

Key-Codes:

 

 

 

None: 0
LButton: 1
RButton: 2
Cancel: 3
MButton: 4
XButton1: 5
XButton2: 6
Back: 8
Tab: 9
LineFeed: 10
Clear: 12
Enter: 13
Return: 13
ShiftKey: 16
ControlKey: 17
Menu: 18
Pause: 19
CapsLock: 20
Capital: 20
HangulMode: 21
HanguelMode: 21
KanaMode: 21
JunjaMode: 23
FinalMode: 24
KanjiMode: 25
HanjaMode: 25
Escape: 27
IMEConvert: 28
IMENonconvert: 29
IMEAccept: 30
IMEAceept: 30
IMEModeChange: 31
Space: 32
Prior: 33
PageUp: 33
PageDown: 34
Next: 34
End: 35
Home: 36
Left: 37
Up: 38
Right: 39
Down: 40
Select: 41
Print: 42
Execute: 43
Snapshot: 44
PrintScreen: 44
Insert: 45
Delete: 46
Help: 47
D0: 48
D1: 49
D2: 50
D3: 51
D4: 52
D5: 53
D6: 54
D7: 55
D8: 56
D9: 57
A: 65
B: 66
C: 67
D: 68
E: 69
F: 70
G: 71
H: 72
I: 73
J: 74
K: 75
L: 76
M: 77
N: 78
O: 79
P: 80
Q: 81
R: 82
S: 83
T: 84
U: 85
V: 86
W: 87
X: 88
Y: 89
Z: 90
LWin: 91
RWin: 92
Apps: 93
Sleep: 95
NumPad0: 96
NumPad1: 97
NumPad2: 98
NumPad3: 99
NumPad4: 100
NumPad5: 101
NumPad6: 102
NumPad7: 103
NumPad8: 104
NumPad9: 105
Multiply: 106
Add: 107
Separator: 108
Subtract: 109
Decimal: 110
Divide: 111
F1: 112
F2: 113
F3: 114
F4: 115
F5: 116
F6: 117
F7: 118
F8: 119
F9: 120
F10: 121
F11: 122
F12: 123
F13: 124
F14: 125
F15: 126
F16: 127
F17: 128
F18: 129
F19: 130
F20: 131
F21: 132
F22: 133
F23: 134
F24: 135
NumLock: 144
Scroll: 145
LShiftKey: 160
RShiftKey: 161
LControlKey: 162
RControlKey: 163
LMenu: 164
RMenu: 165
BrowserBack: 166
BrowserForward: 167
BrowserRefresh: 168
BrowserStop: 169
BrowserSearch: 170
BrowserFavorites: 171
BrowserHome: 172
VolumeMute: 173
VolumeDown: 174
VolumeUp: 175
MediaNextTrack: 176
MediaPreviousTrack: 177
MediaStop: 178
MediaPlayPause: 179
LaunchMail: 180
SelectMedia: 181
LaunchApplication1: 182
LaunchApplication2: 183
OemSemicolon: 186
Oem1: 186
Oemplus: 187
Oemcomma: 188
OemMinus: 189
OemPeriod: 190
Oem2: 191
OemQuestion: 191
Oem3: 192
Oemtilde: 192
Oem4: 219
OemOpenBrackets: 219
OemPipe: 220
Oem5: 220
OemCloseBrackets: 221
Oem6: 221
OemQuotes: 222
Oem7: 222
Oem8: 223
Oem102: 226
OemBackslash: 226
ProcessKey: 229
Packet: 231
Attn: 246
Crsel: 247
Exsel: 248
EraseEof: 249
Play: 250
Zoom: 251
NoName: 252
Pa1: 253
OemClear: 254

 

 

Share this post


Link to post
Share on other sites
Ragref

I play plenty of mods for which the developer has an open mind and includes other forms of input. Also this is 2015 and many play pc with smaller keyboards or laptops without a number pad. You are only limiting your audience and user base by sticking with an outdated device for control.

*sighs* :sui:

Limiting their audience? Probably 5% of people who downloads these mods have no Numpad. This is 2015, get an actual PC with a Numpad.

Share this post


Link to post
Share on other sites
teisco

I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings.

Share this post


Link to post
Share on other sites
JohnnyCrazy

I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings.

 

Did you even read my post? You can change it

Share this post


Link to post
Share on other sites
DAMND

^^haha

 

beautiful, man. I didn't even know this would be possible. psyched to dl this when I get home.

Share this post


Link to post
Share on other sites
Rented

Ah man always wanted R* to add Spotify to the radio wheel, sort of like the User Track Player in previous games and that could work online as well... back on topic it's a great mod!

Share this post


Link to post
Share on other sites
Esoteric777

Love it, wish it could be a little more compact.

Share this post


Link to post
Share on other sites
lordusa

Getting error...

This is my ScriptHookVDotNet.log

[22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)   --- End of inner exception stack trace ---   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)   at System.Net.WebClient.DownloadString(Uri address)   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey()   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init()   at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser)   at scripthookvdotnet_spotify.MainClass..ctor()

Share this post


Link to post
Share on other sites
JohnnyCrazy

 

Getting error...

This is my ScriptHookVDotNet.log

[22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)   --- End of inner exception stack trace ---   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)   at System.Net.WebClient.DownloadString(Uri address)   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey()   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init()   at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser)   at scripthookvdotnet_spotify.MainClass..ctor()

 

Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe".

If not, I will look into it this evening

Share this post


Link to post
Share on other sites
LoneMerc

I will stick to the better modders than and use mods like Endeavor Trainer that uses either number pad or controller or to the mods that let us change the input through file settings.

 

Woah, that's a bit harsh don't you think? You have all these people doing wonders, making the game BETTER to play and you're having a go at this guy's attempt to make something that has been requested! I don't see you releasing any mods...? Also as far as I remember, Endeavor Trainer doesn't allow Spotify... Maybe you need to have a bit of respect for these people who don't get paid for this!

 

On topic, this looks great :) Can't wait to try it out!

Share this post


Link to post
Share on other sites
Wasabi Ice Cream

Though I don't use Spotify at all, I have to commend everyone involved in this natural progression of mods.

Love how the community can come together and continue to build on each other's work to come up with this stuff.

Great job. Please, ignore all the ungrateful bastards.

Edited by Wasabi Ice Cream

Share this post


Link to post
Share on other sites
JohnnyCrazy

That is fantastic. I've been waiting for something like this and now it's here. Gonna try it out and see how it is

 

I whipped up a quick video about it here:

 

Great job with the video :) Thanks a lot!

Also wrote down your ideas, thanks for them too!

Edited by JohnnyCrazy

Share this post


Link to post
Share on other sites
MrGTAmodsgerman

@JohnnyCrazy Kannst du den Mod auch in einen Web Radio mod umbauen? Das würde Auto fahren richtig echt aussehen lassen.

Share this post


Link to post
Share on other sites
lordusa

 

 

Getting error...

This is my ScriptHookVDotNet.log

[22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)   --- End of inner exception stack trace ---   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)   at System.Net.WebClient.DownloadString(Uri address)   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey()   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init()   at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser)   at scripthookvdotnet_spotify.MainClass..ctor()

 

Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe".

If not, I will look into it this evening

 

Yes Spotify is running and SpotifyWebHelper.exe is there

Share this post


Link to post
Share on other sites
JohnnyCrazy

 

 

 

Getting error...

This is my ScriptHookVDotNet.log

[22:45:11] [DEBUG] Created script domain 'ScriptDomain_35376C86'.[22:45:11] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_35376C86' ...[22:45:11] [DEBUG] Found 1 script(s) in 'GTAVSpotify.dll'.[22:45:11] [DEBUG] Starting 1 script(s) ...[22:45:11] [DEBUG] Instantiating script 'scripthookvdotnet_spotify.MainClass' in script domain 'ScriptDomain_35376C86' ...[22:45:13] [ERROR] Failed to instantiate script 'scripthookvdotnet_spotify.MainClass' because constructor threw an exception:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 194.132.196.163:80   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)   --- End of inner exception stack trace ---   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)   at System.Net.WebClient.DownloadString(Uri address)   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.GetOAuthKey()   at SpotifyAPI.SpotifyLocalAPI.RemoteHandler.Init()   at scripthookvdotnet_spotify.MainClass.InitSpotify(Boolean byUser)   at scripthookvdotnet_spotify.MainClass..ctor()

 

Is Spotify running? And check if there is a process called "SpotifyWebHelper.exe".

If not, I will look into it this evening

 

Yes Spotify is running and SpotifyWebHelper.exe is there

 

 

The only thing I can think of is either a firewall issue (although it's connecting to localhost) or an outdated Spotify-Client

Which Windows are you using?

Share this post


Link to post
Share on other sites
lipskamafia

 

Share this post


Link to post
Share on other sites
Fischkopf

Too bad I don't use spotify... i wish someone could make a script that can load .pls files for shoutcast radio streaming.. There used to be a GTA IV plugin that did this.

Share this post


Link to post
Share on other sites
Troublesome96_

This mod is awesome. But for some reason I can't access the playlist menu and I have the plugins needed. Not sure what's wrong.

Share this post


Link to post
Share on other sites
NeatSquid

Whenever I use this mods, the LUA command prompt says that it's timed out and I can't use any LUA scripts

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.