GraphicsClient

useParticleFxAsset

USE_PARTICLE_FX_ASSET0x6C38AF3693A69A91

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

SignatureJavaScript
useParticleFxAsset(name: string): void
SignatureLua
useParticleFxAsset(name: string)

Usage

JavaScript
useParticleFxAsset(name);
Lua
useParticleFxAsset(name)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

From the b678d decompiled scripts:

useParticleFxAsset("FM_Mission_Controler");
useParticleFxAsset("scr_apartment_mp");
useParticleFxAsset("scr_indep_fireworks");
useParticleFxAsset("scr_mp_cig_plane");
useParticleFxAsset("scr_mp_creator");
useParticleFxAsset("scr_ornate_heist");
useParticleFxAsset("scr_prison_break_heist_station");

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
void USE_PARTICLE_FX_ASSET(const char* name)
Hash
0x6C38AF3693A69A91
Formerly
_SET_PTFX_ASSET_NEXT_CALL _USE_PARTICLE_FX_ASSET_NEXT_CALL

Open in the interactive natives reference