API

Exported functions which may be used from within external scripts

Get current depth of a vehicle wheel

Returns the current depth at which a specific wheel is submerged in

-- Client sided export
exports.kq_realoffroad:GetVehicleWheelDepth(vehicle, wheelIndex)
  • vehicle: number the numeric client entity id

  • wheelIndex: number the index of vehicle wheel (0-3)

Get average depth of the current vehicle

Returns the average depth of the vehicle that the player is driving

-- Client sided export
exports.kq_realoffroad:GetCurrentDepth()

Last updated