GraphicsClient

startNetworkedParticleFxNonLoopedOnEntity

START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY0xC95EB1DB6E92113D

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

SignatureJavaScript
startNetworkedParticleFxNonLoopedOnEntity(
  effectName: string,
  entity: Entity,
  offsetX: number,
  offsetY: number,
  offsetZ: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  scale: number,
  axisX: boolean,
  axisY: boolean,
  axisZ: boolean
): boolean
SignatureLua
startNetworkedParticleFxNonLoopedOnEntity(
  effectName: string,
  entity: Entity,
  offsetX: number,
  offsetY: number,
  offsetZ: number,
  rotX: number,
  rotY: number,
  rotZ: number,
  scale: number,
  axisX: boolean,
  axisY: boolean,
  axisZ: boolean
): boolean

Usage

JavaScript
const result = startNetworkedParticleFxNonLoopedOnEntity(
  effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ
);
Lua
local result = startNetworkedParticleFxNonLoopedOnEntity(
    effectName, entity, offsetX, offsetY, offsetZ, rotX, rotY, rotZ, scale, axisX, axisY, axisZ
)

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 = startNetworkedParticleFxNonLoopedOnEntity(
  effectName, entity, offset, rot, scale, axisX, axisY, axisZ
);
Lua · with vectors
local result = startNetworkedParticleFxNonLoopedOnEntity(
    effectName, entity, offset, rot, scale, axisX, axisY, axisZ
)

Parameters

ParameterTypeJavaScriptLua
effectNamestringstringstring
entityEntitynumberinteger
offsetXfloatnumbernumber
offsetYfloatnumbernumber
offsetZfloatnumbernumber
rotXfloatnumbernumber
rotYfloatnumbernumber
rotZfloatnumbernumber
scalefloatnumbernumber
axisXBOOLbooleanboolean
axisYBOOLbooleanboolean
axisZBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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
BOOL START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(const char* effectName, Entity entity, float offsetX, float offsetY, float offsetZ, float rotX, float rotY, float rotZ, float scale, BOOL axisX, BOOL axisY, BOOL axisZ)
Hash
0xC95EB1DB6E92113D
Formerly
_START_PARTICLE_FX_NON_LOOPED_ON_ENTITY_2

Open in the interactive natives reference