Implement global sound player
This commit is contained in:
7
FreshShit/_GlobalSoundPlayer/event.lua
Normal file
7
FreshShit/_GlobalSoundPlayer/event.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
-- PLAY_SOUND
|
||||||
|
function(e, file)
|
||||||
|
local success = PlaySoundFile(file, "Master")
|
||||||
|
if not success then
|
||||||
|
print(string.format("Failed to play sound file at %s", file))
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user