If you using GTA Rp Script, so:
Код:
AddStaticVehicle(426,614.8525,873.8575,-43.2182,28.9858,7,7); // Reservation 180
AddStaticVehicle(426,612.1263,887.0045,-43.4468,5.1609,7,7); // Reservation 181
AddStaticVehicle(426,588.0759,893.6481,-44.7892,128.3505,7,7); // Reservation 182
AddStaticVehicle(426,579.7737,910.1716,-43.5148,321.5789,7,7); // Reservation 183
//-------------------------------------------------------------------------------------------
for(new h = 184; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
}
LinkVehicleToInterior(84, 7);
LinkVehicleToInterior(85, 7);
LinkVehicleToInterior(86, 7);
LinkVehicleToInterior(87, 7);
LinkVehicleToInterior(88, 4);
LinkVehicleToInterior(89, 4);
LinkVehicleToInterior(90, 4);
LinkVehicleToInterior(91, 4);
LinkVehicleToInterior(92, 14);
LinkVehicleToInterior(93, 14);
LinkVehicleToInterior(94, 14);
LinkVehicleToInterior(95, 14);
LinkVehicleToInterior(96, 14);
for(new h = 0; h < sizeof(HouseInfo); h++)
This is part of script... and look these lines:
LinkToVehicleInterior.....
And you can also read about it:
https://sampwiki.blast.hk/wiki/LinkVehicleToInterior