Attaching an object on train.
#1

Hey.
I wanted to know is it possible to spawn an object on trains trailers.
My idea was to Get the vehicle ID, then get the trailer id and in the end attach the object to the trailer. But it does not seem to work.

Код:
CMD:SpawnContainers(playerid,params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
	new trailerid = GetVehicleTrailer(vehicleid);
	new objectid1 = CreateObject(3572, 0.00000, 4.40000, 0.30000,   0.00000, 0.00000, 90.00000);
	new objectid2 = CreateObject(3572, 0.00000, -4.00000, 0.30000,   0.00000, 0.00000, 90.00000);

	AttachObjectToVehicle(objectid1, trailerid, 0.00000, 4.40000, 0.30000,   0.00000, 0.00000, 90.00000);
	AttachObjectToVehicle(objectid2, trailerid, 0.00000, -4.00000, 0.30000,   0.00000, 0.00000, 90.00000);

}
Is it even possible?
Reply


Messages In This Thread
Attaching an object on train. - by GuitarMan - 06.10.2015, 23:20
Re: Attaching an object on train. - by Dusan01 - 07.10.2015, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)