SA-MP Forums Archive
Car spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car spawn (/showthread.php?tid=616411)



Car spawn - ,TomY' - 04.09.2016

Hi. I have warning:
Code:
warning 202: number of arguments does not match definition
Line:
Code:
 car = CreateVehicle(415, Random[0], Random[1], Random[2], -1, -1, 60);
How to fix?


Re: Car spawn - SyS - 04.09.2016

the correct parameters
PHP Code:
(modelidFloat:xFloat:yFloat:zFloat:anglecolor1color2respawn_delayaddsiren=0



Re: Car spawn - saffierr - 04.09.2016

Example:
PHP Code:
CreateVehicle(411150015001518000, -1); 
This will spawn an Infernus(411), at LV airport somewhere with black colour(0, 0).
Siren is optional.