Skip to main content

CDF Events

CDF provides events that developers can subscribe to in order to help their plugins become more responsive and performant.

Events

OnPedDataRemoved

Invoked when PedData for a specific ped is removed from CDF.

public static event OnPedDataRemovedDelegate OnPedDataRemoved;
Important

This event is not invoked if the entire cache is cleared; it specifically pertains to the removal of individual PedData entries.


OnVehicleDataRemoved

Invoked when VehicleData is removed from the associated database within the Common Data Framework.

public static event OnVehicleDataRemovedDelegate OnVehicleDataRemoved;
Important

This event is not invoked if the entire cache is cleared; it specifically pertains to the removal of individual VehicleData entries.


Delegates

OnPedDataRemovedDelegate

public delegate void OnPedDataRemovedDelegate(Ped ped, PedData pedData);

OnVehicleDataRemovedDelegate

public delegate void OnVehicleDataRemovedDelegate(Vehicle vehicle, VehicleData vehicleData);