Ped::controller
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
- Functions
- Properties