startVehicleParticleFxLooped
_START_VEHICLE_PARTICLE_FX_LOOPED0xDF269BE2909E181AThe 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.
startVehicleParticleFxLooped(
vehicle: Vehicle,
effectName: string,
frontBack: boolean,
leftRight: boolean,
localOnly: boolean
): numberstartVehicleParticleFxLooped(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
effectName | string | string | string |
frontBack | BOOL | boolean | boolean |
leftRight | BOOL | boolean | boolean |
localOnly | 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.
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