Cars don't spawn
#1

I make a new faction named LVPD and i put cars
Код:
		LVCOP1 = AddStaticVehicleEx(598,2282.6733,2424.5544,10.5658,270.4595,0,1, 60000); // lvcar1
		LVCOP2 = AddStaticVehicleEx(598,2297.5735,2424.5786,10.5651,89.4888,0,1, 60000); // lvcar2
		LVCOP3 = AddStaticVehicleEx(598,2290.1335,2424.6072,10.5662,89.5580,0,1, 60000); // lvcar3
		LVCOP4 = AddStaticVehicleEx(598,2297.0515,2451.5918,3.0194,270.9308,0,1, 60000); // lvcar4
		LVCOP5 = AddStaticVehicleEx(598,2296.9856,2456.0493,3.0188,270.0117,0,1, 60000); // lvcar5
		LVCOP6 = AddStaticVehicleEx(598,2307.8398,2429.8960,3.0198,359.8713,0,1, 60000); // lvcar6
		LVCOP7 = AddStaticVehicleEx(598,2299.1492,2429.8884,3.0194,1.3487,0,1, 60000); // lvcar7
		LVCOP8 = AddStaticVehicleEx(598,2290.2693,2429.7834,3.0195,0.8519,0,1, 60000); // lvcar8
		LVCOP9 = AddStaticVehicleEx(523,2285.7991,2429.6787,2.8447,1.0582,0,1, 60000); // lvcar9
		LVCOP10 = AddStaticVehicleEx(523,2294.5581,2429.5657,2.8444,1.9112,0,1, 60000); // lvcar10
		LVCOP11 = AddStaticVehicleEx(523,2303.3882,2429.5852,2.8415,1.3804,0,1, 60000); // lvcar11
		LVCOP12 = AddStaticVehicleEx(523,2296.9126,2460.4185,2.8447,270.1344,0,1, 60000); // lvcar12
		LVCOP13 = AddStaticVehicleEx(523,2296.8223,2464.3855,2.8425,270.1567,0,1, 60000); // lvcar13
		LVCOP14 = AddStaticVehicleEx(528,2277.1194,2429.7302,3.3165,0.0559,0,1, 60000); // lvcar14
		LVCOP15 = AddStaticVehicleEx(528,2272.8611,2429.8052,3.3169,0.5457,0,1, 60000); // lvcar15
		LVCOP16 = AddStaticVehicleEx(598,2268.4690,2429.8591,3.0188,0.2451,0,1, 60000); // lvcar16
		LVCOP17 = AddStaticVehicleEx(523,2264.0728,2429.8152,2.8415,358.1864,0,1, 60000); // lvcar17
		LVCOP18 = AddStaticVehicleEx(528,2259.7725,2429.8669,3.3177,359.7457,0,1, 60000); // lvcar18
		LVCOP19 = AddStaticVehicleEx(598,2255.1733,2429.9558,3.0192,359.1945,0,1, 60000); // lvcar19
		LVCOP20 = AddStaticVehicleEx(523,2250.9324,2429.7336,2.8406,0.0577,0,1, 60000); // lvcar20
		LVCOP21 = AddStaticVehicleEx(528,2246.6155,2429.8557,3.3178,0.4760,0,1, 60000); // lvcar21
		LVCOP22 = AddStaticVehicleEx(598,2282.2222,2441.6060,10.5672,180.5920,0,1, 60000); // lvcar22
		LVCOP23 = AddStaticVehicleEx(598,2277.8081,2441.6458,10.5667,181.0608,0,1, 60000); // lvcar23
		LVCOP24 = AddStaticVehicleEx(528,2269.2097,2477.3169,10.8635,0.3617,0,1, 60000); // lvcar24
		LVCOP25 = AddStaticVehicleEx(528,2273.6086,2477.2673,10.8639,359.9296,0,1, 60000); // lvcar25
		LVCOP26 = AddStaticVehicleEx(523,2282.0781,2477.3840,10.3917,357.7549,0,1, 60000); // lvcar26
		LVCOP27 = AddStaticVehicleEx(523,2269.0327,2442.0371,10.3832,176.7282,0,1, 60000); // lvcar27
		LVCOP28 = AddStaticVehicleEx(528,2251.9417,2477.8525,10.8636,359.8968,0,1, 60000); // lvcar28
		LVCOP29 = AddStaticVehicleEx(598,2251.9426,2459.8440,10.5655,0.8385,0,1, 60000); // lvcar29
		LVCOP30 = AddStaticVehicleEx(598,2260.5112,2478.0391,10.5338,0.3955,0,1, 60000); // lvcar30
		LVCOP31 = AddStaticVehicleEx(497,2336.2029,2384.4067,10.9991,322.4680,0,1, 60000); // lvcar31
And when i enter the server i go to the faction and there is no car.. how can i solve this
Reply
#2

Did you put that under OnGameModeInit? If not, it belongs there.

Wiki page: https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply
#3

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Did you put that under OnGameModeInit? If not, it belongs there.

Wiki page: https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
I put that OnGameModeInit
Reply
#4

AddStaticVehicleEx has 9 parameter, you got 8 there. Put ", 1" behind 60000 (respawn delay). (That last parameter is siren)
Reply
#5

AddStaticVehicleEx has 9 parameters, you got 8 there. Put ", 1" behind 60000 (respawn delay). (That last parameter is a siren). I hope it helped
Reply
#6

Whoops, acinedtally posted reply twice, sorry. (Im on a phone)
Reply
#7

Quote:
Originally Posted by Daveosss
Посмотреть сообщение
Whoops, acinedtally posted reply twice, sorry. (Im on a phone)
As far as I know you can reply once per 120seconds... ?
Reply
#8

Quote:

AddStaticVehicleEx has 9 parameters, you got 8 there. Put ", 1" behind 60000 (respawn delay). (That last parameter is a siren). I hope it helped

9th PARAMETER is addsiren,
Doesn't matter adding it.

And 8th PARAMETER is in SECONDS so
Try 60 instead of 60000.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)