ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setSoundPosition

Function

setSoundPosition

ClientSound (client)Identical to MTA:SA

Seeks the sound to the given second.

Syntax

bool setSoundPosition(sound theSound, float pos)

Arguments

theSoundsound
The sound.
posfloat
Seconds from the start.

Returns

true on success.

Example

bindKey("arrow_r", "down", function()
    setSoundPosition(music, getSoundPosition(music) + 10)
end)

See also