releasePedNativeEventProfile
Releases one native ped event-profile token owned by the calling resource.
Syntax
bool releasePedNativeEventProfile(int token)GTA task mapping
This changes the event adapter's lease state; it does not assign a task.
Arguments
tokenintToken returned to this resource by acquirePedNativeEventProfile.
Returns
true when the owned token was released; false for an unknown, stale, or foreign token.
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.
- Resource shutdown revokes every surviving profile token automatically.
- Release disables the adapter but does not cancel or migrate a response task that GTA already created.
- For synchronized server peds, mirror the intended lease on every client so a later syncer can activate its own resource-private token.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →