GraphicsClientNot in this build

startVehicleParticleFxLooped

_START_VEHICLE_PARTICLE_FX_LOOPED0xDF269BE2909E181A

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

SignatureJavaScript
startVehicleParticleFxLooped(
  vehicle: Vehicle,
  effectName: string,
  frontBack: boolean,
  leftRight: boolean,
  localOnly: boolean
): number
SignatureLua
startVehicleParticleFxLooped(
  vehicle: Vehicle,
  effectName: string,
  frontBack: boolean,
  leftRight: boolean,
  localOnly: boolean
): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = startVehicleParticleFxLooped(
  vehicle, effectName, frontBack, leftRight, localOnly
);
Lua
local result = startVehicleParticleFxLooped(
    vehicle, effectName, frontBack, leftRight, localOnly
)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
effectNamestringstringstring
frontBackBOOLbooleanboolean
leftRightBOOLbooleanboolean
localOnlyBOOLbooleanboolean

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.

Returns ptfxHandle
effectName: scr_sv_drag_burnout

Reference

Namespace
Graphics GRAPHICS
In the game
int _START_VEHICLE_PARTICLE_FX_LOOPED(Vehicle vehicle, const char* effectName, BOOL frontBack, BOOL leftRight, BOOL localOnly)
Hash
0xDF269BE2909E181A
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference