setParticleFxOverride
SET_PARTICLE_FX_OVERRIDE0xEA1E2D93F6F75ED9The 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.
setParticleFxOverride(oldAsset: string, newAsset: string): voidsetParticleFxOverride(oldAsset: string, newAsset: string)Usage
JavaScript
setParticleFxOverride(oldAsset, newAsset);Lua
setParticleFxOverride(oldAsset, newAsset)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
oldAsset | string | string | string |
newAsset | string | string | string |
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