Hello,
After testing GetVehicleMaxSpeed() with the new fxmanifest versions (adamant | bodacious) I found that the function doesn’t return the max speed of a vehicle, so, in order to reproduce it here’s the code and some screenshots.
Using __resource.lua works fine.
Also found that the code works in fxmanifest.lua by getting the speed with the vehicle entity and not with the model, using __resource.lua you need to send the model of the vehicle in order to make it working.
Fake names should not be relied on, and this is the reason RMVs were originally introduced: to cover the lack of tracking of early NativeDB data sets.
Similarly, not specifying any higher RMV is also not supported for new resources. Please, stop not using RMVs and copy/pasting old ‘fake’ native names!