Skip to content

acquirePedNativeCouplePresentation

Client-side

Opens an observer-side presentation channel so a non-syncing client can present two peds as a walking couple.

Syntax

int|false acquirePedNativeCouplePresentation(ped a, ped b)

Arguments

aped

First member.

bped

Second member.

Returns

A resource-private presentation token, or false when the pair or ownership state is not presentable.

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
  • This is appearance only. It runs no couple AI and is the observer counterpart to acquirePedNativeCouple.
  • A client must not hold a real couple lease and a presentation lease for the same pair.

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →