Skip to content

Releases: Mergevos/open-vehicle-plus

open-vehicle-plus | 2.0.0 | Unbelievable?

03 Nov 00:20
Compare
Choose a tag to compare

What's Changed

  • Error fixed by @iamjexcdevvv in #53
  • fixes by @iamjexcdevvv in #55
  • Logic changes in Vehicle_SetFuelLevel by @iamjexcdevvv in #54
  • Electric vehicles
  • Error handling powered by pawn-errors by @Southclaws (This results in incompatible API changes)
  • ENGINE_INVALID is now used for bikes
  • ENGINE_ELECTRIC and DRIVE_MANUAL

New Contributors

Full Changelog: 1.4.0...2.0.0

2.0.0-beta.3

17 Oct 22:24
Compare
Choose a tag to compare
2.0.0-beta.3 Pre-release
Pre-release

What's new

  • Extended functions for panels and doors

2.0.0-beta.2

08 Oct 22:19
9ae2505
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release

What's new

Welcome compat call, say goodbye to adapting all the default functions to new api. Simply define VEHICLE_PLUS_COMPAT before including this library, as well as SA:MP style functions naming, take a look at:
https://github.com/Mergevos/open-vehicle-plus/blob/master/vehicle_plus.inc#L4611-L4706

2.0.0-beta.1

17 Sep 17:28
cf5eef3
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

More on this topic.

open-vehicle-plus | 1.4.0 | Fuel!

27 Jun 22:28
Compare
Choose a tag to compare

What's new

Fuel system has implemented.
In order for it to function, you've to explicitly set fuel capacity, otherwise it will be equal to -1 (infinite fuel)

  • New functions
  • Vehicle_SetFuelTankCapacity - Sets tank capacity (-1 infinite fuel)
  • Vehicle_SetFuelLevel - Sets fuel level
  • Vehicle_SetFuelConsumption - Sets fuel consumption rate
  • Vehicle_GetFuelTankCapacity - Gets fuel tank capacity
  • Vehicle_GetFuelLevel - Gets fuel level
  • Vehicle_GetFuelConsumption - Gets fuel consumption rates
  • Vehicle_GetDistanceCanPass - Gets distance vehicle can pass coresponding to fuel level
  • Vehicle_GetDistanceFromLastRefill - Gets distance from last fuel refill.
  • Vehicle_TryTurningEngine - Checks if vehicle has fuel in order to start. (will have more checks in future)

All of these functions have unit argument which determine what unit of measure function will use.
It's either VEHICLE_UNIT_IMPERIAL or VEHICLE_UNIT_METRIC.

open-vehicle-plus | 1.3.2 | Tweaking

08 Jun 18:54
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.3.1...1.3.2

Special thanks to @iamjexcdevvv

open-vehicle-plus | 1.3.1 | Driven Distance Fixes Patch!

14 May 22:38
Compare
Choose a tag to compare

What's new

Since last release yesterday, I enountered misimplementation of driven distance checking, so it's fixed now, along with not-setting distance for opposite unit.

  • OnVehicleDrivenDistanceUpdate is now being called only when vehicle travels, not every second as it had been used to before.
  • Vehicle_SetDistanceTravelled now sets distance for opposite unit too.

open-vehicle-plus | 1.3.0 | Mileage

13 May 22:22
Compare
Choose a tag to compare

What's new

  • Number plate functions now have proper summaries and return values
    • Vehicle_GetNumberPlate now returns INVALID_VEHICLE_ID if vehicle is invalid, otherwise it obtains number plate text.
    • Vehicle_SetNumberPlate is now tagged with bool, returns false if vehicle is invalid, otherwise true.
  • New functionality, driven distance calculation.
  • New callback: OnVehicleDrivenDistanceUpdate called every second.
  • New function, Vehicle_GetDrivenDistance, either returns driven distance in kilometres or in miles, depends on specified unit at unit argument.
  • New function, Vehicle_SetDrivenDistance, either sets driven distance in kilometres or in miles.

open-vehicle-plus | 1.2.0 | Bulletproof tyres!

02 May 21:53
Compare
Choose a tag to compare

What's new

  • All tyre functions now have proper summaries and return values.
  • New function - Vehicle_GetTyreCondition, gets a condition of a specified tyre.
  • New function - Vehicle_SetTyreConditionEx, sets a condition to all tyres.
  • Now you can set whether tyres will be bulletproof or not
    • Vehicle_SetTyrePoppingGlobal
      • Setting this to false will make tyres repair automatically everytime you try to damage them, both by function or in game.
    • Vehicle_GetTyrePoppingGlobal

open-vehicle-plus | 1.1.1 | Cleaning!

19 Apr 22:05
Compare
Choose a tag to compare

What's new

  • Proper summary for alarms and windows functions
  • Vehicle_GetLightsNumber now returns INVALID_VEHICLE_ID
  • Vehicle_SetAlarms is now tagged as bool and returns false and true.
    • For some reason, Vehicle_SetAlarms wasn't tagged as bool, and was returning false and 1 instead of false and true. This is fixed now.
  • Vehicle_GetWindowsNumber now returns INVALID_VEHICLE_ID
  • Vehicle_GetWindowsEx now is boolean and returns false if vehicle is invalid, but true otherwise
  • Vehicle_Destroy now is boolean and returns false if vehicle is invalid, but true otherwise.
  • Windows are now explicitly set to CLOSED state instead of -1 (NOT_SET)