MCPcopy Create free account
hub / github.com/Cu-chi/cuchi_computer / PlayAudio

Function PlayAudio

nui/scripts/script.js:686–688  ·  view source on GitHub ↗
(soundName)

Source from the content-addressed store, hash-verified

684 * @param {string} soundName file name of the audio (must be .mp3)
685 */
686const PlayAudio = (soundName) => {
687 new Audio("assets/sounds/"+soundName+".mp3").play();
688};
689
690/**
691 * Opens Application

Callers 2

script.jsFile · 0.85
MessageBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected