Vehicles in Jefferson
#1

Hi, I have some vehicles in Jefferson parked in the motel. In my gamemode you spawn in the motel, and when you exit it you see al the cars falling underground and respawning on the ground in the middle of the streets!
What can I do to make it working?

All my vehicles:

RESPAWN_DELAY = 300000
DEFAULT_COLOR1 and 2 = -1

pawn Код:
AddStaticVehicleEx(412, 2217.4792, -1161.9362, 25.4970, 89.7753, 7, 7, RESPAWN_DELAY); // AutoID1
    AddStaticVehicleEx(418, 2206.3330, -1169.1520, 25.4996, 269.3844, 12, 12, RESPAWN_DELAY); // AutoID2
    AddStaticVehicleEx(426, 2228.1218, -1152.7565, 25.5926, 88.6797, 125, 125, RESPAWN_DELAY); // AutoID3
    AddStaticVehicleEx(405, 2229.0410, -1173.5351, 25.5064, 91.3285, 16, 16, RESPAWN_DELAY); // Vehicleid4
    AddStaticVehicleEx(466, 2149.3486, -1143.0463, 24.7625, 87.7970, 3, 3, RESPAWN_DELAY); // Vehicleid4
    AddStaticVehicleEx(474, 2147.2663, -1165.9156, 23.5905, 272.2704, 38, 38, RESPAWN_DELAY); // Vehicleid5
    AddStaticVehicleEx(492, 2161.1733, -1182.4840, 23.5906, 91.4173, 1, 1, RESPAWN_DELAY); // Vehicleid6
    AddStaticVehicleEx(516, 2147.9946, -1198.8585, 23.6580, 268.3374, 113, 113, RESPAWN_DELAY); // Vehicleid7
    AddStaticVehicleEx(555, 2126.0312, -1143.5461, 24.6507, 359.3959, 93, 93, RESPAWN_DELAY); // Vehicleid8_SOLO_AFFITTO
    AddStaticVehicleEx(566, 2051.9345, -1120.4058, 24.4435, 178.8706, 85, 85, RESPAWN_DELAY); // Vehicleid9
    AddStaticVehicleEx(567, 2002.4984, -1275.9185, 23.5911, 0.2332, 118, 118, RESPAWN_DELAY); // Vehicleid10
    AddStaticVehicleEx(576, 2008.1258, -1275.5594, 23.5926, 0.8550, 126, 126, RESPAWN_DELAY); // Vehicleid11
    AddStaticVehicleEx(589, 1982.0140, -1275.8614, 23.5912, 359.9233, 16, 16, RESPAWN_DELAY); // Vehicleid12
    AddStaticVehicleEx(587, 1997.3399, -1319.2316, 22.2861, 181.0242, 3, 3, RESPAWN_DELAY); // Vehicleid13
    AddStaticVehicleEx(416, 2036.1796, -1424.1135, 17.1415, 179.7077, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid14Ambulanza
    AddStaticVehicleEx(416, 2024.9241, -1410.8958, 17.1419, 90.0291, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid15Ambulanza
    AddStaticVehicleEx(416, 2000.9344, -1414.2132, 17.1410, 179.8659, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid16Ambulanza
    AddStaticVehicleEx(544, 1752.4212, -1455.8217, 13.6973, 268.6581, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid17Pompieri
    AddStaticVehicleEx(416, 1181.1589, -1338.8411, 13.8827, 269.2793, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid18Ambulanza
    AddStaticVehicleEx(416, 1180.9647, -1308.5035, 13.8304, 272.0734, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid19_Ambulanza
    AddStaticVehicleEx(596, 1601.3865, -1688.0587, 5.6609, 90.0186, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY);  // Vehicleid20_Polizia
    AddStaticVehicleEx(596, 1600.7169, -1700.1556, 5.6633, 89.5590, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY);  // Vehicleid21_Polizia
    AddStaticVehicleEx(596, 1583.3868, -1710.3002, 5.6625, 0.0000, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY);   // Vehicleid22_Polizia
    AddStaticVehicleEx(596, 1570.2294, -1710.3836, 5.6593, 359.2044, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid23_Polizia
    AddStaticVehicleEx(427, 1531.2930, -1683.7728, 6.0402, 271.4031, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid24_Enforcer
    AddStaticVehicleEx(427, 1538.7745, -1648.0686, 6.0400, 180.4570, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid25_Enforcer
    AddStaticVehicleEx(523, 1584.7502, -1675.0018, 5.4683, 274.1183, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid26_HPV1000
    AddStaticVehicleEx(523, 1584.4608, -1680.4219, 5.4590, 296.7451, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid27_HPV1000
    AddStaticVehicleEx(523, 1586.1699, -1671.3105, 5.4676, 272.4633, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehiceid278_HPV1000
    AddStaticVehicleEx(523, 1586.3397, -1667.6361, 5.4628, 268.4439, DEFAULT_COLOR1, DEFAULT_COLOR2, RESPAWN_DELAY); // Vehicleid29_HPV1000
    AddStaticVehicleEx(402, 2107.069, -1365.996, 23.817, 180.944, 6, 6, RESPAWN_DELAY); // AutoNormale
    AddStaticVehicleEx(410, 2088.418, -1342.451, 23.818, 90.714, 5, 5, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(412, 2102.899, -1276.781, 25.325, 179.533, 65, 65, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(419, 2030.083, -1293.402, 20.766, 181.153, 121, 121, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(421, 1803.183, -1714.590, 13.369, 181.761, 65, 65, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(426, 1733.085, -1748.477, 13.359, 180.320, 3, 3, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(429, 1836.636, -1855.230, 13.222, 358.885, 2, 2, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(436, 1841.357, -1870.115, 13.223, 359.436, 19, 19, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(445, 1343.581, -1751.363, 13.197, 0.734, 63, 63, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(451, 1358.850, -1750.644, 13.209, 180.215, 126, 126, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(458, 1283.651, -1531.009, 13.388, 178.722, 118, 118, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(466, 1272.899, -1539.194, 13.392, 87.234, 15, 15, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(467, 1213.986, -876.392, 42.743, 188.346, 79, 79, RESPAWN_DELAY); // Auto_Normale
    AddStaticVehicleEx(435, 1180.057, -881.814, 43.028, 11.108, 112, 112, RESPAWN_DELAY); // Camion
    AddStaticVehicleEx(586, 1222.607, -886.273, 42.469, 279.178, 62, 62, RESPAWN_DELAY); // Moto_Normale
    AddStaticVehicleEx(448, 1229.115, -917.531, 42.470, 189.908, 3, 3, RESPAWN_DELAY); // Moto_Pizzette_Domic
    AddStaticVehicleEx(448, 1226.633, -918.413, 42.478, 188.308, 3, 3, RESPAWN_DELAY); // Moto_Pizzette_Domic
    AddStaticVehicleEx(521, 1070.688, -1102.348, 24.294, 268.336, 86, 86, RESPAWN_DELAY); // Moto_Veloce
    AddStaticVehicleEx(461, 1454.435, -1753.828, 13.109, 175.748, 1, 1, RESPAWN_DELAY); // Moto_Veloce
    AddStaticVehicleEx(462, 1724.517, -1684.914, 13.072, 359.465, 117, 117, RESPAWN_DELAY); // Moto_Normale
    AddStaticVehicleEx(463, 1910.617, -1116.047, 25.225, 0.517, 65, 65, RESPAWN_DELAY); // Moto_Normale
    AddStaticVehicleEx(521, 2254.651, -1273.232, 24.930, 179.029, 81, 81, RESPAWN_DELAY); // Moto
    AddStaticVehicleEx(471, 2319.473, -1716.982, 13.108, 179.193, 129, 129, RESPAWN_DELAY); // Moto_normale
    AddStaticVehicleEx(510, 2390.137, -1713.617, 13.188, 178.270, 0, 0, RESPAWN_DELAY); // Moto
    AddStaticVehicleEx(468, 2515.829, -1682.474, 12.979, 43.842, 1, 1, RESPAWN_DELAY); // Moto
    AddStaticVehicleEx(602, 2509.889, -1671.847, 13.180, 345.318, 0, 0, RESPAWN_DELAY); // Auto
    AddStaticVehicleEx(589, 2506.390, -1651.270, 13.456, 138.512, 80, 80, RESPAWN_DELAY); // Auto
    AddStaticVehicleEx(420, 1777.875, -1886.281, 13.158, 271.203, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(420, 1778.377, -1893.453, 13.159, 269.004, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(420, 1778.586, -1900.986, 13.158, 269.076, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(420, 1778.535, -1909.726, 13.160, 268.154, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(420, 1802.326, -1907.849, 13.170, 88.899, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(420, 1802.908, -1913.965, 13.168, 89.218, 6, 6, RESPAWN_DELAY); // Taxi
    AddStaticVehicleEx(448, 1228.912, -913.749, 42.497, 185.836, 3, 3, RESPAWN_DELAY); // pizzaboy
    AddStaticVehicleEx(448, 1226.680, -914.644, 42.499, 186.987, 3, 3, RESPAWN_DELAY); // pizzaboy
    AddStaticVehicleEx(448, 2122.753, -1783.433, 12.987, 359.216, 3, 3, RESPAWN_DELAY); // pizzaboy
    AddStaticVehicleEx(448, 2119.293, -1783.286, 12.987, 359.525, 3, 3, RESPAWN_DELAY); // pizzaboy
    AddStaticVehicleEx(448, 2115.272, -1782.991, 12.987, 359.406, 3, 3, RESPAWN_DELAY); // pizzaboy
Reply
#2

Maybe they colide with each other or objects; that tend to move vehicles

Are you sure there is enough spaceing between vehicles and objects ?
Reply
#3

Try to paste the cars in your gamemode, and see with your eyes .... I don't really know whats up with that
Reply
#4

It's more like a client problem; your client is too slow at loading the surrounding, so the cars fall through the floor. The server, however, still thinks that these cars are at their original position. You could try to raise the Z value by 1, so these cars spawn a little higher and the game has somewhat more time to load the surroundings.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
It's more like a client problem; your client is too slow at loading the surrounding, so the cars fall through the floor. The server, however, still thinks that these cars are at their original position. You could try to raise the Z value by 1, so these cars spawn a little higher and the game has somewhat more time to load the surroundings.
Thankyou I've thought this but never tried, I'll try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)