Skip to content

setObjectGangTagAlpha

Client-side

Available in Neon, not standard MTA

Sets a logical 0–255 Grove-material alpha on a streamed native gang-tag object, or clears the opt-in override.

Syntax

bool setObjectGangTagAlpha(object theObject, int|false alpha)

Arguments

theObjectobject

Streamed object using model 1490 or 1524 through 1531.

alphaint|false

0..255, or false to relinquish the override.

Returns

true when the supported streamed object's material state was updated; false otherwise.

Ownership and lifecycle

Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.

Important behavior
  • Reapply after stream-in or native object recreation.

OOP aliases

  • object:setGangTagAlpha(alpha)

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →