// This file holds an array of defined buyable vehicles, used in the /buycar and /rentcar dialogs


#define VClassBike          1
#define VClassBoat          2
#define VClassConvertible   3
#define VClassHelicopter    4
#define VClassIndustrial    5
#define VClassLowRider      6
#define VClassOffRoad       7
#define VClassPlane         8
#define VClassPublic        9
#define VClassRCVehicle     10
#define VClassSaloons       11
#define VClassSportCar      12
#define VClassStationCar    13
#define VClassTrailer       14
#define VClassUnique        15

enum TBuyableVehicle
{
	CarName[50], // Holds the name of the vehicle
	VehicleClass, // Holds the ID of the vehicleclass
	CarModel, // Holds the model-ID of the vehicle
	Price // Holds the price for the vehicle (renting it will be 10% of this price)
}

new ABuyableVehicles[][TBuyableVehicle] =
{
	{"Admiral", VClassSaloons, 445, 50000},
	{"Alpha", VClassSportCar, 602, 50000},
	{"Ambulance", VClassPublic, 416, 50000},
	{"Andromada", VClassPlane, 592, 50000},
	{"Article Trailer", VClassTrailer, 591, 50000},
//	{"AT400", VClassPlane, 577, 50000},
	{"Baggage", VClassUnique, 485, 50000},
	{"Baggage Trailer A", VClassTrailer, 606, 50000},
	{"Baggage Trailer B", VClassTrailer, 607, 50000},
	{"Bandito", VClassOffRoad, 568, 50000},
	{"Banshee", VClassSportCar, 429, 50000},
	{"Barracks", VClassPublic, 433, 50000},
	{"Beagle", VClassPlane, 511, 50000},
	{"Benson", VClassIndustrial, 499, 50000},
	{"Berkley's RC Van", VClassIndustrial, 459, 50000},
	{"BF Injection", VClassOffRoad, 424, 50000},
	{"BF-400", VClassBike, 581, 50000},
	{"Bike", VClassBike, 509, 50000},
	{"Blade", VClassLowRider, 536, 50000},
	{"Blista Compact", VClassSportCar, 496, 50000},
	{"Bloodring Banger", VClassSaloons, 504, 50000},
	{"BMX", VClassBike, 481, 50000},
	{"Bobcat", VClassIndustrial, 422, 50000},
	{"Boxville 1", VClassIndustrial, 498, 50000},
	{"Boxville 2", VClassIndustrial, 609, 50000},
	{"Bravura", VClassSaloons, 401, 50000},
	{"Broadway", VClassLowRider, 575, 50000},
//	{"Brownstreak (train)", VClassUnique, 538, 50000},
	{"Buccaneer", VClassSaloons, 518, 50000},
	{"Buffalo", VClassSportCar, 402, 50000},
	{"Bullet", VClassSportCar, 541, 50000},
	{"Burrito", VClassIndustrial, 482, 50000},
	{"Bus", VClassPublic, 431, 50000},
	{"Cabbie", VClassPublic, 438, 50000},
	{"Caddy", VClassUnique, 457, 50000},
	{"Cadrona", VClassSaloons, 527, 50000},
	{"Camper", VClassUnique, 483, 50000},
	{"Cargo Trailer", VClassTrailer, 435, 50000},
	{"Cargobob", VClassHelicopter, 548, 50000},
	{"Cement Truck", VClassIndustrial, 524, 50000},
	{"Cheetah", VClassSportCar, 415, 50000},
	{"Clover", VClassSaloons, 542, 50000},
	{"Club", VClassSportCar, 589, 50000},
	{"Coach", VClassPublic, 437, 50000},
	{"Coastguard", VClassBoat, 472, 50000},
	{"Combine Harvester", VClassUnique, 532, 50000},
	{"Comet", VClassConvertible, 480, 50000},
	{"Cropduster", VClassPlane, 512, 50000},
	{"DFT-30", VClassIndustrial, 578, 50000},
	{"Dinghy", VClassBoat, 473, 50000},
	{"Dodo", VClassPlane, 593, 50000},
	{"Dozer", VClassUnique, 486, 50000},
	{"Dumper", VClassUnique, 406, 50000},
	{"Dune", VClassOffRoad, 573, 50000},
	{"Elegant", VClassSaloons, 507, 50000},
	{"Elegy", VClassSaloons, 562, 50000},
	{"Emperor", VClassSaloons, 585, 50000},
	{"Enforcer", VClassPublic, 427, 50000},
	{"Esperanto", VClassSaloons, 419, 50000},
	{"Euros", VClassSportCar, 587, 50000},
	{"Faggio", VClassBike, 462, 50000},
	{"Farm Trailer", VClassTrailer, 610, 50000},
	{"FBI Rancher", VClassPublic, 490, 50000},
	{"FBI Truck", VClassPublic, 528, 50000},
	{"FCR-900", VClassBike, 521, 50000},
	{"Feltzer", VClassConvertible, 533, 50000},
	{"Firetruck", VClassPublic, 407, 50000},
	{"Firetruck LA", VClassPublic, 544, 50000},
	{"Flash", VClassSportCar, 565, 50000},
	{"Flatbed", VClassIndustrial, 455, 50000},
	{"Fluids Trailer", VClassTrailer, 584, 50000},
	{"Forklift", VClassUnique, 530, 50000},
	{"Fortune", VClassSaloons, 526, 50000},
	{"Freeway", VClassBike, 463, 50000},
//	{"Freight (train)", VClassUnique, 537, 50000},
//	{"Freight Box Trailer (train)", VClassTrailer, 590, 50000},
//	{"Freight Flat Trailer (train)", VClassTrailer, 569, 50000},
	{"Glendale", VClassSaloons, 466, 50000},
	{"Glendale Shit", VClassSaloons, 604, 50000},
	{"Greenwood", VClassSaloons, 492, 50000},
	{"Hermes", VClassSaloons, 474, 50000},
	{"Hotdog", VClassUnique, 588, 50000},
	{"Hotknife", VClassUnique, 434, 50000},
	{"Hotring Racer 1", VClassSportCar, 494, 50000},
	{"Hotring Racer 2", VClassSportCar, 502, 50000},
	{"Hotring Racer 3", VClassSportCar, 503, 50000},
	{"HPV1000", VClassPublic, 523, 50000},
	{"Hunter", VClassHelicopter, 425, 50000},
	{"Huntley", VClassOffRoad, 579, 50000},
	{"Hustler", VClassUnique, 545, 50000},
	{"Hydra", VClassPlane, 520, 50000},
	{"Infernus", VClassSportCar, 411, 50000},
	{"Intruder", VClassSaloons, 546, 50000},
	{"Jester", VClassSportCar, 559, 50000},
	{"Jetmax", VClassBoat, 493, 50000},
	{"Journey", VClassUnique, 508, 50000},
	{"Kart", VClassUnique, 571, 50000},
	{"Landstalker", VClassOffRoad, 400, 50000},
	{"Launch", VClassBoat, 595, 50000},
	{"Leviathan", VClassHelicopter, 417, 50000},
	{"Linerunner", VClassIndustrial, 403, 50000},
	{"Majestic", VClassSaloons, 517, 50000},
	{"Manana", VClassSaloons, 410, 50000},
	{"Marquis", VClassBoat, 484, 50000},
	{"Maverick", VClassHelicopter, 487, 50000},
	{"Merit", VClassSaloons, 551, 50000},
	{"Mesa", VClassOffRoad, 500, 50000},
	{"Monster", VClassOffRoad, 444, 50000},
	{"Monster A", VClassOffRoad, 556, 50000},
	{"Monster B", VClassOffRoad, 557, 50000},
	{"Moonbeam", VClassStationCar, 418, 50000},
	{"Mountain Bike", VClassBike, 510, 50000},
	{"Mower", VClassUnique, 572, 50000},
	{"Mr Whoopee", VClassUnique, 423, 50000},
	{"Mule", VClassIndustrial, 414, 50000},
	{"Nebula", VClassSaloons, 516, 50000},
	{"Nevada", VClassPlane, 553, 50000},
	{"Newsvan", VClassIndustrial, 582, 50000},
	{"NRG-500", VClassBike, 522, 50000},
	{"Oceanic", VClassSaloons, 467, 50000},
	{"Ore Trailer", VClassTrailer, 450, 50000},
	{"Packer", VClassIndustrial, 443, 50000},
	{"Patriot", VClassOffRoad, 470, 50000},
	{"PCJ-600", VClassBike, 461, 50000},
	{"Perenniel", VClassStationCar, 404, 50000},
	{"Phoenix", VClassSportCar, 603, 50000},
	{"Picador", VClassIndustrial, 600, 50000},
	{"Pizzaboy", VClassBike, 448, 50000},
	{"Police Car (LSPD)", VClassPublic, 596, 50000},
	{"Police Car (LVPD)", VClassPublic, 598, 50000},
	{"Police Car (SFPD)", VClassPublic, 597, 50000},
	{"Police Maverick", VClassHelicopter, 497, 50000},
	{"Police Ranger", VClassPublic, 599, 50000},
	{"Pony", VClassIndustrial, 413, 50000},
	{"Predator", VClassBoat, 430, 50000},
	{"Premier", VClassSaloons, 426, 50000},
	{"Previon", VClassSaloons, 436, 50000},
	{"Primo", VClassSaloons, 547, 50000},
	{"Quad", VClassBike, 471, 50000},
	{"Raindance", VClassHelicopter, 563, 50000},
	{"Rancher 1", VClassOffRoad, 489, 50000},
	{"Rancher 2", VClassOffRoad, 505, 50000},
//	{"RC Bandit", VClassRCVehicle, 441, 50000},
//	{"RC Baron", VClassRCVehicle, 464, 50000},
//	{"RC Cam", VClassRCVehicle, 594, 50000},
//	{"RC Goblin", VClassRCVehicle, 501, 50000},
//	{"RC Raider", VClassRCVehicle, 465, 50000},
//	{"RC Tiger", VClassRCVehicle, 564, 50000},
	{"Reefer", VClassBoat, 453, 50000},
	{"Regina", VClassStationCar, 479, 50000},
	{"Remington", VClassLowRider, 534, 50000},
	{"Rhino", VClassPublic, 432, 50000},
	{"Roadtrain", VClassIndustrial, 515, 50000},
	{"Romero", VClassUnique, 442, 50000},
	{"Rumpo", VClassIndustrial, 440, 50000},
	{"Rustler", VClassPlane, 476, 50000},
	{"Sabre", VClassSportCar, 475, 50000},
	{"Sadler", VClassIndustrial, 543, 50000},
	{"Sadler Shit", VClassIndustrial, 605, 50000},
	{"SAN News Maverick", VClassHelicopter, 488, 50000},
	{"Sanchez", VClassBike, 468, 50000},
	{"Sandking", VClassOffRoad, 495, 50000},
	{"Savanna", VClassLowRider, 567, 50000},
	{"Seasparrow", VClassHelicopter, 447, 50000},
	{"Securicar", VClassUnique, 428, 50000},
	{"Sentinel", VClassSaloons, 405, 50000},
	{"Shamal", VClassPlane, 519, 50000},
	{"Skimmer", VClassPlane, 460, 50000},
	{"Slamvan", VClassLowRider, 535, 50000},
	{"Solair", VClassStationCar, 458, 50000},
	{"Sparrow", VClassHelicopter, 469, 50000},
	{"Speeder", VClassBoat, 452, 50000},
	{"Squallo", VClassBoat, 446, 50000},
	{"Stafford", VClassSaloons, 580, 50000},
	{"Stallion", VClassConvertible, 439, 50000},
	{"Stratum", VClassStationCar, 561, 50000},
//	{"Streak Trailer (train)", VClassTrailer, 570, 50000},
	{"Stretch", VClassUnique, 409, 50000},
	{"Stuntplane", VClassPlane, 513, 50000},
	{"Sultan", VClassSaloons, 560, 50000},
	{"Sunrise", VClassSaloons, 550, 50000},
	{"Super GT", VClassSportCar, 506, 50000},
	{"S.W.A.T.", VClassPublic, 601, 50000},
	{"Sweeper", VClassUnique, 574, 50000},
	{"Tahoma", VClassLowRider, 566, 50000},
	{"Tampa", VClassSaloons, 549, 50000},
	{"Tanker", VClassIndustrial, 514, 50000},
	{"Taxi", VClassPublic, 420, 50000},
	{"Tornado", VClassLowRider, 576, 50000},
	{"Towtruck", VClassUnique, 525, 50000},
	{"Tractor", VClassIndustrial, 531, 50000},
//	{"Tram", VClassUnique, 449, 50000},
	{"Trashmaster", VClassIndustrial, 408, 50000},
	{"Tropic", VClassBoat, 454, 50000},
	{"Tug", VClassUnique, 583, 50000},
	{"Tug Stairs Trailer", VClassTrailer, 608, 50000},
	{"Turismo", VClassSportCar, 451, 50000},
	{"Uranus", VClassSportCar, 558, 50000},
	{"Utility Trailer", VClassTrailer, 611, 50000},
	{"Utility Van", VClassIndustrial, 552, 50000},
	{"Vincent", VClassSaloons, 540, 50000},
	{"Virgo", VClassSaloons, 491, 50000},
	{"Voodoo", VClassLowRider, 412, 50000},
	{"Vortex", VClassUnique, 539, 50000},
	{"Walton", VClassIndustrial, 478, 50000},
	{"Washington", VClassSaloons, 421, 50000},
	{"Wayfarer", VClassBike, 586, 50000},
	{"Willard", VClassSaloons, 529, 50000},
	{"Windsor", VClassConvertible, 555, 50000},
    {"Yankee", VClassIndustrial, 456, 50000},
	{"Yosemite", VClassIndustrial, 554, 50000},
	{"ZR-350", VClassSportCar, 477, 50000}
};



// This function searches the ABuyableVehicles array to search for the model and returns the index in the array
VehicleBuyable_GetIndex(vModel)
{
	// Loop through all vehicles in the ABuyableVehicles array
	for (new i; i < sizeof(ABuyableVehicles); i++)
	{
	    // Check if the model of the current vehicle is the same as the given model
		if (ABuyableVehicles[i][CarModel] == vModel)
		    return i; // Return the index of the array where the carmodel was found
	}

	return -1;
}

