SA-MP Forums Archive
[Ajuda] AddVehicleEx x CreateVehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] AddVehicleEx x CreateVehicle (/showthread.php?tid=657258)



AddVehicleEx x CreateVehicle - Mitic0 - 04.08.2018

Qual a diferenзa ente eles ?


Re: AddVehicleEx x CreateVehicle - Koplan - 04.08.2018

https://sampforum.blast.hk/showthread.php?tid=86067
http://forum.sa-mp.com/showpost.php?...77&postcount=3

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
https://sampwiki.blast.hk/wiki/CreateVehicle


Re: AddVehicleEx x CreateVehicle - Vithinn - 04.08.2018

Na minha concepзгo, o AddStaticVehicleEx sу pode ser utilizado na callback OnGameModeInit, ou seja, sгo veнculos prй-carregados, sempre que vocк iniciar o servidor eles serгo criados. Em contrapartida o CreateVehicle pode ser utilizado em qualquer parte do Script, seja por comandos ou pelo prуprio OnGameModeInit.

Segundo a wiki-samp:

CreateVehicle
Creates a vehicle in the world. Can be used in place of AddStaticVehicleEx at any time in the script.

AddStaticVehicleEx
Adds a 'static' vehicle (models are pre-loaded for players)to the gamemode. Differs from AddStaticVehicle in only one way: allows a respawn time to be set for when the vehicle is left unoccupied by the driver.

Deve ser lembrado que os trens sу podem ser adicionados utilizando AddStaticVehicleEx.

Fontes:
https://sampforum.blast.hk/showthread.php?tid=552508
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
https://sampwiki.blast.hk/wiki/CreateVehicle