Create vehicle and addstaticvehicleex - 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: Create vehicle and addstaticvehicleex (
/showthread.php?tid=604877)
Create vehicle and addstaticvehicleex -
ScIrUsna - 11.04.2016
Hi,
What is difference between this? i know that addstaticvehicleex or addstaticvehicle can by used ongamemodeinit only, but if i create vehicles ongamemodeinit with createvehicle it make something different?
Re: Create vehicle and addstaticvehicleex -
saffierr - 11.04.2016
As far as I know not really.
Re: Create vehicle and addstaticvehicleex -
AndySedeyn - 11.04.2016
There is no difference between AddStaticVehicleEx and CreateVehicle other than that static vehicles cannot be created during runtime (only under OnGameModeInit) and that trains cannot be spawned with CreateVehicle.
There is however a slight difference between AddStaticVehicle and AddStaticVehicleEx. The difference is in the parameters:
PHP код:
AddStaticVehicle(modelid, Float:x, Float:y, Float:z, Float:a, color1, color2);
AddStaticVehicleEx(modelid, Float:x, Float:y, Float:z, Float:a, color1, color2, respawn_delay, addsiren = 0);
AddStaticVehicle has no respawn_delay parameter nor an add_siren parameter.
https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx