How can i attachedobjecttovehicle
#1

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 :

pawn Код:
CreateObject(19311, 193.24170, -6.86930, 2.26210,   4.00000, 18.00000, -273.00000);
How must to be in attach object ?? Please help me : (
Reply
#2

any help ?
Reply
#3

here example
pawn Код:
new taxi = CreateVehicle(xxx);
new obj = CreateObject(19311, 193.24170, -6.86930, 2.26210,   4.00000, 18.00000, -273.00000);
AttachObjectToVehicle(xxxx);
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
Reply
#4

What can i add here ?
AttachObjectToVehicle(xxxx);
Reply
#5

pawn Код:
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 ?
Reply
#6

PLEASE HELP ME
Reply
#7

UP...
Reply
#8

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:
https://sampforum.blast.hk/showthread.php?tid=267742

PS: Search before posting.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)