Unsichtbar Objekt

  • Folgender Code ich möchte alle Objekte unsichtbar haben aber es Funktioniert nicht

  • Versuch es mal so:



    new gras[35];
    gras[1] = CreateObject(19361, 1814.34583, -1274.48083, 14.49204, 0.00000, 0.00000, -88.86000);
    gras[2] = CreateObject(19361, 1811.14417, -1274.66699, 14.49204, 0.00000, 0.00000, -84.05998);
    gras[3] = CreateObject(19361, 1808.10339, -1275.26855, 14.49204, 0.00000, 0.00000, -71.45993);
    gras[4] = CreateObject(19361, 1805.26013, -1276.57239, 14.49204, 0.00000, 0.00000, -59.21990);
    gras[5] = CreateObject(19361, 1802.62854, -1278.26111, 14.49204, 0.00000, 0.00000, -55.13989);
    gras[6] = CreateObject(19361, 1799.94189, -1280.04224, 14.49204, 0.00000, 0.00000, -55.13989);
    gras[7] = CreateObject(19361, 1797.34448, -1281.89783, 14.49204, 0.00000, 0.00000, -55.13989);
    gras[8] = CreateObject(19361, 1794.81848, -1283.87390, 14.49204, 0.00000, 0.00000, -50.69989);
    gras[9] = CreateObject(19361, 1794.40137, -1284.18909, 14.49204, 0.00000, 0.00000, -50.69989);
    gras[10] = CreateObject(19361, 1789.58447, -1287.99194, 14.49204, 0.00000, 0.00000, -50.69989);
    gras[11] = CreateObject(19361, 1787.08374, -1289.91565, 14.49204, 0.00000, 0.00000, -55.49990);
    gras[12] = CreateObject(19361, 1784.42786, -1291.59229, 14.49204, 0.00000, 0.00000, -59.27991);
    gras[13] = CreateObject(19361, 1781.71301, -1293.16968, 14.49204, 0.00000, 0.00000, -59.27991);
    gras[14] = CreateObject(19361, 1780.73816, -1293.72803, 14.49204, 0.00000, 0.00000, -59.33992);
    gras[15] = CreateObject(19361, 1778.34387, -1295.69495, 14.49204, 0.00000, 0.00000, -41.21992);
    gras[16] = CreateObject(19361, 1814.34583, -1274.48083, 17.54510, 0.00000, 0.00000, -88.86000);
    gras[17] = CreateObject(19361, 1811.14417, -1274.66699, 17.72352, 0.00000, 0.00000, -84.05998);
    gras[18] = CreateObject(19361, 1808.10339, -1275.26855, 17.76927, 0.00000, 0.00000, -71.45993);
    gras[19] = CreateObject(19361, 1805.26013, -1276.57239, 17.69938, 0.00000, 0.00000, -59.21990);
    gras[20] = CreateObject(19361, 1802.62854, -1278.26111, 17.56166, 0.00000, 0.00000, -55.13989);
    gras[21] = CreateObject(19361, 1799.94189, -1280.04224, 17.49269, 0.00000, 0.00000, -55.13989);
    gras[22] = CreateObject(19361, 1797.34448, -1281.89783, 17.47544, 0.00000, 0.00000, -55.13989);
    gras[23] = CreateObject(19361, 1794.40137, -1284.18909, 17.79192, 0.00000, 0.00000, -50.69989);
    gras[24] = CreateObject(19361, 1795.42151, -1283.38489, 17.79192, 0.00000, 0.00000, -50.69989);
    gras[25] = CreateObject(19361, 1789.58447, -1287.99194, 17.91477, 0.00000, 0.00000, -50.69989);
    gras[26] = CreateObject(19361, 1792.03442, -1286.12842, 17.91477, 0.00000, 0.00000, -50.69989);
    gras[27] = CreateObject(19361, 1792.03442, -1286.12842, 16.87182, 0.00000, 0.00000, -50.69989);
    gras[28] = CreateObject(19361, 1787.08374, -1289.91565, 17.76439, 0.00000, 0.00000, -55.49990);
    gras[29] = CreateObject(19361, 1784.42786, -1291.59229, 17.60960, 0.00000, 0.00000, -59.27991);
    gras[30] = CreateObject(19361, 1780.73816, -1293.72803, 17.76733, 0.00000, 0.00000, -59.33992);
    gras[31] = CreateObject(19361, 1781.71301, -1293.16968, 17.73120, 0.00000, 0.00000, -59.27991);
    gras[32] = CreateObject(19361, 1778.34387, -1295.69495, 17.71314, 0.00000, 0.00000, -41.21992);
    gras[33] = CreateObject(19361, 1808.10156, -1275.20850, 17.76927, 0.00000, 0.00000, -71.45993);
    gras[34] = CreateObject(19361, 1808.10156, -1275.20850, 14.47172, 0.00000, 0.00000, -71.45993);
    for(new i = 0;i<sizeof(gras);i++)
    {
    SetObjectMaterial(i,0,8420,"lawnpark","Grass_128HV",0x00FFFFFF);
    }
    return 1;
    }


    Mit freundlichen Grüßen
    JustMe.77 8)

  • Ich kann es ohne Probleme kompilieren. Habe es in OnPlayerConnect reingemacht:



    Mit freundlichen Grüßen
    JustMe.77 8)