Du musst es global sprich oben im Script definieren .
Hab ich schon geschaft hab vergessen die new über die attach zu bringen neues Problem wie werden die objekte an das dinghy gebracht?
new objectid = CreateObject(18981, 1244.86450, -2621.29468, 1.05910, 0.00000, 90.00000, 0.00000);
new objectid1 = CreateObject(18981, 1223.07068, -2621.25024, 1.05910, 0.00000, 90.00000, 0.00000);
new objectid2 = CreateObject(7191, 1234.50037, -2633.35620, 2.94250, 0.00000, 0.00000, 90.00000);
new objectid3 = CreateObject(7191, 1234.51978, -2609.20435, 2.94250, 0.00000, 0.00000, 90.00000);
new objectid4 = CreateObject(7191, 1234.59058, -2620.58521, 2.94250, 0.00000, 0.00000, 90.00000);
new objectid5 = CreateObject(18763, 1243.07629, -2610.77393, 3.73020, 0.00000, 0.00000, 0.00000);
new objectid6 = CreateObject(18763, 1240.44861, -2610.80908, 3.73020, 0.00000, 0.00000, 0.00000);
new objectid7 = CreateObject(18763, 1238.07190, -2610.81055, 3.73020, 0.00000, 0.00000, 0.00000);
new objectid8 = CreateObject(18763, 1235.72449, -2610.82764, 3.73020, 0.00000, 0.00000, 0.00000);
AttachObjectToVehicle(objectid, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid1, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid2, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid3, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid4, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid5, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid6, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid7, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(objectid8, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);