GraphicsClient

startParticleFxLoopedAtCoord

START_PARTICLE_FX_LOOPED_AT_COORD0xE184F4F0DC5910E7

The GTA V native START_PARTICLE_FX_LOOPED_AT_COORD of the GRAPHICS namespace, as LS:MP client scripts call it: the global function startParticleFxLoopedAtCoord, in JavaScript and in Lua.

SignatureJavaScript
startParticleFxLoopedAtCoord(
  effectName: string,
  x: number,
  y: number,
  z: number,
  xRot: number,
  yRot: number,
  zRot: number,
  scale: number,
  xAxis: boolean,
  yAxis: boolean,
  zAxis: boolean,
  p11: boolean
): number
SignatureLua
startParticleFxLoopedAtCoord(
  effectName: string,
  x: number,
  y: number,
  z: number,
  xRot: number,
  yRot: number,
  zRot: number,
  scale: number,
  xAxis: boolean,
  yAxis: boolean,
  zAxis: boolean,
  p11: boolean
): integer

Usage

JavaScript
const result = startParticleFxLoopedAtCoord(
  effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11
);
Lua
local result = startParticleFxLoopedAtCoord(
    effectName, x, y, z, xRot, yRot, zRot, scale, xAxis, yAxis, zAxis, p11
)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
const result = startParticleFxLoopedAtCoord(
  effectName, pos, rot, scale, xAxis, yAxis, zAxis, p11
);
Lua · with vectors
local result = startParticleFxLoopedAtCoord(
    effectName, pos, rot, scale, xAxis, yAxis, zAxis, p11
)

Parameters

ParameterTypeJavaScriptLua
effectNamestringstringstring
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
xRotfloatnumbernumber
yRotfloatnumbernumber
zRotfloatnumbernumber
scalefloatnumbernumber
xAxisBOOLbooleanboolean
yAxisBOOLbooleanboolean
zAxisBOOLbooleanboolean
p11BOOLbooleanboolean

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

startParticleFxLoopedAtCoord("scr_fbi_falling_debris", 93.7743f, -749.4572f, 70.86904f, 0f, 0f, 0f, 0x3F800000, 0, 0, 0, 0)

p11 seems to be always 0

Full list of particle effect dictionaries and effects by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/particleEffectsCompact.json

Reference

Namespace
Graphics GRAPHICS
In the game
int START_PARTICLE_FX_LOOPED_AT_COORD(const char* effectName, float x, float y, float z, float xRot, float yRot, float zRot, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis, BOOL p11)
Hash
0xE184F4F0DC5910E7

Open in the interactive natives reference