Skip to content

setModel2DFXPosition

Client-side

Available in Neon, not standard MTA

Moves one effect within its model.

Syntax

bool setModel2DFXPosition(int model, int index, float x, float y, float z)

Arguments

modelint

Model ID from 0 through 65535.

indexint

Effect index on the model.

xfloat

New local X.

yfloat

New local Y.

zfloat

New 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

RELATED NEON APIS

Continue exploring

Read the system guide →