GraphicsClient

setParticleFxOverride

SET_PARTICLE_FX_OVERRIDE0xEA1E2D93F6F75ED9

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

SignatureJavaScript
setParticleFxOverride(oldAsset: string, newAsset: string): void
SignatureLua
setParticleFxOverride(oldAsset: string, newAsset: string)

Usage

JavaScript
setParticleFxOverride(oldAsset, newAsset);
Lua
setParticleFxOverride(oldAsset, newAsset)

Parameters

ParameterTypeJavaScriptLua
oldAssetstringstringstring
newAssetstringstringstring

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.

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 SET_PARTICLE_FX_OVERRIDE(const char* oldAsset, const char* newAsset)
Hash
0xEA1E2D93F6F75ED9
Formerly
_SET_PTFX_ASSET_OLD_2_NEW _SET_PARTICLE_FX_ASSET_OLD_TO_NEW

Open in the interactive natives reference