FivePD API
Interfaces

IPedStorageService

A service for managing and accessing ped data.

Methods

TryGetPed

Tries to get a FPed by its network ID.

Parameters

NameTypeDescription
networkIdintThe ped's network ID.

Returns

NameType
FPedThe ped or null.

GetPedData

Gets the PedData of the given FPed.

Parameters

NameTypeDescription
pedFPedThe ped.

Returns

NameType
PedDataThe PedHistory of the ped.

Properties

Peds

Gets a readonly dictionary of all peds on the server.

Type: ReadOnlyDictionary<int, FPed>

InternalPeds

Type: ConcurrentDictionary<int, FPed>