setModel2DFXPosition
Client-side
Moves one effect within its model.
Syntax
bool setModel2DFXPosition(int model, int index, float x, float y, float z)Arguments
modelintModel ID from 0 through 65535.
indexintEffect index on the model.
xfloatNew local X.
yfloatNew local Y.
zfloatNew local Z.
Returns
true when applied; false for an invalid model, index or position.
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.
Important behavior
- Moving a light to local 0,0,0 on a flat anchor is how the showcase puts coronas at ground level instead of inheriting a lamp-head height.
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 →