FivePD API
Interfaces

IPedBehaviorService

Service responsible for managing the behavioral logic and AI decision-making of peds.

Methods

StartBehavior

Starts the behavior logic for a specific ped.

Parameters

NameTypeDescription
playerFPlayerThe player that triggered or is the target of the behavior.
fPedFPedThe ped to start the behavior for.

StopBehavior

Stops the behavior logic for a specific ped and resets its state.

Parameters

NameTypeDescription
pedFPedThe ped to stop the behavior for.

StopBehavior

Stops the behavior logic for a specific ped and resets its state.

Parameters

NameTypeDescription
networkIdintThe network id of the ped to stop the behavior for.