isPedNativeEventProfileActive
Reports whether this resource's native event-profile lease is active for the current authoritative ped generation.
Syntax
bool isPedNativeEventProfileActive(ped thePed, int token)GTA task mapping
This is a generation-aware lease query, not a CTask or SCM command.
Arguments
thePedpedScript ped associated with the token.
tokenintResource-private profile token to check.
Returns
true only when the token belongs to this resource and ped, that profile's prerequisites still hold, this client is syncer, and the native profile is active; 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.
- false is expected while the ped is streamed out or another client owns synchronization; the same logical token may become active again on a later authoritative generation.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →