Installation ​
Requirements ​
- FiveM with OneSync enabled. The manifest declares the
/onesyncrequirement. - The resource folder named
np_audio. - No framework or SQL database. Node, Bun and a web build are not needed at runtime.
Obtain the resource from the private repository using an authorized account.
Copy it into resources/[np]/np_audio, keeping web/ and its bundled WAV files,
then add:
ensure np_audio
add_ace group.admin np_audio.admin allow
The ACE grants server administration commands. It is not required for ordinary server export calls or for a player's local volume preferences.
Configure it ​
Edit config/config.lua for limits, timing, categories and optional integrations.
Edit config/cues.lua for the server-approved catalog and config/scenes.lua
for static scenes. These files are escrow-ignored. Approved HTTPS hostnames are
empty by default; packaged sounds and GTA soundsets work immediately.
An external resource's packaged sound must be listed in that resource's
files manifest. Cue paths are relative to the file's owning resource.
Consumer resource ​
Use the np_addon convention to recreate registrations after an audio host restart. A consumer that requires np_audio may declare:
np_addon 'np_audio'
dependency 'np_audio'
shared_script '@np_audio/bridge/np_addon.lua'
A consumer with optional audio should vendor the canonical helper and use
npAddon.attach('np_audio', ..., { api = 1 }); it should tolerate an absent host.
See the restart-safe example.
Check the installation ​
Copy examples/np_audio_demo alongside the main resource and add
ensure np_audio_demo. Run /audiobeep; nearby players should hear the approved
cue. Staff can toggle a stationary loop with /audioalarm. /audiodebug shows
the locally rendered sources and emitter positions.
Use Commands & validation for the two-client and restart checks.