Skip to content

getModel2DFXEffects

Client-side

Available in Neon, not standard MTA

Returns every 2DFX effect on a model with its type, position and properties.

Syntax

table|false getModel2DFXEffects(int model)

Arguments

modelint

Model ID from 0 through 65535.

Returns

A table of effects, or false for an invalid model.

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
  • This is the way to discover what an unfamiliar model already carries before editing it.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →