REC_EffectManager
Exports
Arguments, return values and execution sides for REC_EffectManager exports.
- Added
- Updated
Server side
registerParticle
Registers particles by unique key for synchronized playback.
| Argument | Type |
|---|---|
particles | table<string, REC_EffectManager.Server.Exports.RegisterParticle.Param> |
Returns: boolean.
exports.REC_EffectManager:registerParticle(particles)
unregisterParticle
Removes one or more registered particles by key.
| Argument | Type |
|---|---|
uid | string|string[] |
Returns: boolean.
exports.REC_EffectManager:unregisterParticle(uid)
registerSound
Registers synchronized sounds by unique key.
| Argument | Type |
|---|---|
sounds | table<string, REC_EffectManager.Server.Exports.RegisterSound.Param> |
Returns: boolean.
exports.REC_EffectManager:registerSound(sounds)
unregisterSound
Removes one or more registered sounds by key.
| Argument | Type |
|---|---|
uid | string|string[] |
Returns: boolean.
exports.REC_EffectManager:unregisterSound(uid)
playSound
Plays one or more sound configurations for the specified player.
| Argument | Type |
|---|---|
playerId | integer |
sound | REC_Library.Shared.Class.Effect.SoundConfig|REC_Library.Shared.Class.Effect.SoundConfig[] |
Returns: boolean.
exports.REC_EffectManager:playSound(playerId, sound)
