SA-MP Forums Archive
Attacht Object to Vehicle - 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: Attacht Object to Vehicle (/showthread.php?tid=413030)



Attacht Object to Vehicle - IIKINGII - 03.02.2013

How can i attacht a object to vehicle
i got this but this is not working

pawn Код:
new objectid, vehicleid;
objectid = CreateObject(1575, -0.34, -0.56, -0.04,   0.00, 0.00, 0.00);
vehicleid = CreateVehicle(473, 0.0000, 0.0000, 0.0000, 0.0000, -1, -1, 100);
AttachObjectToVehicle(objectid, vehicleid, -0.34, -0.56, -0.04,   0.00, 0.00, 0.00);
SetVehiclePos(vehicleid, 0.00, 0.00, 6.00);



Re: Attacht Object to Vehicle - T0pAz - 03.02.2013

What's not working?


Re: Attacht Object to Vehicle - IIKINGII - 03.02.2013

The object doesnt not show up


Re: Attacht Object to Vehicle - T0pAz - 03.02.2013

It's positioned on the wrong coordinates. And maybe it went inside the car.