ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPedDrivePointReached

Event

onPedDrivePointReached

ServerPedsTrilogy Hub only

The NPC driver reached a route point set by setPedDriveRoute (within stopRadius).

Handler

addEventHandler("onPedDrivePointReached", root, function(vehicle, index) ... end)

Parameters

vehiclevehicle
The vehicle.
indexint
The point index.

Source

source is the NPC.

Example

addEventHandler("onPedDrivePointReached", driver, function(vehicle, index)
    setVehicleDoorOpenRatio(vehicle, 2, 1, 500)
end)

See also