Why does this happen?
#1

All of my AddStaticVehicles disappear after like 2-3 minutes. I was told that AddStaticVehicles will not disappear so why do they keep re spawning when I do not want them to? Thanks in advance!
Reply
#2

You somewhere got an auto-respawn in your code?
Reply
#3

No he can't Rk. AddStaticVehicle doesn't work like AddStaticVehicleEx (EX supports time respawning)
Reply
#4

Quote:
Originally Posted by Rk_
You somewhere got an auto-respawn in your code?
Nope just AddStaticVehicle

Quote:
Originally Posted by MenaceX^
No he can't Rk. AddStaticVehicle doesn't work like AddStaticVehicleEx (EX supports time respawning)
Any ideas on why this keeps happening? Thanks
Reply
#5

What gamemode is it?
Reply
#6

Are you making sure to post the codes in the right section? Also double check your code
Reply
#7

Check if it's AddStaticVehicle or AddStaticVehicleEx. Also show the vehicles.
Reply
#8

Under OnGameModeInIt I use:

Код:
AddStaticVehicle(522,282.7975,-1161.3087,80.7125,222.8065,126,126); // sofi's bike pink
	AddStaticVehicle(522,1110.6888,-733.4843,99.8093,92.2152,-1,-1); // Admin Bikes
	AddStaticVehicle(525,2120.0103,956.4092,10.6900,269.8077,52,54); // ttruck
	AddStaticVehicle(525,2119.8486,950.4714,10.6900,270.9651,52,54); // ttruck
	AddStaticVehicle(525,2635.3982,1070.0626,10.6974,89.4699,52,54); // ttruck
	AddStaticVehicle(525,2074.8926,1330.5940,10.5490,0.4622,52,54); // ttruck
	AddStaticVehicle(525,2106.2793,2207.1946,10.6974,357.3847,52,54); // ttruck
	AddStaticVehicle(525,2209.6555,2490.5933,10.6974,180.8161,52,54); // ttruck
	AddStaticVehicle(525,2203.9219,2490.5212,10.6974,179.6742,52,54); // ttruck
	AddStaticVehicle(525,1613.1447,2210.3416,10.6974,90.4339,52,54); // ttruck
	AddStaticVehicle(525,1613.4150,2217.1914,10.6974,91.4641,52,54); // ttruck
	AddStaticVehicle(525,2119.3823,2723.9761,10.6974,272.5533,52,54); // ttruck
	AddStaticVehicle(525,2119.2178,2729.7185,10.6974,271.1711,52,54); // ttruck
	AddStaticVehicle(522,261.2935,-1375.4133,52.6792,354.9077,0,0); // pedros bike 2
	AddStaticVehicle(522,266.7060,-1374.1586,52.6791,14.1893,0,0); // pedros bike 1
	AddStaticVehicle(520,296.1154,2028.3707,17.2070,180.9049,74,74); // hydra 5
	AddStaticVehicle(520,316.4774,2024.4564,17.2116,181.6754,74,74); // hydra 6
	AddStaticVehicle(520,316.4513,1988.8361,17.2056,179.8583,74,74); // hydra 7
	AddStaticVehicle(520,295.7383,1991.1313,17.2114,182.5535,74,74); // hydra 8
	AddStaticVehicle(487,1290.5979,-788.7441,96.6355,88.1678,0,8); // my house chopper
	AddStaticVehicle(409,2034.7936,1927.2094,12.1769,357.1161,-1,-1); // Jizzys Limo
	AddStaticVehicle(537,2864.8123,1290.4797,10.6974,0.7245,-1,-1); // train
  AddStaticVehicle(592,1477.4463,1281.6704,10.6012,0.0849,-1,-1); // BIG ASS PLANE!!
	AddStaticVehicle(553,1389.0542,1366.8394,10.5976,0.3204,-1,-1); // plane
	AddStaticVehicle(597,1325.4808,1279.2114,10.6003,359.8058,1,1); // cop car
	AddStaticVehicle(596,1332.2561,1278.9038,10.5991,359.5703,1,1); // cop car
	AddStaticVehicle(599,1310.3401,1268.5951,10.5996,269.8542,1,1); // cop truck
	AddStaticVehicle(427,1326.4215,1268.5542,10.5996,269.8545,-1,-1); // cop armory truck
	AddStaticVehicle(497,1285.9381,1277.5187,10.6005,269.2833,-1,-1); // cop chop
	AddStaticVehicle(497,1289.4773,1295.7242,10.6007,272.4970,-1,-1); // cop chop
	AddStaticVehicle(497,1278.8864,1265.5051,10.5978,358.0698,-1,-1); // cop chop
	AddStaticVehicle(487,1400.2213,1770.6438,10.6007,178.9211,-1,-1); // chop
	AddStaticVehicle(487,1380.2937,1770.2987,10.6012,177.6069,-1,-1); // chop
	AddStaticVehicle(520,-1429.1388,507.5942,18.9526,269.9917,74,74); // army carrier hydra
	AddStaticVehicle(520,-1457.6406,507.5960,18.9836,270.0226,74,74); // army carrier hydra 2
	AddStaticVehicle(520,-1451.1877,493.1295,18.9950,316.4300,74,74); // army carrier hydra 3
	AddStaticVehicle(520,-1424.4001,494.0389,18.9493,332.3671,74,74); // army carrier hydra 4
	AddStaticVehicle(520,-1404.6571,493.7263,18.9462,321.1302,74,74); // army carrier hydra 5
	AddStaticVehicle(432,277.7285,1955.5725,17.6406,270.4124,-1,-1); // army Tank
	AddStaticVehicle(425,306.9011,2039.8710,17.6406,179.5040,-1,-1); // Army Chop
	AddStaticVehicle(425,306.6648,2012.5581,17.6406,179.5040,-1,-1); // Army Chop
	AddStaticVehicle(425,-1308.5406,494.2213,18.2344,0.1270,-1,-1); // Carrier Chop
	AddStaticVehicle(425,-1295.5349,493.3101,18.2344,359.0009,-1,-1); // Carrier Chop
	AddStaticVehicle(425,-1263.3646,491.9859,18.2344,358.5135,-1,-1); // Carrier Chop
	AddStaticVehicle(515,1653.7653,1315.8167,10.6520,180.3905,-1,-1); // semi
	AddStaticVehicle(584,1669.3593,1286.4482,10.6519,270.7656,-1,-1); // semi trailer
	AddStaticVehicle(584,2063.8911,2034.2461,10.5841,269.8439,-1,-1); // trailer
	AddStaticVehicle(584,2578.8823,2067.9531,10.5849,181.7331,-1,-1); // trailer
	AddStaticVehicle(584,2347.9885,2767.2695,10.5833,179.2890,-1,-1); // trailer
	AddStaticVehicle(584,2353.5620,2775.8147,10.5845,180.6157,-1,-1); // trailer
	AddStaticVehicle(584,2360.0625,2769.2029,10.5853,179.7563,-1,-1); // trailer
	AddStaticVehicle(584,2161.6675,2729.3284,10.5842,0.4126,-1,-1); // trailer
	AddStaticVehicle(584,975.8593,2173.6282,10.5835,181.3163,-1,-1); // trailer
	AddStaticVehicle(584,983.2311,2173.4507,10.5849,183.3160,-1,-1); // trailer
	AddStaticVehicle(584,991.0193,2171.4434,10.5834,179.8369,-1,-1); // trailer
	AddStaticVehicle(515,2101.7310,2039.7344,10.5837,270.1647,-1,-1); // semi
	AddStaticVehicle(403,994.2224,2110.6382,10.5832,0.6461,-1,-1); // semi
	AddStaticVehicle(515,988.6813,2112.4963,10.5836,2.9446,-1,-1); // semi
	AddStaticVehicle(403,2588.9275,2056.3462,10.5846,180.7080,-1,-1); // semi
	AddStaticVehicle(515,2371.0708,2747.2866,10.5848,88.3392,-1,-1); // semi
	AddStaticVehicle(403,2390.3418,2746.7288,10.5864,88.3419,-1,-1); // semi
	AddStaticVehicle(515,2394.3704,2734.8367,10.5842,88.6502,-1,-1); // semi
	AddStaticVehicle(403,2369.2549,2735.4287,10.5839,88.6511,-1,-1); // semi
	AddStaticVehicle(515,2147.2878,2745.2415,10.5839,90.5515,-1,-1); // semi
This is all under OnGameModeInIt. I am using a CnR Gamemode. Thanks.
Reply
#9

Are you sure there aint no CarRespawn or anything along the lines of Respawn in your GM?
Reply
#10

If your running a godfather edit, The Godfather has a function that respawns vehicles.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)