play.lua 564 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'sourcePlayback',
  3. summary = 'Play the Source.',
  4. description = 'Plays the Source. This doesn\'t do anything if the Source is already playing.',
  5. arguments = {},
  6. returns = {
  7. success = {
  8. type = 'boolean',
  9. description = 'Whether the Source successfully started playing.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'success' }
  16. }
  17. },
  18. notes = [[
  19. There is a maximum of 64 Sources that can be playing at once. If 64 Sources are already
  20. playing, this function will return `false`.
  21. ]]
  22. }