a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Client / ParticleEffect
abstract
ParticleEffectAn abstract class representing a particle effect.
This class provides methods and properties to manage and control various aspects of a particle effect such as its asset, effect name, offset, rotation, color, scale, range, and axis inversion.
get
Asset():string
string
get
AssetName():string
string
get
Color():Color
set
Color(color
):void
• color: Color
get
EffectName():string
string
get
Handle():number
set
Handle(handle
):void
• handle: number
number
get
InvertAxis():InvertAxis
set
InvertAxis(invertAxis
):void
• invertAxis: InvertAxis
get
IsActive():boolean
boolean
get
Offset():Vector3
set
Offset(offset
):void
• offset: Vector3
get
Range():number
set
Range(range
):void
• range: number
number
get
Rotation():Vector3
set
Rotation(rotation
):void
• rotation: Vector3
get
Scale():number
set
Scale(scale
):void
• scale: number
number
setParameter(
parameterName
,value
):void
Sets the value of a specific parameter for the particle effect.
• parameterName: string
The name of the parameter to set.
• value: number
The value to set for the specified parameter.
void
abstract
start():boolean
boolean
stop():
void
Stops the particle effect if it is currently active. This method will remove the particle effect associated with the current handle.
void
toString():
string
Returns a string representation of the asset and effect names.
string
A string combining the asset name and effect name separated by a backslash.