playSFX
Client
Plays a sound from GTA San Andreas's audio banks, with no position in the world.
sound|false playSFX(string container, int bank, int audio [, bool looped = false])
Parameters
| Name | Type | Description |
|---|---|---|
| container | string | SA's audio container: feet, genrl, pain_a, script, spc_ea, spc_fa, spc_ga, spc_na or spc_pa. |
| bank | int | The bank number inside the container. |
| audio | int | The sound number inside the bank. |
| looped | bool | Play the sound again from the start when it reaches the end.default false |
Returns
The created sound element, or false if the bank or the sound does not exist.
Example
if getSFXStatus("script") then
playSFX("script", 144, 1)
endComing from MTAThe
radio container is not accepted: the function warns and returns false.