Hilfe (LinkVehicleToInterior)

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo Leute ,


    Ja ich möchte das Donatorautohaus in ein Interior setzen . Dafür benötige ich die Funktion LinkVehicleToInterior bloß


    bekomme ich das nicht hin . Mein Autohäuser sind so im Script festgeleget




    new Kaufliste[66][ahModell] = {
    /********************************************************************************************************************/
    //------------------------------AUTOHAUS Los Santos--------------------------------
    /********************************************************************************************************************/
    {"Stallion",0,439,-1,425000,2500,783.0,-1335.0,13.2,121.1}, //1
    {"Feltzer",0,533,-1,400000,2000,783.0,-1340.0,13.2,121.1}, //2
    {"Windsor",0,555,-1,250000,3500,783.0,-1345.0,13.2,121.1}, //3
    {"Blade",0,536,-1,200000,2500,783.0,-1350.0,13.2,121.1}, //4
    {"Remington",0,534,-1,350000,4500,783.0,-1355.0,13.2,121.1}, //5
    {"Savanna",0,567,-1,350000,5000,783.0,-1360.0,13.2,121.1}, //6
    {"Slamvan",0,535,-1,700000,9000,783.0,-1365.0,13.2,121.1}, //7
    {"Voodoo",0,412,-1,250000,3000,783.0,-1370.0,13.2,121.1}, //8
    {"Huntley",0,579,-1,300000,4000,783.0,-1375.0,13.2,121.1}, //9
    {"Landstalker",0,400,-1,500000,2500,783.0,-1380.0,13.2,121.1}, //10
    {"Clover",0,542,-1,25000,500,765.0,-1360.0,13.4,301.1}, //11
    {"Hummer",0,470,-1,5000000,10000,766.1262,-1369.5405,13.5159,298.9204}, //12
    {"Elegant",0,507,-1,80000,2500,765.0,-1365.0,13.4,301.1},//13
    {"Esperanto",0,419,-1,400000,7000,765.0,-1375.0,13.4,301.1}, //14
    {"Picador",0,600,-1,200000,3500,765.0085,-1380.0187,13.3526,299.1014},//15
    {"Sultan",0,560,-1,650000,10000,765.9438,-1332.8246,13.2492,212.2873},//16
    {"Glendale",0,604,-1,4000,1000,761.0,-1333.0,13.3,211.1},//17
    {"Vincent",0,540,-1,40000,5000,756.0,-1333.0,13.3,211.1},//18
    {"Tampa",0,549,-1,150000,7000,751.0,-1333.0,13.3,211.1},//19
    {"Banshee",0,429,-1,1000000,15000,746.0,-1333.0,13.3,211.1},//20
    {"Sanchez",0,468,-1,7500,2500,750.7272,-1358.3872,13.0996,273.7736},//21
    {"Freeway",0,463,-1,165000,5000,744.0966,-1358.6742,13.0437,269.9239},//22
    /********************************************************************************************************************/
    //--------------------------------AUTOHAUS SAN FIERRO--------------------------------
    /********************************************************************************************************************/
    {"Bullet",1,541,-1,6500000,8000,-1651.3837,1210.3483,6.8873,281.3318},//23
    {"Buffalo",1,402,-1,500000,4000,-1663.6698,1215.2883,7.0619,274.9868},//24
    {"Blista Compact",1,496,-1,350000,6000,-1668.6433,1207.0292,6.9666,309.3031}, //25
    {"Club",1,589,-1,70000,6000,-1665.7941,1222.4698,13.3295,279.0860}, //26
    {"Washington",1,421,-1,2000000,30000,-1660.7167,1217.6417,13.5182,283.0886}, //27
    {"Infernus",1,411,-1,7500000,9000,-1653.2458,1210.7834,13.3960,266.7211},//28
    {"Cheetah",1,415,-1,4000000,6500,-1677.3618,1207.8123,13.4468,208.2220},//29
    {"Jester",1,559,-1,1500000,6500,-1676.0133,1207.1658,20.8270,261.5029},//30
    {"Turismo",1,451,-1,10000000,11000,-1665.1193,1222.7113,20.8877,267.4101},//31
    {"Phoenix",1,603,-1,650000,5000,-1664.4384,1206.8247,20.9525,332.5992},//32
    {"Uranus",1,558,-1,700000,4000,-1661.1907,1217.9640,20.7920,286.1663},//33
    {"Premier",1,426,-1,800000,4500,-1654.3115,1214.8087,20.9150,173.5712},//34
    {"Super GT",1,506,-1,7000000,6500,-1651.6346,1208.2529,20.8694,305.1011},//35
    /********************************************************************************************************************/
    //-----------------------------Spezialautothaus LV------------------------------------
    /********************************************************************************************************************/
    {"Yosemite - Spezialautohaus",2,424,-1,3000000,10000,1984.2828,1027.3347,994.2497,178.2514}, //36
    {"Hotknife - Spezialautohaus",2,434,-1,800000,12000,2139.4243,1408.1345,10.7913,358.9311}, //37
    {"Forklift - Spezialautohaus",2,530,-1,5000000,15000,2132.7720,1407.8776,10.7567,359.7476}, //38
    {"Fortex - Spezialautohaus",2,539,-1,20000000,4000,2120.0151,1408.2417,10.4382,359.6148},//39
    {"Sandking - Spezialautohaus",2,495,-1,5000000,15000,2100.6692,1407.6969,10.6800,359.2742},//40
    {"Caddy - Spezialautohaus",2,457,-1,500000,9000,2113.8684,1408.1627,10.4745,358.1823},//41
    {"Hustler - Spezialautohaus",2,545,-1,1000000,10000,2152.2075,1409.4086,10.6059,359.5880},//42
    {"Bandito - Spezialautohaus",2,568,-1,1000000,10000,2107.3264,1408.2877,10.4868,0.3062},//43
    {"NRG - Spezialautohaus",2,522,-1,500000,25000,2126.3564,1408.1984,10.3900,1.9431},//44
    {"Journey - Spezialautohaus",2,508,-1,30000000,300000,2148.8938,1397.3152,11.2089,180.8468},//45
    {"Quad - Spezialautohaus",2,471,-1,500000,20000,2132.7537,1398.6007,10.2990,177.0183},//46
    {"Monstertruck - Spezialautohaus",2,444,-1,8000000,25000,2126.2769,1398.0121,10.5662,180.9780},//47
    {"Dune - Spezialautohaus",2,573,-1,10000000,25000,2120.0425,1398.3632,11.4631,178.8921},//48
    {"Mower - Spezialautohaus",2,572,-1,200000,6000,2113.4705,1398.5625,10.6186,181.8846},//49
    {"Tractor - Spezialautohaus",2,531,-1,350000,10000,2107.2830,1398.3927,10.8925,179.9387},//50
    {"Tug - Spezialautohaus",2,583,-1,250000,1500,2100.7397,1397.9229,10.6079,179.6847},//51
    {"Kart - Spezialautohaus",2,571,-1,500000,5000,2140.8652,1397.3632,11.4542,182.0574},//52
    /********************************************************************************************************************/
    //-----------------------------Sunshine Autohaus LS------------------------------------
    /********************************************************************************************************************/
    {"Perrenial - Sunshine Cars",3,404,-1,120000,80000,1338.7339,282.9196,19.2959,335.7280},//53
    {"Manana - Sunshine Cars",3,410,-1,220000,110000,1335.7589,283.9199,19.2179,335.9905},//54
    {"Admiral - Sunshine Cars",3,445,-1,400000,200000,1332.9958,285.7851,19.4330,334.5818},//55
    {"Glendale - Sunshine Cars",3,466,-1,190000,95000,1346.7155,287.8387,19.3033,66.1698},//56
    {"Sabre - Sunshine Cars",3,475,-1,520000,260000,1340.9298,290.3745,19.3651,66.9098},//57
    {"Walton - Sunshine Cars",3,478,-1,100000,50000,1335.2089,292.7892,19.5474,65.9039},//58
    {"Virgo - Sunshine Cars",3,491,-1,230000,115000,1320.5864,290.9274,19.3109,155.7529},//59
    {"PCJ-600 - Sunshine Cars",3,461,-1,30000,15000,1322.8719,298.5310,19.1545,157.0364},//60
    {"Messa - Sunshine Cars",3,500,-1,400000,20000,1329.8589,244.6178,19.6642,336.8199},//61
    {"Oceanic - Sunshine Cars",3,467,-1,260000,130000,1338.5715,274.4623,19.3014,156.5043},//62
    {"Rancher - Sunshine Cars",3,489,-1,520000,260000,1335.9292,268.2923,19.7051,155.7162},//63
    {"Burrito - Sunshine Cars",3,482,-1,540000,280000,1333.3086,262.5717,19.6822,155.3102},//64
    {"Camper - Sunshine Cars",3,483,-1,230000,115000,1330.7335,257.0682,19.5537,155.2258},//65
    {"Emperor - Sunshine Cars",3,585,-1,560000,280000,1327.9507,250.9561,19.1479,154.8862}//66
    };


    ich hab das so gemacht


    LinkVehicleToInterior(Kaufliste[36],10);


    unter OnGameModeInit leider bekomme ich dabei ein Error hat jemand noch einen anderen Vorschlag oder kann er mir sagen wie ich


    das machen kann ??






    - JasoN.MendeZ

  • weiß grad nicht genau was du meinst ??


    enum ahCar
    {
    Typ,
    Float:CarPos_x,
    Float:CarPos_y,
    Float:CarPos_z,
    Float:CarRotate,
    Status,
    Lock,
    Carid,
    Paintjob,
    Farbe1,
    Farbe2,
    mod1,
    mod2,
    mod3,
    mod4,
    mod5,
    mod6,
    mod7,
    mod8,
    mod9,
    mod10,
    mod11,
    mod12,
    mod13,
    mod14,
    mod15,
    mod16,
    mod17,
    };

  • Unsinn Chris...
    Das Array enthält nämlich keine Fahrzeug ID sondern jede Arraystelle enthält z.B.
    "{"Glendale",0,604,-1,4000,1000,761.0,-1333.0,13.3,211.1}"


    @ Threadstarter
    Ergänze im enum einfach eine InteriorID, bei allen trägste eine 0 ein außer da wo du sie brauchst.
    Beim erstellen der Autos setzt du es dann einfach in das Interior.