REC_Notify
Sound
Welcome to REC_Notify documentation.
- Added
- Updated
config.sound.mode decides who plays the sound.
| Mode | Plays | Volume | Extra files |
|---|---|---|---|
nui | An audio file from web/build/sounds/ | config.sound.volume, or per type | The .wav files ship with the resource |
frontend | A built-in GTA sound | Fixed by the game | None |
Adding your own sound means dropping the file in web/build/sounds/ and naming it in config.types[].sound.file, or in payload.sound for a single notification. No rebuild — the NUI fetches it by name at runtime.
config.sound.enabled = false silences everything and wins over payload.playSound. When the NUI cannot play a file it reports back, and the built-in GTA sound of that type plays instead, so a missing or renamed file is never silent.
