Type Vehicle

Vehicle type

Methods

getDriver () Gets the entity that is driving the vehicle
getPassenger (n) Gets the entity that is the riding in the passenger seat of the vehicle


Methods

vehicle_methods:getDriver ()
Gets the entity that is driving the vehicle

Return value:

    The player driving the vehicle or nil if there is no driver
vehicle_methods:getPassenger (n)
Gets the entity that is the riding in the passenger seat of the vehicle

Parameters:

  • n: The passenger number to get.

Return value:

    The passenger player of the vehicle or nil if there is no passenger

Valid XHTML 1.0!