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

Event

onPedDriveFinished

ServerPedsTrilogy Hub only

The NPC driver reached the last route point (without loop) or the target of setPedDriveTo.

Handler

addEventHandler("onPedDriveFinished", root, function(vehicle) ... end)

Parameters

vehiclevehicle
The vehicle.

Source

source is the NPC.

Example

addEventHandler("onPedDriveFinished", driver, function(vehicle)
    setPedDriveTo(source, vehicle, 1750, -1890, 13.5)
end)

See also