SA-MP Forums Archive
[Ajuda] Spawnar veiculo jб com Objeto - 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] Spawnar veiculo jб com Objeto (/showthread.php?tid=665460)



Spawnar veiculo jб com Objeto - Geremias1533 - 05.04.2019

Queria saber, como faзo para o veicuilo que setei no GM jб spawnar com esses objetos ?

PHP Code:
new myobject CreateObject(2035,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobjectGetPlayerVehicleID(playerid), 0.075000,-0.075000,0.225000,178.199890,91.799980,10.799997); 
Sem precisar de comandos e ou outros meios! Tipo: setei as cordenadas do veiculo, e assim que ligar GM o veiculo estar la jб editado spawnado no mapa


Re: Spawnar veiculo jб com Objeto - RenanMsV - 05.04.2019

pawn Code:
AttachObjectToVehicle(CreateObject(2035,0,0,-1000,0,0,0,100), CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60), 0.075000,-0.075000,0.225000,178.199890,91.799980,10.799997);