GetSFXStatus: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Replaced content with "'''Hacked By Ameir''' ''add me on'' [http://facebook.com/AhmedAlramSisYy facebook]")
Tags: Replaced Reverted
m (Reverted edits by Ameir (talk) to last revision by Alvesvin)
Tag: Rollback
Line 1: Line 1:
'''Hacked By Ameir'''
__NOTOC__
''add me on''
{{Client function}}
[http://facebook.com/AhmedAlramSisYy facebook]
{{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)
In case of these invalid audio files, this function returns ''false''.|true}}
 
==Syntax==
<syntaxhighlight lang="lua">bool getSFXStatus ( string audioContainer )</syntaxhighlight>
 
===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==
<syntaxhighlight lang="lua">
if not getSFXStatus("spc_ea") then
  outputChatBox("Please install the missing audio files to enjoy the full gaming experience")
end
</syntaxhighlight>
 
==See Also==
{{Client_audio_functions}}
[[EN:getSFXStatus]]
[[AR:getSFXStatus]]
[[HU:getSFXStatus]]
[[RU:getSFXStatus]]
[[RO:getSFXStatus]]
[[PT-BR:getSFXStatus]]

Revision as of 16:36, 26 September 2021

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

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.

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