#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


Messages In This Thread
Help - by IIKINGII - 16.03.2013, 11:15
Re: Help - by Jstylezzz - 16.03.2013, 11:20
Re: Help - by Bicentric - 16.03.2013, 11:20
Re: Help - by IIKINGII - 16.03.2013, 11:38
Re: Help - by IIKINGII - 16.03.2013, 12:00

Forum Jump:


Users browsing this thread: 3 Guest(s)