Releases: Mergevos/open-vehicle-plus
open-vehicle-plus | 2.0.0 | Unbelievable?
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
- @iamjexcdevvv made their first contribution in #53
Full Changelog: 1.4.0...2.0.0
2.0.0-beta.3
What's new
- Extended functions for panels and doors
2.0.0-beta.2
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
open-vehicle-plus | 1.4.0 | Fuel!
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 levelVehicle_SetFuelConsumption
- Sets fuel consumption rateVehicle_GetFuelTankCapacity
- Gets fuel tank capacityVehicle_GetFuelLevel
- Gets fuel levelVehicle_GetFuelConsumption
- Gets fuel consumption ratesVehicle_GetDistanceCanPass
- Gets distance vehicle can pass coresponding to fuel levelVehicle_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
open-vehicle-plus | 1.3.1 | Driven Distance Fixes Patch!
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
What's new
- Number plate functions now have proper summaries and return values
Vehicle_GetNumberPlate
now returnsINVALID_VEHICLE_ID
if vehicle is invalid, otherwise it obtains number plate text.Vehicle_SetNumberPlate
is now tagged withbool
, 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!
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
- Vehicle_SetTyrePoppingGlobal
open-vehicle-plus | 1.1.1 | Cleaning!
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)