Skip to content

getModel2DFXType

Client-side

Available in Neon, not standard MTA

Returns the type of one effect on a model.

Syntax

string|false getModel2DFXType(int model, int index)

Arguments

modelint

Model ID from 0 through 65535.

indexint

Effect index on the model.

Returns

light, particle, roadsign, escalator, sun_glare or unknown; false for an invalid model or index.

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

RELATED NEON APIS

Continue exploring

Read the system guide →