AddStaticVehicle & 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: AddStaticVehicle & CreateVehicle (
/showthread.php?tid=587003)
AddStaticVehicle & CreateVehicle -
Prolific - 27.08.2015
Good afternoon, elite sa-mp.
2 days ago I wondered, how to add trains in samp, so, in wiki I find topic where written "Only create trains with AddStaticVehicle/Ex", why is this and why i can't use CreateVehicle to add trains?
And how many diffrens between CreateVehicle and AddStaticVehicle?
Sorry for my bad English)
Re: AddStaticVehicle & CreateVehicle -
DoDler - 27.08.2015
Here is everything you need
https://sampforum.blast.hk/showthread.php?tid=261581
Re: AddStaticVehicle & CreateVehicle -
Vince - 27.08.2015
I think the difference is mostly internal and it probably has something to do with improving load times. AddStaticVehicle may use opcode
014B internally, while CreateVehicle may use opcode
00A5.
Re: AddStaticVehicle & CreateVehicle -
Prolific - 27.08.2015
Thank for asks, but a can add vehicles buy handmade command /veh and if i use AddStaticVehicle vehicle appear in game contrary this topic
https://sampforum.blast.hk/showthread.php?tid=261581
Not only in OnGameModeInit but in any part of code