SA-MP Forums Archive
AddStaticVehicleEx and CreateVehicle - 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: AddStaticVehicleEx and CreateVehicle (/showthread.php?tid=662987)



AddStaticVehicleEx and CreateVehicle - N3mesiS - 18.01.2019

What is the difference between "AddStaticVehicleEx" and "CreateVehicle"? I already read the 'SA-MP Wiki' about both, but I see that they have the same parameters.


Re: AddStaticVehicleEx and CreateVehicle - andrejc999 - 18.01.2019

When you make a static vehicle the model of the vehicle gets pre-loaded. You should probably always use the normal CreateVehicle function and if you want to create a train then you have to use the AddStaticVehicle/Ex function. Take a look at this:
https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx