16.03.2013, 11:20
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
You will need to create a variable to store the object and vehicle id.
Example which can be run in OnGameModeInit etc...
pawn Код:
AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
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);