Skip to content

releasePedNativeCouple

Client-side

Releases a native couple lease owned by the calling resource.

Syntax

bool releasePedNativeCouple(int token)

Arguments

tokenint

Token returned by acquirePedNativeCouple.

Returns

true when the owned couple was released; false for an unknown, stale, or foreign token.

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.

Important behavior
  • Resource shutdown releases every remaining couple lease automatically.

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →