This native is supposed to return a int value (modifier) that you can find in the carcols.meta of the defined model vehicle, but it doesn’t give the right value anymore (don’t know since when).
An example :
Let’s take the vehicle “Kamacho” available since mpchristmas2017, if i try the native with the vehicle like :
GetVehicleModModifierValue(
myVehicle,
11, -- Being the VMT_ENGINE
3, -- Being the max
)
It should return the modifier as in the files (carcols.meta from mpchristmas2017) : 400
Here is the file open on openIV for the Kamacho mpchristmas2017
But it does not return 400 anymore. i don’t know what’s the type returned but it would normally be a int from the modifier value.
This issue was happening since a while but using an old manifest version used to be enough, not anymore since a recent patch. So here is the right bug report.
Type :
number
Engine :
7.0064923216241e-44
1.4012984643248e-43
2.8025969286496e-43
5.6051938572993e-43
Brakes :
3.503246160812e-44
7.0064923216241e-44
1.4012984643248e-43
So first of all, the type of the returned value is “number” when it should be an int.
But the main problem is the result, it’s not at all the right ones, not even close, looking at the files it should have return :
Type :
int
Engine :
50
100
200
400
Brakes :
25
50
100