- Documentation
- Client functions
- playSoundFrontEnd
Function
playSoundFrontEnd
Plays a built-in game interface sound by number (menu clicks, purchase, checkpoint and so on). Numbers 0-30 are gameplay sounds, 31-39 are menu sounds. The numbering is our own, because the Definitive Edition has a different set of sounds than the old San Andreas.
Syntax
bool playSoundFrontEnd(int sound)Arguments
soundint- Sound number 0-39.
Returns
true on success.
Example
addEventHandler("onClientColShapeHit", root, function(element)
if element == localPlayer then
playSoundFrontEnd(1)
end
end)