- Documentation
- Client functions
- getSFXStatus
Function
getSFXStatus
Checks whether a game audio container exists. The sound files are always in the game; whether a given bank will play is told by isSFXBankLoaded.
Syntax
bool getSFXStatus([string audioContainer])Arguments
audioContainerstring, optional- The container, e.g.
"genrl". Without an argument it tells whether the game sounds are available to scripts at all (playSoundFrontEnd).
Returns
true for a known container.
Example
outputChatBox(tostring(getSFXStatus("genrl")))
See also
playSFXPlays a sound from San Andreas' own sound banks (footsteps, weapons, collisions, vehicles, mission sounds) with no position in the world. The game's sound engine plays it, so it follows the game's effects volume.isSFXBankLoadedChecks whether the game has a sound bank loaded right now. Only such a bank plays throughplaySFXandplaySFX3D.