ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. stopPedDriving

Function

stopPedDriving

ServerPedsTrilogy Hub only

Ends a drive started with setPedDriveRoute or setPedDriveTo. The NPC stays at the wheel and the vehicle brakes.

Syntax

bool stopPedDriving(ped ped)

Arguments

pedped
The NPC.

Returns

true if the NPC was driving.

Example

stopPedDriving(driver)

See also