SA-MP Forums Archive
Attach vehicle object help - 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: Attach vehicle object help (/showthread.php?tid=340666)



Attach vehicle object help - calin1996 - 08.05.2012

How i can attach an object on every bought car?? like,when i buy a DFT, to apear the object whenever a player buy this car from dealer.


Re: Attach vehicle object help - HDFord - 08.05.2012

When you but the car you just have createvehicle right? But do this.
pawn Код:
AttachObjectToVehicle(objectid,(CreateVehicle(,,,,,,)),x,y,z,rot)



Re: Attach vehicle object help - newbienoob - 08.05.2012

https://sampforum.blast.hk/showthread.php?tid=267742


AW: Attach vehicle object help - calin1996 - 08.05.2012

Look:
pawn Код:
new car122 = AddStaticVehicleEx(500, -12.3448, 32.9969, 3.3259, 0.0000, -1, -1, 100);
    new object122 = CreateDynamicObject(19127, -12.45, 34.96, 4.09,   0.00, 0.00, 0.00);
    AttachObjectToVehicle(object122, car122, 0.769999, 0.314999, 1.359998, -0.435003, 0.000000, 0.000000);
Should look like:


Uploaded with ImageShack.us

But Looks like:



Uploaded with ImageShack.us

A litle help please??


AW: Attach vehicle object help - calin1996 - 08.05.2012

A litle help?


AW: Attach vehicle object help - calin1996 - 08.05.2012

UP! please