15.09.2016, 02:26
It's actually relatively easy to do, and there are many many many threads that have this exact problem solved, if you'd taken the time to search for it before posting.
https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
https://sampwiki.blast.hk/wiki/GetVehicleModel
http://lmgtfy.com/?q=how+to+do+maths
https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
https://sampwiki.blast.hk/wiki/GetVehicleModel
http://lmgtfy.com/?q=how+to+do+maths