Open Vehicle Plus Versions Save

Modify your vehicles however you want. From top to bottom.

2.0.0

6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Mergevos/open-vehicle-plus/compare/1.4.0...2.0.0

2.0.0-beta.3

6 months ago

What's new

  • Extended functions for panels and doors

2.0.0-beta.2

7 months ago

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

7 months ago

More on this topic.

1.4.0

10 months ago

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.

1.3.2

11 months ago

What's Changed

Full Changelog: https://github.com/Mergevos/open-vehicle-plus/compare/1.3.1...1.3.2

Special thanks to @iamjexcdevvv

1.3.1

1 year ago

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.

1.3.0

1 year ago

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.

1.2.0

1 year ago

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

1.1.1

1 year ago

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)