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

Ped::controller

Материал из RAGE MP Wiki Archive
Версия от 12:25, 19 февраля 2022; imported>Tim (Created page with "This property is used for getting a peds controller. ==Getter== * {{RageType|Number}} == Example == {{ClientsideCode| <pre> const pedController = ped.controller; mp.console...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This property is used for getting a peds controller.

Getter

  • Number

Example

Client-Side
const pedController = ped.controller;
mp.console.logInfo(`Ped ${ped?.handle} controller: ${pedController.name}`); // outputs the peds controllers name to the F11 console

See Also