[Ajuda] AddVehicleEx x CreateVehicle
#1

Qual a diferenзa ente eles ?
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)