GetSFXStatus: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created russian page for getSFXStatus)
m (Change See Also template)
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{New feature/item|3.0134|1.3.4|5731|
This function checks if a big sound container is available to use or not.
}}
{{Warning|Many players use versions of GTA:SA (especially pirated versions) that have audio files full of zeros so that they can compress better in their ''AUDIO\SFX\'' folder. (They lack any data)  
{{Warning|Many players use versions of GTA:SA (especially pirated versions) that have audio files full of zeros so that they can compress better in their ''AUDIO\SFX\'' folder. (They lack any data)  
In case of these invalid audio files, this function returns ''false''.|true}}
In case of these invalid audio files, this function returns ''false''.|true}}
This function checks if a big sound container is available to use or not.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool getSFXStatus ( string audioContainer )</syntaxhighlight>
<syntaxhighlight lang="lua">
bool getSFXStatus ( string audioContainer )
</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''audioContainer:''' The container name. Possible values are: "feet", "genrl", "pain_a", "script", "spc_ea", "spc_fa", "spc_ga", spc_na", "spc_pa"
*'''audioContainer:''' The container name. Possible values are:
{{Audio_Containers}}


==Returns==
==Returns==
Returns ''true'' if the sound container is available, ''false'' otherwise.
Returns '''true''' if the sound container is available, '''false''' otherwise.


==Example==
==Example==
Line 24: Line 26:


==See Also==
==See Also==
{{Client_audio_functions}}
{{Audio_functions|client}}
[[RU:getSFXStatus]]
 
[[ar:getSFXStatus]]
[[hu:getSFXStatus]]
[[pl:getSFXStatus]]
[[pt-br:getSFXStatus]]
[[ro:getSFXStatus]]
[[ru:getSFXStatus]]

Latest revision as of 22:11, 6 September 2024

Dialog-warning.png Warning: Many players use versions of GTA:SA (especially pirated versions) that have audio files full of zeros so that they can compress better in their AUDIO\SFX\ folder. (They lack any data)

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

This function checks if a big sound container is available to use or not.

Syntax

bool getSFXStatus ( string audioContainer )

Required Arguments

  • audioContainer: The container name. Possible values are:
  • feet
  • genrl
  • pain_a
  • script
  • spc_ea
  • spc_fa
  • spc_ga
  • spc_na
  • spc_pa

Returns

Returns true if the sound container is available, false otherwise.

Example

if not getSFXStatus("spc_ea") then
   outputChatBox("Please install the missing audio files to enjoy the full gaming experience")
end

See Also