Skip to main content

Ped::controller

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

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