Results 1 to 10 of 17

Thread: Play random music

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Nov 2019
    Posts
    22
    Thanks
    2
    Thanked 3 Times in 3 Posts
    I did check... I added these lines to .csv:

    PHP Code:
    test_music,1,music/music1.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local
    test_music
    ,2,music/music2.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local 
    Added music1.mp3 and music2.mp3 to sound/music folder

    In sd.gsc added this into spawnPlayer():

    PHP Code:
    spawnPlayer()
    {
    ...
    self playLocalSound("test_music"); 
    ...

    but doesn't work.

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Toxys View Post
    but doesn't work.
    please refer to my signature.

    WHAT does not work? Did your pc explode? Did you not hear any sound? Did it not play randomized? Did it only start another, randomized, song after respawn? Is it not looping?

    Seriously, you're bringing your car to the mechanic and are like "its not working optimally" and expect him to guess that you dont like the color.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •