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 TimeStamp
  • Set Volume
  • 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. Server

Set

These are setters

Set TimeStamp

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

Parameters

  • source: number

  • soundId: string

  • timeStamp: number


Set Volume

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

Parameters

  • source: number

  • soundId: string

  • volume: number

  • disableOverWrite?: boolean

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


Set Type

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

Parameters

  • source: number

  • soundId: string

  • stereo: boolean

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


Set Panner

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

Parameters

  • source: number

  • soundId: string

  • panner: PannerNode


Set Coords

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

Parameters

  • source: number

  • soundId: string

  • coords: vector3

  • xSound?: boolean


Set TimeStamp

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

Parameters

  • source: number

  • soundId: string

  • coords: number


Set Loop

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

Parameters

  • source: number

  • soundId: string

  • loop: boolean


Set Max Distance

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

Parameters

  • source: number

  • soundId: string

  • maxDistance: number


Set Destroy On Finish

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

Parameters

  • source: number

  • soundId: string

  • destroyOnFinish: number

PreviousServerNextGet

Last updated 1 year ago

Was this helpful?

💲
🎧
See