Перейти к содержанию

EntityControllerChange

Материал из RAGE MP Wiki Archive
Версия от 02:00, 21 апреля 2020; imported>MrPancakers2 (Created page with "{{ClientsideJsEvent}} Triggered when an entities controller has been changed. {{JSContainer| === Parameters === *'''entity''': {{RageType|Object}} *'''newController''': {{Rag...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Client-Side
Event

 JavaScript



Triggered when an entities controller has been changed.

JavaScript Syntax

Parameters

  • entity: Object
  • newController: Object

Example

Client-Side
mp.events.add("entityControllerChange", (entity, newController) => {
    mp.gui.chat.push(`${entity.type}(ClientID: ${entity.id}) has switched to a new controller [${newController ? newController.name : 'Nobody'}]`);
});


See Also

Browser

Checkpoints

Colshapes

Console

Common

Damage

Vehicles

Voice chat

Streaming

Graphics

Waypoint

Misc