PDA

View Full Version : How can i attachedobjecttovehicle


JayceonTaylor
20/07/2013, 09:29 AM
Hello everybody. I Make one car with SA-MP Editor. And i add taxi object thereon. But when i entry in my server. Taxi object is on the car door. Where is my error. This is my code on Object :

CreateObject(19311, 193.24170, -6.86930, 2.26210, 4.00000, 18.00000, -273.00000);
How must to be in attach object ?? Please help me : (

JayceonTaylor
20/07/2013, 12:39 PM
any help ?

Fitri
20/07/2013, 12:42 PM
here example

new taxi = CreateVehicle(xxx);
new obj = CreateObject(19311, 193.24170, -6.86930, 2.26210, 4.00000, 18.00000, -273.00000);
AttachObjectToVehicle(xxxx);

http://wiki.sa-mp.com/wiki/AttachObjectToVehicle

JayceonTaylor
20/07/2013, 01:11 PM
What can i add here ?
AttachObjectToVehicle(xxxx);

JayceonTaylor
20/07/2013, 01:15 PM
car1 = CreateVehicle(545,2290.9507,-67.5337,26.0736,0.0070,0,0,600);
car1text = Create3DTextLabel( "Car - JayceonFromCompton", COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi1 = CreateObject(19311, 193.24170, -6.86930, 2.26210, 4.00000, 18.00000, -273.00000);
Attach3DTextLabelToVehicle( car1text, car1, 0.0, 0.0, 0.0);
AttachObjectToVehicle(taxi1, car1, 0.8, 0.0, 0.0, 0.0, 0.0, 0.0);
Where's the my wrong ?

JayceonTaylor
20/07/2013, 02:02 PM
PLEASE HELP ME

JayceonTaylor
20/07/2013, 03:28 PM
UP...

Lordzy
20/07/2013, 05:41 PM
Rather than bumping and asking, you may better be resourceful. There's a tutorial found here in which you could get the help in attaching object to vehicle.

Here's the link anyway:
http://forum.sa-mp.com/showthread.php?t=267742

PS: Search before posting. :)