18.05.2011, 17:05
First you have to create an object with CreateObject and save it's id
Then you can attach it to a vehicle
I guess you just have to try different offsets to find the most suitable one.
https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
pawn Код:
new myobject;
pawn Код:
myobject = CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
pawn Код:
AttachObjectToVehicle(myobject, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle