startParticleFxLoopedAtCoord
START_PARTICLE_FX_LOOPED_AT_COORD0xE184F4F0DC5910E7The 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.
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
): numberstartParticleFxLoopedAtCoord(
effectName: string,
x: number,
y: number,
z: number,
xRot: number,
yRot: number,
zRot: number,
scale: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean,
p11: boolean
): integerUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
effectName | string | string | string |
x | float | number | number |
y | float | number | number |
z | float | number | number |
xRot | float | number | number |
yRot | float | number | number |
zRot | float | number | number |
scale | float | number | number |
xAxis | BOOL | boolean | boolean |
yAxis | BOOL | boolean | boolean |
zAxis | BOOL | boolean | boolean |
p11 | BOOL | boolean | boolean |
Returns
int JavaScript number, Lua integerNotes
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