- Documentation
- Client functions
- getSFXBankSoundCount
Function
getSFXBankSoundCount
Without a bank number it returns the number of banks in the container. With a bank number it returns the number of sounds in that bank.
Syntax
int getSFXBankSoundCount(string audioContainer [, int bankIndex])Arguments
audioContainerstring- The container.
bankIndexint, optional- The bank number.
Returns
A number, or false for a wrong container or bank.
Example
outputChatBox("genrl: " .. getSFXBankSoundCount("genrl") .. " bankow")
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.