How to add cars to gang larp latest script???
#1

How to i add cars ? i added cars as AddStaticVehicleEx




// Car Spawns
/*for(new h = 0; h < sizeof(HouseInfo); h++)
{
AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
gCarLock[h+1] = 1;
}//34*/
//-------------------------------------------------------------------------------------------

AddStaticVehicleEx(405,2052.5889,-1903.9319,13.4218,180.9040,84,84,30000); // Driving school 131
AddStaticVehicleEx(405,2055.9761,-1903.8756,13.4219,179.6732,84,84,30000); // Driving school 132
AddStaticVehicleEx(405,2059.1111,-1903.9015,13.4219,180.2001,84,84,30000); // Driving school 133
AddStaticVehicleEx(405,2062.3347,-1903.9109,13.4219,179.3091,84,84,30000); // Driving school 134
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(404,1681.5526,-1035.9557,23.6389,180,123,92,30000); // Rent car 135
AddStaticVehicleEx(404,1685.3273,-1035.4058,23.6409,180,101,101,30000); // Rent car 136
AddStaticVehicleEx(404,1689.9888,-1035.6348,23.6384,180,83,110,30000); // Rent car 137
AddStaticVehicleEx(401,1694.3981,-1034.7706,23.6860,180,74,74,30000); // Rent car 138
AddStaticVehicleEx(401,1703.3409,-1044.8248,23.6857,0,91,91,30000); // Rent car 139
AddStaticVehicleEx(401,1712.7332,-1034.9132,23.6933,180,41,41,30000); // Rent car 140
AddStaticVehicleEx(410,1690.2993,-1044.3937,23.5577,0,10,1,30000); // Rent car 141
AddStaticVehicleEx(410,1681.0250,-1044.6152,23.5528,0,36,1,30000); // Rent car 142
AddStaticVehicleEx(410,1703.0122,-1035.1486,23.5598,180,45,1,30000); // Rent car 143
AddStaticVehicleEx(418,1698.9230,-1044.6398,23.9990,0,114,114,30000); // Rent car 144
AddStaticVehicleEx(418,1707.8655,-1035.1423,24.0034,180,95,95,30000); // Rent car 145
AddStaticVehicleEx(418,1698.7041,-1034.9835,23.9997,180,61,61,30000); // Rent car 146
AddStaticVehicleEx(418,1685.3434,-1044.4137,23.9994,0,119,119,30000); // Rent car 147
AddStaticVehicleEx(436,1694.5468,-1044.4786,23.6760,0,92,1,30000); // Rent car 148
AddStaticVehicleEx(436,1707.9614,-1044.8055,23.6739,0,109,1,30000); // Rent car 149
AddStaticVehicleEx(436,1712.5034,-1044.1735,23.6731,0,11,1,30000); // Rent car 150
AddStaticVehicleEx(458,1709.2091,-1061.1398,23.7847,180,109,1,30000); // Rent car 151
AddStaticVehicleEx(458,1700.3168,-1060.6760,23.7848,180,4,1,30000); // Rent car 152
AddStaticVehicleEx(458,1717.9724,-1069.8695,23.7848,0,30,1,30000); // Rent car 153
AddStaticVehicleEx(458,1691.3545,-1069.6636,23.7849,0,91,1,30000); // Rent car 154
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(532,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155
AddStaticVehicleEx(532,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156
AddStaticVehicleEx(532,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157
AddStaticVehicleEx(532,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(532,-54.1143,86.1869,4.0927,246.1964,16,0,30000); // Drug harvest 159
AddStaticVehicleEx(532,-39.0122,-19.7210,4.0923,66.2487,16,0,30000); // Drug harvest 160
AddStaticVehicleEx(532,-34.2867,-9.5510,4.0883,62.7305,16,0,30000); // Drug harvest 161
AddStaticVehicleEx(532,-83.7403,-17.7843,4.0917,340.3535,16,0,30000); // Drug harvest 162
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 163
AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 164
AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 165
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(407,1750.9323,-1453.7485,13.7822,257.2471,3,1,30000); // FireTruck 166
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(487,1549.7140,-2430.7375,13.7305,154.5285,84,84,30000); // School Helicopter 167
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(487,1902.4270,-2628.4958,13.7092,62.7501,0,0,30000); // Government Helicopter 168
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(574,1668.6692,-1896.1118,13.2720,268.0269,26,26,30000); // Street sweeper 169
AddStaticVehicleEx(574,1668.7383,-1891.4990,13.2720,270.7320,26,26,30000); // Street sweeper 170
AddStaticVehicleEx(574,1668.7280,-1886.8180,13.2720,268.9658,26,26,30000); // Street sweeper 171
//-------------------------------------------------------------------------------------------
AddStaticVehicle(426,604.1163,841.5123,-43.5796,101.6071,7,7); // Reservation 172
AddStaticVehicle(426,608.9548,852.5673,-43.2947,275.9953,7,7); // Reservation 173
AddStaticVehicle(426,614.8525,873.8575,-43.2182,28.9858,7,7); // Reservation 174
AddStaticVehicle(426,612.1263,887.0045,-43.4468,5.1609,7,7); // Reservation 175
AddStaticVehicle(426,588.0759,893.6481,-44.7892,128.3505,7,7); // Reservation 176
AddStaticVehicle(426,579.7737,910.1716,-43.5148,321.5789,7,7); // Reservation 177
AddStaticVehicle(426,604.1163,841.5123,-43.5796,101.6071,7,7); // Reservation 178
AddStaticVehicle(426,608.9548,852.5673,-43.2947,275.9953,7,7); // Reservation 179
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
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(567,1823.0712,-1989.4128,13.4185,0.5796,93,93,30000); // LS 184
AddStaticVehicleEx(468,1829.0889,-1991.2616,13.2157,93.6567,93,93,30000); // LS 185
AddStaticVehicleEx(468,1829.3138,-1988.7825,13.2161,87.6038,93,93,30000); // LS 186
<---------I added them and it says that: You don't have keys for this vehicle , as a Los Surenos 13 Gang leader i am ??
//-------------------------------------------------------------------------------------------
for(new h = 187; 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++)
{
Reply
#2

I don't see any relevance of the problem with the code you provided. The problem can be:
1) You actually don't have the keys
2) Somerhing under OnPlayerEnterVehicle
3) Something in your "Give Key" code.
Reply
#3

I didn't get any help of this now my 3 Sureno cars is like in a dealership , i sit in a sanchez and its for sell as a Tahoma and whats that "Give Key" ?? i didn't find that either by typing it in pawno in larp script `?
Reply
#4

Quote:
Originally Posted by DJDhan
I don't see any relevance of the problem with the code you provided. The problem can be:
1) You actually don't have the keys
2) Somerhing under OnPlayerEnterVehicle
3) Something in your "Give Key" code.
I didn't get any help of this now my 3 Sureno cars is like in a dealership , i sit in a sanchez and its for sell as a Tahoma Huh? and whats that "Give Key" ?? i didn't find that either by typing it in pawno in larp script `?
Reply
#5

does someone know or not ? need to get this work !
Reply
#6

Search your script for this:
Код:
"You don't have keys for this vehicle"
or similar and you will find the variable it's checking for the key.
Reply
#7

Quote:
Originally Posted by DJDhan
Search your script for this:
Код:
"You don't have keys for this vehicle"
or similar and you will find the variable it's checking for the key.
I already got it done , but thanks Anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)