-
-
Notifications
You must be signed in to change notification settings - Fork 2
API: Sound
ᴏᴠ ━ ᴀɴɪꜱᴀ edited this page Mar 4, 2025
·
5 revisions
Assetify offers a comprehensive suite of sound APIs designed for seamless integration into your external resources. This module allows developers to effortlessly incorporate sound assets directly into their resources, eliminating the need for extensive customization or additional overhead.
Add the below code globally once in either of the shared .lua
script of the resource you want to use within:
loadstring(exports.assetify_library:import("sound"))()
-
✨ Plays a valid sound asset.
local sound: cSound = assetify.sound.play( string: assetName, string: soundCategory, int: soundIndex, float: soundVolume, bool: isScoped, bool: isLooped )
-
✨ Plays a valid sound asset in 3D.
local sound: cSound = assetify.sound.play3D( string: assetName, string: soundCategory, int: soundIndex, float: soundVolume, bool: isScoped, float: posX, float: posY, float: posZ, bool: isLooped )