> For the complete documentation index, see [llms.txt](https://hrscripts.gitbook.io/hrscripts-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hrscripts.gitbook.io/hrscripts-documentation/resources/hrlib/modules/trackingentities/client/events.md).

# Events

## HRLib:TrackedEntityDeleted

Event, triggered when a triggered entity is being deleted

Parameters description

* `entityType` - the type of the entity that's been deleted (can be `'ped'`, `'vehicle'` or `'object'`)
* `entityId` - the entity id of the deleted entity (not usable after it's already been deleted but useful if you saved it somewhere)
* `properties` - the properties of the entity, it changes according to the entityType

### Properties for ped entity type

* `pedModel`: integer
* `pedType`: see [GetPedType](https://docs.fivem.net/natives/?_0xFF059E1E4C01E63C)
* `isPlayer`: boolean
* `pedMoney`: integer
* `lastCoords`: vector3
* `isFreezed`: boolean
* `state`: table?
* `...`: (after these fields here are the additional fields when the tracker was registered)

### Properties for vehicle entity type

* [HRLibVehicleProperties](/hrscripts-documentation/resources/hrlib/classes/hrlibvehicleproperties.md)
* `state`: table?
* `...`: (after these fields here are the additional fields when the tracker was registered)

### Properties for object entity type

* `objectModel`: integer
* `isObjectLocal`: boolean
* `lastCoords`: vector3
* `isFreezed`: boolean
* `state`: table?
* `...`: (after these fields here are the additional fields when the tracker was registered)

## HRLib:RemovedEntity

Event, triggered when an entity is deleted in a script, using HRLib's import method, using `DeleteEntity`, `DeletePed`, `DeleteVehicle` and `DeleteObject` for client side. It's also triggered only when the entity that is deleted is not being tracked

Parameters description

* `entityType` - the type of the entity that's been deleted (can be `'ped'`, `'vehicle'` or `'object'`)
* `entity` - the entity id of the deleted entity (it's usable because the event is triggered right before the entity is being deleted)
