EntityModelChange
Event triggered when an entity model changes.
Server-Side Event
C# | JavaScript |
---|
C# Syntax
See OnEntityModelChange.
JavaScript Syntax
Parameters
- entity: Entity
- oldModel: Number - hash of the old model
Example
mp.events.add("entityModelChange", (entity, oldModel) => {
// Do what you want.
});