GraphicsClient

setParticleFxLoopedOffsets

SET_PARTICLE_FX_LOOPED_OFFSETS0xF7DDEBEC43483C43

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

SignatureJavaScript
setParticleFxLoopedOffsets(
  ptfxHandle: number,
  x: number,
  y: number,
  z: number,
  rotX: number,
  rotY: number,
  rotZ: number
): void
SignatureLua
setParticleFxLoopedOffsets(
  ptfxHandle: integer,
  x: number,
  y: number,
  z: number,
  rotX: number,
  rotY: number,
  rotZ: number
)

Usage

JavaScript
setParticleFxLoopedOffsets(ptfxHandle, x, y, z, rotX, rotY, rotZ);
Lua
setParticleFxLoopedOffsets(ptfxHandle, x, y, z, rotX, rotY, rotZ)

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
setParticleFxLoopedOffsets(ptfxHandle, pos, rot);
Lua · with vectors
setParticleFxLoopedOffsets(ptfxHandle, pos, rot)

Parameters

ParameterTypeJavaScriptLua
ptfxHandleintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
rotXfloatnumbernumber
rotYfloatnumbernumber
rotZfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_PARTICLE_FX_LOOPED_OFFSETS(int ptfxHandle, float x, float y, float z, float rotX, float rotY, float rotZ)
Hash
0xF7DDEBEC43483C43

Open in the interactive natives reference