It could be the timer that is set for addstaticvehicles. The streamer that is built in sa-mp has a setting that is option that lets you choose how long a car should be there only it resets to the original spot that you spawned it at.
Do you use CreateVehicle? AddStaticVehicle? AddStaticVehicleEx? it would be helpful if you can track down the cars that you notice the problem with and copy and paste one of the lines where you create these vehicles. |
public OnGameModeInit() { /* =======================JOB CAR============= */ // RENT CARS rentCars[0] = CreateVehicle(492,1844.4304,-1871.3157,13.1698,0.0908,77,26, 700); // 0 rentCars[1] = CreateVehicle(492,1838.0182,-1871.6685,13.1714,0.1502,77,26, 700); // 1 rentCars[2] = CreateVehicle(492,1560.6156,-2241.2144,13.3295,270.7099,77,26, 700); // 2 rentCars[3] = CreateVehicle(492,1560.6720,-2325.3484,13.3308,270.7893,77,26, 700); // 3 // CAR JOB TAXI taxiCars[0] = CreateVehicle(420,1777.9509,-1887.5083,13.1661,179.7771,6,1, 700); // 0 taxiCars[1] = CreateVehicle(420,1783.0144,-1887.5060,13.1703,180.0359,6,1, 700); // 1 taxiCars[2] = CreateVehicle(420,1776.9264,-1908.3225,13.1654,89.7838,6,1, 700); // 2 taxiCars[3] = CreateVehicle(420,1776.9242,-1916.6851,13.1672,89.5168,6,1, 700); // 3 taxiCars[4] = CreateVehicle(420,1807.0823,-1909.6344,13.2585,357.7563,6,1, 700); // 4 taxiCars[5] = CreateVehicle(420,1807.1334,-1920.6967,13.2526,0.3419,6,1, 700); // 5 // CAR JOB MECHANIC mecCars[0] = CreateVehicle(525,1913.5763,-1868.4379,13.4424,179.5349,17,20, 600); // 0 mecCars[1] = CreateVehicle(525,1921.3293,-1861.0171,13.4290,359.7484,17,20, 600); // 1 mecCars[2] = CreateVehicle(525,1904.4182,-1869.0015,13.4396,0.2782,17,20, 600); // 2 mecCars[3] = CreateVehicle(525,1919.5134,-1849.0371,13.4199,254.5784,17,20, 600); // 3 // CAR JOB GARBAGE garbageCars[0] = CreateVehicle(408,2157.5408,-1970.3051,14.0814,270.6715,26,26, 400); // 0 garbageCars[1] = CreateVehicle(408,2139.0503,-1970.5222,14.0943,270.6668,26,26, 400); // 1 garbageCars[2] = CreateVehicle(408,2176.2385,-1987.9558,14.0914,231.1065,26,26, 400); // 2 garbageCars[3] = CreateVehicle(408,2192.1621,-2000.2411,14.0940,2.8102,26,26, 400); // 3 // CAR JOB DELIVERY deliveryCars[0] = CreateVehicle(414,2461.3369,-2116.5952,13.6436,359.2062,28,1, 400); // 0 deliveryCars[1] = CreateVehicle(414,2484.7998,-2116.9031,13.6406,359.2306,28,1, 400); // 1 deliveryCars[2] = CreateVehicle(414,2508.8208,-2117.1074,13.6407,359.3972,28,1, 400); // 2 deliveryCars[3] = CreateVehicle(456,2477.5688,-2083.0898,13.7201,89.7595,91,63, 400); // 3 deliveryCars[4] = CreateVehicle(456,2493.6421,-2083.1536,13.7209,89.7595,91,63, 400); // 4 deliveryCars[5] = CreateVehicle(499,2427.6335,-2118.5320,13.5433,359.9479,109,32, 400); // 5 deliveryCars[6] = CreateVehicle(499,2427.6338,-2105.6169,13.5358,359.9479,109,32, 400); // 6 // CAR JOB FOOD VENDOR vendorCars[0] = CreateVehicle(588,783.2863,-1633.9053,13.2892,89.7723,1,1, 400); // 0 vendorCars[1] = CreateVehicle(588,788.5671,-1613.6740,13.2860,179.8945,1,1, 400); // 1 // DMV dmvCars[0] = CreateVehicle(405,2062.3252,-1903.9646,13.4219,181.3871,1,1, 400); // 0 dmvCars[1] = CreateVehicle(405,2059.2510,-1903.9502,13.4219,180.4167,1,1, 400); // 1 dmvCars[2] = CreateVehicle(405,2052.4612,-1903.9640,13.4219,180.6599,1,1, 400); // 2 dmvCars[3] = CreateVehicle(405,2062.2188,-1919.6602,13.4219,359.6356,1,1, 400); // 3
rentCars[0] = CreateVehicle(492,1844.4304,-1871.3157,13.1698,0.0908,77,26, 700); // 0
if a driver is not in this car for 700 milliseconds it will re-spawn on its own. Set it to -1 to prevent automatic re-spawning |
Perhaps the virtual world changes. Check for any virtual world changes in your script.
|
public OnPlayerUpdate(playerid)
{
//Your Codes
return 1;
}