Events
Last updated
Last updated
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
pedModel
: integer
pedType
: see
isPlayer
: boolean
pedMoney
: integer
lastCoords
: vector3
isFreezed
: boolean
state
: table?
...
: (after these fields here are the additional fields when the tracker was registered)
state
: table?
...
: (after these fields here are the additional fields when the tracker was registered)
objectModel
: integer
isObjectLocal
: boolean
lastCoords
: vector3
isFreezed
: boolean
state
: table?
...
: (after these fields here are the additional fields when the tracker was registered)
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)