releaseObjectGangTag
Client-side
Unregisters an owned tag from GTA's native spray path and clears its Grove-material override.
Syntax
bool releaseObjectGangTag(object theObject)Arguments
theObjectobjectTag object owned by the calling resource.
Returns
true when released; false when the caller does not own the tag.
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.
OOP aliases
object:releaseGangTag()
Where this comes from
SOURCECLuaObjectDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp INTRODUCED / EXTENDED33b8fb453Read the commit and why the change was made TEST RESOURCE native-gang-tag-test test-resources/native-gang-tag-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →