startParticleFxLoopedOnPedBone
START_PARTICLE_FX_LOOPED_ON_PED_BONE0xF28DA9F38CD1787CThe GTA V native START_PARTICLE_FX_LOOPED_ON_PED_BONE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function startParticleFxLoopedOnPedBone, in JavaScript and in Lua.
startParticleFxLoopedOnPedBone(
effectName: string,
ped: Ped,
xOffset: number,
yOffset: number,
zOffset: number,
xRot: number,
yRot: number,
zRot: number,
boneIndex: number,
scale: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
): numberstartParticleFxLoopedOnPedBone(
effectName: string,
ped: Ped,
xOffset: number,
yOffset: number,
zOffset: number,
xRot: number,
yRot: number,
zRot: number,
boneIndex: integer,
scale: number,
xAxis: boolean,
yAxis: boolean,
zAxis: boolean
): integerUsage
JavaScript
const result = startParticleFxLoopedOnPedBone(
effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis, yAxis,
zAxis
);Lua
local result = startParticleFxLoopedOnPedBone(
effectName, ped, xOffset, yOffset, zOffset, xRot, yRot, zRot, boneIndex, scale, xAxis,
yAxis, zAxis
)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 = startParticleFxLoopedOnPedBone(
effectName, ped, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis
);Lua · with vectors
local result = startParticleFxLoopedOnPedBone(
effectName, ped, offset, rot, boneIndex, scale, xAxis, yAxis, zAxis
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
effectName | string | string | string |
ped | Ped | number | integer |
xOffset | float | number | number |
yOffset | float | number | number |
zOffset | float | number | number |
xRot | float | number | number |
yRot | float | number | number |
zRot | float | number | number |
boneIndex | int | number | integer |
scale | float | number | number |
xAxis | BOOL | boolean | boolean |
yAxis | BOOL | boolean | boolean |
zAxis | 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.
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_ON_PED_BONE(const char* effectName, Ped ped, float xOffset, float yOffset, float zOffset, float xRot, float yRot, float zRot, int boneIndex, float scale, BOOL xAxis, BOOL yAxis, BOOL zAxis)- Hash
0xF28DA9F38CD1787C