Skip to content

isPedNativeCoupleActive

Client-side

Reports whether the calling resource still owns a live native couple.

Syntax

bool isPedNativeCoupleActive(int token)

Arguments

tokenint

Couple token.

Returns

true only while the resource lease and the native couple task are both 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

RELATED SA:O APIS

Continue exploring

Read the system guide →