acquireObjectGangTag
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
theObjectobjectTag object using model 1490 or 1524 through 1531.
progressintoptional · default 0Initial 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.
- 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
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →