DOCUMENTATION
  • 🌐INTRODUCTION
  • ℹ️INFORMATION
  • 💲PAID SCRIPTS
    • 🎧Surround (Spatial Audio)
      • Introduction
      • Installation
      • API
        • Client
          • Set
          • Get
          • Handlers
        • Server
          • Set
          • Get
        • Shared
      • Examples
    • 🏨Motels
      • Introduction
        • Motel Manager
        • Customer
        • Rent Cycle
        • Share Key
        • Auto System
        • Admin
        • Logs
        • Configurable Codes
        • Optimization
      • Installation
  • 🆓FREE SCRIPTS
    • FiveM Manager Bot
      • INSTALLATION
Powered by GitBook
On this page
  • Set Volume
  • Set Streamer Mode
  • Set Type
  • Set Panner
  • Set Coords
  • Set TimeStamp
  • Set Loop
  • Set Max Distance
  • Set Destroy On Finish

Was this helpful?

  1. PAID SCRIPTS
  2. Surround (Spatial Audio)
  3. API
  4. Client

Set

These are setters

Set Volume

exports['mx-surround']:setVolumeMax(soundId, volume, disableOverWrite)

Parameters

  • soundId: string

  • volume: number

  • disableOverWrite?: boolean

    • If true, volume will not be overwritten by sound profile


Set Streamer Mode

exports['mx-surround']:setStreamerMode(bool)

Parameters

  • bool: boolean


Set Type

exports['mx-surround']:setStereoMode(soundId, stereo)

Parameters

  • soundId: string

  • stereo: boolean

    • If this is false, it will be spatial (3D)


Set Panner

exports['mx-surround']:setPanner(soundId, panner)

Parameters

  • soundId: string

  • panner: PannerNode


Set Coords

exports['mx-surround']:setCoords(soundId, coords, xSound)

Parameters

  • soundId: string

  • coords: vector3

  • xSound?: boolean


Set TimeStamp

exports['mx-surround']:setTimeStamp(soundId, timeStamp)

Parameters

  • soundId: string

  • timeStamp: number


Set Loop

exports['mx-surround']:setLoop(soundId, loop)

Parameters

  • soundId: string

  • loop: boolean


Set Max Distance

exports['mx-surround']:setMaxDistance(soundId, maxDistance)

Parameters

  • soundId: string

  • maxDistance: number


Set Destroy On Finish

exports['mx-surround']:setDestroyOnFinish(soundId, destroyOnFinish)

Parameters

  • soundId: string

  • destroyOnFinish: boolean

PreviousClientNextGet

Last updated 1 year ago

Was this helpful?

💲
🎧
See