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
: integerpedType
: see GetPedTypeisPlayer
: booleanpedMoney
: integerlastCoords
: vector3isFreezed
: booleanstate
: table?...
: (after these fields here are the additional fields when the tracker was registered)
Properties for vehicle entity type
state
: table?...
: (after these fields here are the additional fields when the tracker was registered)
Properties for object entity type
objectModel
: integerisObjectLocal
: booleanlastCoords
: vector3isFreezed
: booleanstate
: 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)
Last updated