AttachObjectToVehicle simple help
#1

Hello.
Ok so i have these codes for attaching objects to my vehicle, now they all work fine, but when i exit my vehicle, i get randomly teleported. i know its this code that is teleporting me because iv'e done HEAPS of tests, now my question is can i fix it and how? iv'e spent two days messing around with this code and i cant stop the teleporting.
-- Code
Quote:

SetPVarInt(playerid, "item1", CreateObject(2099,0,0,0,0,0,0));
SetPVarInt(playerid, "item2", CreateObject(2111,0,0,0,0,0,0));
SetPVarInt(playerid, "item3", CreateObject(2232,0,0,0,0,0,0));
SetPVarInt(playerid, "item4", CreateObject(2232,0,0,0,0,0,0));
SetPVarInt(playerid, "item5", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "item6", CreateObject(18669,0,0,0,0,0,0));
SetPVarInt(playerid, "item7", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "item8", CreateObject(18655,0,0,0,0,0,0));
SetPVarInt(playerid, "item9", CreateObject(18653,0,0,0,0,0,0));
SetPVarInt(playerid, "item10", CreateObject(18654,0,0,0,0,0,0));
SetPVarInt(playerid, "item11", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "item12", CreateObject(2111,0,0,0,0,0,0));
SetPVarInt(playerid, "item13", CreateObject(18102,0,0,0,0,0,0));
SetPVarInt(playerid, "item14", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "item15", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "item16", CreateObject(18646,0,0,0,0,0,0));

AttachObjectToVehicle(GetPVarInt(playerid, "item1"), GetPlayerVehicleID(playerid),-0.000000, 2.345006, -0.279999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item2"), GetPlayerVehicleID(playerid), 0.000000, 0.219999, 0.000000, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item3"), GetPlayerVehicleID(playerid),1.114999, 1.979998, 0.294999, 2.010001, 0.000001, -346.725891);
AttachObjectToVehicle(GetPVarInt(playerid, "item4"), GetPlayerVehicleID(playerid),-1.144999, 1.979998, 0.294999, 2.010001, 0.000001, -378.886047);
AttachObjectToVehicle(GetPVarInt(playerid, "item5"), GetPlayerVehicleID(playerid),-1.259999, -0.899999, -0.314999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item6"), GetPlayerVehicleID(playerid),0.005000, -0.829999, -0.919999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item7"), GetPlayerVehicleID(playerid),0.499999, 3.885041, 1.444998, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item8"), GetPlayerVehicleID(playerid),0.000000, 2.370006, -0.729999, 0.000000, -2.009998, 88.439956);
AttachObjectToVehicle(GetPVarInt(playerid, "item9"), GetPlayerVehicleID(playerid),-0.639999, 2.370006, -0.729999, 0.000000, -2.009998, 88.439956);
AttachObjectToVehicle(GetPVarInt(playerid, "item10"), GetPlayerVehicleID(playerid),0.894999, 2.370006, -0.729999, 0.000000, -2.009998, 88.439956);
AttachObjectToVehicle(GetPVarInt(playerid, "item11"), GetPlayerVehicleID(playerid),1.329998, -0.899999, -0.314999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item12"), GetPlayerVehicleID(playerid),0.000000, -1.899998, 0.000000, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item13"), GetPlayerVehicleID(playerid),-1.404999, 2.541510, 1.472498, 306.660583, 181.905105, -88.124946);
AttachObjectToVehicle(GetPVarInt(playerid, "item14"), GetPlayerVehicleID(playerid),-0.000000, -5.290073, -0.347999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item15"), GetPlayerVehicleID(playerid),-0.000000, -1.869998, 0.401999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(GetPVarInt(playerid, "item16"), GetPlayerVehicleID(playerid),-0.000000, 0.269999, 0.401999, 0.000000, 0.000000, 0.000000);

+REP for help, i REALLY REALLY need help. /Beg My whole FS - http://pastebin.com/5audKZLa
-
Reply
#2

Bump
Reply
#3

Anyone? Please two days of frustration and someone could stop that frustration in Seconds
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)