resetModel2DFXProperty
Client-side
Restores one property to its original value.
Syntax
bool resetModel2DFXProperty(int model, int index, string property)Arguments
modelintModel ID from 0 through 65535.
indexintEffect index on the model.
propertystringProperty name to restore.
Returns
true when restored; false when there was no override to undo.
Ownership and lifecycle
Custom effects belong to the resource that added them. Overrides and removals of original GTA effects are stacked per resource, so two resources editing the same model do not clobber each other, and stopping one rolls back only its own layer.
Where this comes from
SOURCECLua2DFXDefs.cppClient/mods/deathmatch/logic/luadefs/CLua2DFXDefs.cpp INTRODUCED / EXTENDED27e3972e7Read the commit and why the change was made TEST RESOURCE 2dfx-test test-resources/2dfx-test
RELATED NEON APIS
Read the system guide →