CreateLoopedParticleEffectOnPosition

From GTA Network Wiki
Jump to: navigation, search

CreateLoopedParticleEffectOnPosition
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Creates a looped Particle effect on a position.

This function is similar to CreateParticleEffectOnPosition but is looped and returns a ParticleEffect.

Syntax

ParticleEffect NAPI.Particle.CreateLoopedParticleEffectOnPosition(string ptfxLib, string ptfxName, Vector3 position, Vector3 rotation, float scale [, uint dimension = NAPI.GlobalDimension ]);

Required Arguments

  • ptfxLib: parameter input should be in string type.
  • ptfxName: parameter input should be in string type.
  • position: parameter input should be in Vector3 type.
  • rotation: parameter input should be in Vector3 type.
  • scale: parameter input should be in float type.

Optional Arguments

  • dimension: parameter input should be in uint type.

NOTE: This function returns data in ParticleEffect type.

Usage example

   ParticleEffect myEffect = NAPI.Particle.CreateLoopedParticleEffectOnPosition(ptfxLib, ptfxName, position, rotation, scale);

Changelog

Version Description
1.0 Release.

References