2019-04-15, 06:47 PM 
(This post was last modified: 2019-04-17, 09:31 AM by pawnoholic.)
		
	
	
		Vehicle Components Library
![[Image: sampctl-samp--vehicle--components--libra...-the-badge]](https://shields.southcla.ws/badge/sampctl-samp--vehicle--components--library-2f2f2f.svg?style=for-the-badge)
This library add a new functions, which help find compatible upgrades.
Installation
Simply install to your project:
Include in your code and begin using the library:
Usage
Testing
To test, simply run the package:
	
	
	
	
	
This library add a new functions, which help find compatible upgrades.
Installation
Simply install to your project:
Code:
sampctl package install pawno-labs/samp-vehicle-components-libraryInclude in your code and begin using the library:
Code:
#include <components>Usage
Code:
public OnVehicleMod(playerid, vehicleid, componentid)
{
? ? new modelid = GetVehicleModel(vehicleid);
? ? if (IsVehicleUpgradeCompatible(modelid, componentid))
? ? {
? ? ? ? new
? ? ? ? ? ? name[64],
? ? ? ? ? ? string[144];
? ? ? ? GetVehicleComponentName(componentid, name, sizeof(name));
? ? ? ? format(string, sizeof(string), "You have successfully installed \"%s\"", name);
? ? ? ? SendClientMessage(playerid, -1, string);
? ? }
? ? return 1;
}Testing
To test, simply run the package:
Code:
sampctl package run

