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
  • Get TimeStamp
  • Get Max Duration

Was this helpful?

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

Get

These are getters

Get TimeStamp

local timeStamp = exports['mx-surround']:getTimeStamp(soundId)

Parameters

  • soundId: string

Returns

  • number

    • Returns sound' timestamp in seconds


Get Max Duration

local maxDuration = exports['mx-surround']:getMaxDuration(soundId)

Parameters

  • soundId: string

Returns

  • number | nil

    • Returns sound' max duration in seconds

PreviousSetNextShared

Last updated 1 year ago

Was this helpful?

💲
🎧