#1

I want to attach this object and vehicle to each other

pawn Код:
CreateObject(1575, 0.59, -2.29, 1.16,   0.00, 0.00, 0.00);
CreateVehicle(579, 0.0000, 0.0000, 0.0000, 0.0000, -1, -1, 100);
I've looked at samp wiki but it does not work ??
Reply
#2

Can you show us the code you used to attach them?
Reply
#3

https://sampwiki.blast.hk/wiki/AttachObjectToVehicle

pawn Код:
AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
You will need to create a variable to store the object and vehicle id.

Example which can be run in OnGameModeInit etc...

pawn Код:
new ObjectID, VehcileID;

ObjectID = CreateObject(1575, 0.59, -2.29, 1.16,   0.00, 0.00, 0.00);
VehcileID = CreateVehicle(579, 0.0000, 0.0000, 0.0000, 0.0000, -1, -1, 100);

AttachObjectToVehicle(ObjectID, VehicleID, 0.000,0.000,0.000, 0.000, 0.000, 0.000);
Reply
#4

Thanks guys i have solved out
Reply
#5

But one thing the object is not in the right place?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)