playSoundFrontEnd
Client
Plays one of GTA San Andreas's interface sounds, such as the menu and mission ones.
Also exists on the server, with its own implementation: playSoundFrontEnd
bool playSoundFrontEnd(int sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | int | The interface sound's id, from 0 to 101. |
Returns
true if the sound played, false if the id is outside 0 to 101 (with an error in the log).
Example
addCommandHandler("ding", function()
playSoundFrontEnd(1)
end)