ULX

Author Topic: How do I playsound to everyone with k,v in pairs(player.GetAll() )?  (Read 1842 times)

0 Members and 2 Guests are viewing this topic.

Offline antahz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Please answer

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How do I playsound to everyone with k,v in pairs(player.GetAll() )?
« Reply #1 on: June 08, 2019, 04:37:11 PM »
Several ways to do it, but this answers your exact question.
https://forum.facepunch.com/gmoddev/nnmh/Simple-way-to-play-sounds-to-all-players/1/#postepyyq

We use a server ULib umsg to send a sound command with the path, client receives the path and plays it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming