30.04.2012, 06:07
You using this streamer: https://sampforum.blast.hk/showthread.php?tid=102865
If you read the thread, you will establish the fact that this include does not posses a AttachDynamicObjectToVehicle, so when you use the default function, it does not respond/do anything.
Although there is a obvious solution to this problem, may i hint with a bit of code?
Note: NOT tested.
Then simply, DestroyObject and CreateDynamicObject to "Detach".
You get the point tho.
If you read the thread, you will establish the fact that this include does not posses a AttachDynamicObjectToVehicle, so when you use the default function, it does not respond/do anything.
Although there is a obvious solution to this problem, may i hint with a bit of code?
Код:
stock AttachDynamicObjectToVehicle(vehicleid, objectid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ) { DestroyDynamicObject(objectid);// :O new Float:x, Float:y, Float:z; GetVehiclePos(vehicleid, x, y, z); new object = CreateObject(objectid, x + 2.0, y + 2.0, z, 0.0, 0.0, 100.0);//Make sure you set the draw distance to suit your fancy. (Default: 100.0) AttachObjectToVehicle(object, vehicleid, OffsetX, OffsetY, OffsetZ, RotX, RotY, RotZ); return 1; }
Then simply, DestroyObject and CreateDynamicObject to "Detach".
You get the point tho.