SA-MP Forums Archive
[Include] y_vehicledata - Page 3 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] y_vehicledata - Page 3 (/showthread.php?tid=516815)



Re: y_vehicledata - Maximun - 10.01.2015

Awesome


Re: y_vehicledata - PaulDinam - 18.01.2015

Really useful. You have my gratitude!
Though I still don't quite understand what VIM is used for.

EDIT:
I made something like this:
Code:
stock VehName(vehicle)
{
	new VIM:vim = Vehicle_GetVIM(vehicle);
	strunpack(name, VIM_Name(vim));
	return name;
}
Is VIM the right way to use it or should I use Vehicle_Name or Model_Name? Which is better?


Re: y_vehicledata - Y_Less - 24.01.2015

VIM is basically an optimisation. If you call multiple data functions for one vehicle, convert it to VIM first and use that. The other versions call "clamp" or "GetVehicleModel" internally, so would involve multiple identical calls instead of just one as in the example you posted.


Re: y_vehicledata - TheRaGeLord - 24.01.2015

Nice


Re: y_vehicledata - Y_Less - 15.03.2015

I've finally added this to the YSI.tl repository, and updated it with some minor improvements - mostly cosmetic code changes, but one small optimisation.