Skip to content

acquireObjectGangTag

Client-side

Available in Neon, not standard MTA

Gives the calling resource exclusive ownership of a supported tag object and registers it with GTA's native spray path.

Syntax

bool acquireObjectGangTag(object theObject [, int progress = 0])

Arguments

theObjectobject

Tag object using model 1490 or 1524 through 1531.

progressintoptional · default 0

Initial Grove-material progress from 0 through 255.

Returns

true when ownership was acquired or refreshed by the same resource; false for an unsupported object, invalid progress, or another owner.

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
  • Ownership and progress survive stream-out and native object recreation.
  • GTA advances progress in its original 8-alpha spray steps.

OOP aliases

  • object:acquireGangTag(progress)

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →