Problem AttachObjectToVehicle

Hi I have a problem with AttachObjectToVehicle :

Please tell me the coordonates for the siren to be on top of the car(center).

Do it like this and replace the object ID:

pawn Код:
new Float: vSize[3], vehicleid = GetPlayerVehicleID(playerid);
GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, vSize[0], vSize[1], vSize[2]);
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, vSize[2] - 0.75, 0.0, 0.0, 0.0);

Forum Jump:

Users browsing this thread: 1 Guest(s)