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
  • Start
  • Stop
  • Pause
  • Resume
  • Loading
  • Attach
  • Detach
  • Destroy
  • Time Update
  • Directly Set

Was this helpful?

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

Handlers

These are handlers

Start

exports['mx-surround']:onPlayStart(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Stop

exports['mx-surround']:onPlayEnd(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Pause

exports['mx-surround']:onPlayPause(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Resume

exports['mx-surround']:onPlayResume(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Loading

exports['mx-surround']:onLoading(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Attach

exports['mx-surround']:onAttachEntity(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Detach

exports['mx-surround']:onDetachEntity(soundId, fn)

Parameters

  • soundId: string

  • fn: function


Destroy

exports['mx-surround']:onDestroy(soundId, fn)

Parameters

  • soundId: string

  • fn: function

Time Update

exports['mx-surround']:onTimeUpdate(soundId, fn)

This handler is triggered when the current time changed

Parameters

  • soundId: string

  • fn: function


Directly Set

exports['mx-surround']:setSoundHandler(soundId, data)

Parameters

  • soundId: string

  • data: table

    • destroy: function

    • start: function

    • stop: function

    • pause: function

    • resume: function

    • loading: function

    • attach: function

    • detach: function

    • timeupdate: function

    • end: function

PreviousGetNextServer

Last updated 2 months ago

Was this helpful?

💲
🎧