SA-MP Forums Archive
Vehicle Function - 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: Vehicle Function (/showthread.php?tid=364841)



Vehicle Function - Roddan - 01.08.2012

Hello. What is the Vehicle function to spawn a vehicle? Thanks!


Re: Vehicle Function - willsuckformoney - 01.08.2012

If you mean create a vehicle:
pawn Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);



Re: Vehicle Function - Roddan - 01.08.2012

Thanks. I already had it sorted out!