CreateParticleEffectOnPosition

From GTA Network Wiki
Jump to: navigation, search

CreateParticleEffectOnPosition
Server-Side Function

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

Creates a Particle effect on a position.

This function is similar to CreateLoopedParticleEffectOnPosition but isn't looped so a ParticleEffect isn't returned.

Syntax

void NAPI.Particle.CreateParticleEffectOnPosition(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.

Usage example

NAPI.Particle.CreateParticleEffectOnPosition(ptfxLib, ptfxName, position, rotation, scale);

Changelog

Version Description
1.0 Release.

References

CreateLoopedParticleEffectOnPosition