Skip to content

getModel2DFXProperty

Client-side

Available in Neon, not standard MTA

Reads one property of one effect.

Syntax

var|false getModel2DFXProperty(int model, int index, string property)

Arguments

modelint

Model ID from 0 through 65535.

indexint

Effect index on the model.

propertystring

Property name valid for that effect type.

Returns

The property value, or false when the model, index or property name is invalid.

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 →