PlaySFX

From Multi Theft Auto: Wiki
Revision as of 18:05, 21 August 2013 by Jusonex (talk | contribs) (Created page with "{{client_function}} This function plays a sound from GTA's big sound containers. ==Syntax== <syntaxhighlight lang="lua"> sound playSFX ( string containerName, int bankId, int soundId [, looped...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function plays a sound from GTA's big sound containers.

Syntax

sound playSFX ( string containerName, int bankId, int soundId [, looped = false] )

Required Arguments

  • containerName: The name of the audio container. Possible values are: "feet", "genrl", "pain_a", "script", "spc_ea", "spc_fa", "spc_ga", spc_na", "spc_pa"
  • bankId: The audio bank Id
  • soundId: The sound Id within the audio bank

Optional Arguments

  • looped: A boolean representing whether the sound will be looped

Returns

Returns a sound element if the sound was successfully created, false otherwise.

Example

Todo

See Also