CyberM.vfx.catalog()
Returns the curated stable world-VFX aliases and cooked paths.
Catalog access does not start an effect. Raw cooked paths remain build-dependent even when present.
Returns
- table mapping alias to effect path, or nil
- reason
Registered in ResourceHost.cpp as LuaVfxCatalog (line 6814).
CyberM.vfx.clear()
Stops every VFX owned by the calling resource.
Requires world.effects; SFX and other resource owners are unaffected.
Returns
- true on success, otherwise false
- reason
Registered in ResourceHost.cpp as LuaEffectClear (line 6809).
CyberM.vfx.list()
Lists active VFX owned by the calling resource.
Requires world.effects.
Returns
- array of { id, kind, name, entity, remaining }, or nil
- reason
Registered in ResourceHost.cpp as LuaEffectList (line 6812).
CyberM.vfx.play(effect, options)
Starts a resource-owned world VFX at a fixed transform.
Requires world.effects. options requires position and accepts orientation, duration, and ignoreTimeDilation. The effect is released automatically with its owner.
Parameters
- effectstringrequired
- optionstablerequired
Returns
- effect handle string, or nil
- reason
Registered in ResourceHost.cpp as LuaVfxPlay (line 6805).
CyberM.vfx.playEntity(effect, [options])
Starts a resource-owned authored VFX on an entity.
Requires world.effects. Options accept entity, instance, persistOnDetach, breakAllLoops, breakAllOnDestroy, and duration; omitting entity targets the local player.
Parameters
- effectstringrequired
- optionstableoptional
Returns
- effect handle string, or nil
- reason
Registered in ResourceHost.cpp as LuaVfxPlayEntity (line 6806).
CyberM.vfx.stop(id)
Stops one VFX handle owned by the calling resource.
Requires world.effects.
Returns
- true on success, otherwise false
- reason
Registered in ResourceHost.cpp as LuaEffectStop (line 6807).