Audio File
Place your notification sound files in the web/audio folder.
SUPPORTED FORMATS
.ogg (recommended - best compatibility with CEF/FiveM)
.mp3
.wav
USAGE
When sending a notification, reference sounds relative to the web folder:
exports['cornerstone_notify']:sendNotification(
'Title',
'Message',
'info',
5000,
nil,
nil,
'audio/mysound.ogg' -- Path relative to web folder
)RECOMMENDED SPECIFICATIONS
Format: OGG Vorbis
Sample Rate: 44100 Hz
Channels: Mono or Stereo
Duration: 0.5 - 2 seconds
File Size: Under 100KB for quick loading
EXAMPLE SOUNDS TO ADD
success.ogg : Positive confirmation sound
error.ogg : Error/failure alert
warning.ogg : Warning/caution tone
info.ogg : Neutral information chime
message.ogg : New message notification
NOTE
Players can disable notification sounds in their settings (/notify command).
Last updated