Mta Sa Role Play Script Download

Posted on  by 

HeyHo,da mich mehrere nach dem THC Script gefragt haben, stelle ich es hier einfach mal zum Download.Einige Infos zum Script findet ihr in unserer alten Servervorstellung.DownloadLGLars. It also returns false when trying to play a track deleted in the recent GTA: SA Steam patches (and if the client is using a Steam GTA: SA copy). Syntax element playSFX ( string containerName, int bankId, int soundId , bool looped = false ). MTA Forum: Download: https://goo.gl/B5WJI8.

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


[[{{{image}}}|link=]]Note: There is a tool available which allows you to find bank and sound IDs easily: [sfxBrowser:Download].
Role
Warning: Many players use versions of GTA:SA (especially pirated versions) that have audio files full of zeros so that they can compresses better in their AUDIOSFX folder. (They lack any data)

In case of these invalid audio files, this function returns false.

It also returns false when trying to play a track deleted in the recent GTA: SA Steam patches (and if the client is using a Steam GTA: SA copy).

Syntax

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.

Syntax 2

Required Arguments

  • radio: The string 'radio' (used to differentiate to the first syntax)
  • radioStation: The radio station. Possible values are 'Adverts', 'Ambience', 'Police', 'Playback FM', 'K-Rose', 'K-DST', 'Cutscene', 'Beats', 'Bounce FM', 'SF-UR', 'Radio Los Santos', 'Radio X', 'CSR 103.9', 'K-Jah West', 'Master Sounds 98.3', 'WCTR'.
  • trackId : The radio track id within the radio station audio file
Play

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

The following example plays a firealarm sound (looped).

See Also

Script

Mta Sa Role Play Script Downloads

Retrieved from 'https://wiki.multitheftauto.com/index.php?title=PlaySFX&oldid=56189'

Coments are closed