Skip to content

removeModel2DFX

Client-side

Available in Neon, not standard MTA

Removes one 2DFX effect from a model, including an effect GTA shipped.

Syntax

bool removeModel2DFX(int model, int index)

Arguments

modelint

Model ID from 0 through 65535.

indexint

Effect index on the model.

Returns

true when the effect was removed; 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.

Important behavior
  • Removing an original GTA effect is recorded as this resource's override and rolled back when the resource stops.
  • Use restoreModel2DFX to put an original effect back without stopping the resource.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →