isPedNativeGroupActive
Client-side
Reports whether the calling resource still owns a live native ambient group.
Syntax
bool isPedNativeGroupActive(int token)Arguments
tokenintGroup token.
Returns
true only while the resource and native group lease are current.
Ownership and lifecycle
Candidate queries create nothing. A multiplayer resource must validate each proposal, create and own the real NPCs and vehicles, assign one current syncer, handle ownership changes, and clean up every element. Native AI and event tokens belong to the calling resource and are revoked when that resource stops.
Where this comes from
SOURCECLuaPedDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaPedDefs.cpp INTRODUCED / EXTENDED39f782fd9Read the commit and why the change was made TEST RESOURCE native-ai-test-harness test-resources/native-ai-test-harness
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How Synchronized NPCs and road traffic works →