Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 7 8 9 10 11 … 18 Next »
sounds.playURL()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
sounds.playURL()
11-04-2017, 11:54 PM,
#7
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: sounds.playURL()
(11-04-2017, 03:45 PM)jean730 Wrote:
Code:
if CLIENT then permissions.register("PLAY_URL_SOUNDS") sounds.playURL("http://jean.langmatt.com/stargate.mp3", "3d", function(music, a, b) _G.print(a) _G.print(b) if music:isValid() then music:play() end end) end

Incase you are still doing that, you don't need to run music:player() the sound will start playing once its ready. i also recommend using
permissions.canPerformAction(permissions.PLAY_URL_SOUNDS)
before even attempting to play any sounds

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
sounds.playURL() - by theamazing - 11-04-2017, 08:39 AM
RE: sounds.playURL() - by jean730 - 11-04-2017, 09:19 AM
RE: sounds.playURL() - by Kosmos - 11-04-2017, 03:30 PM
RE: sounds.playURL() - by jean730 - 11-04-2017, 03:45 PM
RE: sounds.playURL() - by Red The Blue Color - 11-04-2017, 11:54 PM
RE: sounds.playURL() - by Person8880 - 11-04-2017, 04:16 PM
RE: sounds.playURL() - by jean730 - 11-04-2017, 04:34 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.