dsn0726

Vehicle code assignment (Vehicle ID) - (1.41 Update)

Recommended Posts

VehicleNum.js

var vehicle_dict = {};
vehicle_dict['adder'] = 3078201489;	//	Default (0~297)
vehicle_dict['airbus'] = 1283517198;
vehicle_dict['airtug'] = 1560980623;
vehicle_dict['akuma'] = 1672195559;
vehicle_dict['ambulance'] = 1171614426;
vehicle_dict['annihilator'] = 837858166;
vehicle_dict['armytanker'] = 3087536137;
vehicle_dict['armytrailer'] = 2818520053;
vehicle_dict['armytrailer2'] = 2657817814;
vehicle_dict['asea'] = 2485144969;
vehicle_dict['asea2'] = 2487343317;
vehicle_dict['asterope'] = 2391954683;
vehicle_dict['bagger'] = 2154536131;
vehicle_dict['baletrailer'] = 3895125590;
vehicle_dict['baller'] = 3486135912;
vehicle_dict['baller2'] = 142944341;
vehicle_dict['banshee'] = 3253274834;
vehicle_dict['barracks'] = 3471458123;
vehicle_dict['barracks2'] = 1074326203;
vehicle_dict['bati'] = 4180675781;
vehicle_dict['bati2'] = 3403504941;
vehicle_dict['benson'] = 2053223216;
vehicle_dict['bfinjection'] = 1126868326;
vehicle_dict['biff'] = 850991848;
vehicle_dict['bison'] = 4278019151;
vehicle_dict['bison2'] = 2072156101;
vehicle_dict['bison3'] = 1739845664;
vehicle_dict['bjxl'] = 850565707;
vehicle_dict['blazer'] = 2166734073;
vehicle_dict['blazer2'] = 4246935337;
vehicle_dict['blazer3'] = 3025077634;
vehicle_dict['blimp'] = 4143991942;
vehicle_dict['blista'] = 3950024287;
vehicle_dict['bmx'] = 1131912276;
vehicle_dict['boattrailer'] = 524108981;
vehicle_dict['bobcatxl'] = 1069929536;
vehicle_dict['bodhi2'] = 2859047862;
vehicle_dict['boxville'] = 2307837162;
vehicle_dict['boxville2'] = 4061868990;
vehicle_dict['boxville3'] = 121658888;
vehicle_dict['buccaneer'] = 3612755468;
vehicle_dict['buffalo'] = 3990165190;
vehicle_dict['buffalo2'] = 736902334;
vehicle_dict['bulldozer'] = 1886712733;
vehicle_dict['bullet'] = 2598821281;
vehicle_dict['burrito'] = 2948279460;
vehicle_dict['burrito2'] = 3387490166;
vehicle_dict['burrito3'] = 2551651283;
vehicle_dict['burrito4'] = 893081117;
vehicle_dict['burrito5'] = 1132262048;
vehicle_dict['bus'] = 3581397346;
vehicle_dict['buzzard'] = 788747387;
vehicle_dict['buzzard2'] = 745926877;
vehicle_dict['cablecar'] = 3334677549;
vehicle_dict['caddy'] = 1147287684;
vehicle_dict['caddy2'] = 3757070668;
vehicle_dict['camper'] = 1876516712;
vehicle_dict['carbonizzare'] = 2072687711;
vehicle_dict['carbonrs'] = 11251904;
vehicle_dict['cargobob'] = 4244420235;
vehicle_dict['cargobob2'] = 1621617168;
vehicle_dict['cargobob3'] = 1394036463;
vehicle_dict['cargoplane'] = 368211810;
vehicle_dict['cavalcade'] = 2006918058;
vehicle_dict['cavalcade2'] = 3505073125;
vehicle_dict['cheetah'] = 2983812512;
vehicle_dict['coach'] = 2222034228;
vehicle_dict['cogcabrio'] = 330661258;
vehicle_dict['comet2'] = 3249425686;
vehicle_dict['coquette'] = 108773431;
vehicle_dict['cruiser'] = 448402357;
vehicle_dict['crusader'] = 321739290;
vehicle_dict['cuban800'] = 3650256867;
vehicle_dict['cutter'] = 3288047904;
vehicle_dict['daemon'] = 2006142190;
vehicle_dict['dilettante'] = 3164157193;
vehicle_dict['dilettante2'] = 1682114128;
vehicle_dict['dinghy'] = 1033245328;
vehicle_dict['dinghy2'] = 276773164;
vehicle_dict['dloader'] = 1770332643;
vehicle_dict['docktrailer'] = 2154757102;
vehicle_dict['docktug'] = 3410276810;
vehicle_dict['dominator'] = 80636076;
vehicle_dict['double'] = 2623969160;
vehicle_dict['dubsta'] = 1177543287;
vehicle_dict['dubsta2'] = 3900892662;
vehicle_dict['dump'] = 2164484578;
vehicle_dict['dune'] = 2633113103;
vehicle_dict['dune2'] = 534258863;
vehicle_dict['duster'] = 970356638;
vehicle_dict['elegy2'] = 3728579874;
vehicle_dict['emperor'] = 3609690755;
vehicle_dict['emperor2'] = 2411965148;
vehicle_dict['emperor3'] = 3053254478;
vehicle_dict['entityxf'] = 3003014393;
vehicle_dict['exemplar'] = 4289813342;
vehicle_dict['f620'] = 3703357000;
vehicle_dict['faggio2'] = 55628203;
vehicle_dict['fbi'] = 1127131465;
vehicle_dict['fbi2'] = 2647026068;
vehicle_dict['felon'] = 3903372712;
vehicle_dict['felon2'] = 4205676014;
vehicle_dict['feltzer2'] = 2299640309;
vehicle_dict['firetruk'] = 1938952078;
vehicle_dict['fixter'] = 3458454463;
vehicle_dict['flatbed'] = 1353720154;
vehicle_dict['forklift'] = 1491375716;
vehicle_dict['fq2'] = 3157435195;
vehicle_dict['freight'] = 1030400667;
vehicle_dict['freightcar'] = 184361638;
vehicle_dict['freightcont1'] = 920453016;
vehicle_dict['freightcont2'] = 240201337;
vehicle_dict['freightgrain'] = 642617954;
vehicle_dict['freighttrailer'] = 3517691494;
vehicle_dict['frogger'] = 744705981;
vehicle_dict['frogger2'] = 1949211328;
vehicle_dict['fugitive'] = 1909141499;
vehicle_dict['fusilade'] = 499169875;
vehicle_dict['futo'] = 2016857647;
vehicle_dict['gauntlet'] = 2494797253;
vehicle_dict['gburrito'] = 2549763894;
vehicle_dict['graintrailer'] = 1019737494;
vehicle_dict['granger'] = 2519238556;
vehicle_dict['gresley'] = 2751205197;
vehicle_dict['habanero'] = 884422927;
vehicle_dict['handler'] = 444583674;
vehicle_dict['hauler'] = 1518533038;
vehicle_dict['hexer'] = 301427732;
vehicle_dict['hotknife'] = 37348240;
vehicle_dict['infernus'] = 418536135;
vehicle_dict['ingot'] = 3005245074;
vehicle_dict['intruder'] = 886934177;
vehicle_dict['issi2'] = 3117103977;
vehicle_dict['jackal'] = 3670438162;
vehicle_dict['jb700'] = 1051415893;
vehicle_dict['jet'] = 1058115860;
vehicle_dict['jetmax'] = 861409633;
vehicle_dict['journey'] = 4174679674;
vehicle_dict['khamelion'] = 544021352;
vehicle_dict['landstalker'] = 1269098716;
vehicle_dict['lazer'] = 3013282534;
vehicle_dict['lguard'] = 469291905;
vehicle_dict['luxor'] = 621481054;
vehicle_dict['mammatus'] = 2548391185;
vehicle_dict['manana'] = 2170765704;
vehicle_dict['marquis'] = 3251507587;
vehicle_dict['maverick'] = 2634305738;
vehicle_dict['mesa'] = 914654722;
vehicle_dict['mesa2'] = 3546958660;
vehicle_dict['mesa3'] = 2230595153;
vehicle_dict['metrotrain'] = 868868440;
vehicle_dict['minivan'] = 3984502180;
vehicle_dict['mixer'] = 3510150843;
vehicle_dict['mixer2'] = 475220373;
vehicle_dict['monroe'] = 3861591579;
vehicle_dict['mower'] = 1783355638;
vehicle_dict['mule'] = 904750859;
vehicle_dict['mule2'] = 3244501995;
vehicle_dict['nemesis'] = 3660088182;
vehicle_dict['ninef'] = 1032823388;
vehicle_dict['ninef2'] = 2833484545;
vehicle_dict['oracle'] = 1348744438;
vehicle_dict['oracle2'] = 3783366066;
vehicle_dict['packer'] = 569305213;
vehicle_dict['patriot'] = 3486509883;
vehicle_dict['pbus'] = 2287941233;
vehicle_dict['pcj'] = 3385765638;
vehicle_dict['penumbra'] = 3917501776;
vehicle_dict['peyote'] = 1830407356;
vehicle_dict['phantom'] = 2157618379;
vehicle_dict['phoenix'] = 2199527893;
vehicle_dict['picador'] = 1507916787;
vehicle_dict['police'] = 2046537925;
vehicle_dict['police2'] = 2667966721;
vehicle_dict['police3'] = 1912215274;
vehicle_dict['police4'] = 2321795001;
vehicle_dict['policeb'] = 4260343491;
vehicle_dict['policeold1'] = 2758042359;
vehicle_dict['policeold2'] = 2515846680;
vehicle_dict['policet'] = 456714581;
vehicle_dict['polmav'] = 353883353;
vehicle_dict['pony'] = 4175309224;
vehicle_dict['pony2'] = 943752001;
vehicle_dict['pounder'] = 2112052861;
vehicle_dict['prairie'] = 2844316578;
vehicle_dict['pranger'] = 741586030;
vehicle_dict['predator'] = 3806844075;
vehicle_dict['premier'] = 2411098011;
vehicle_dict['primo'] = 3144368207;
vehicle_dict['proptrailer'] = 356391690;
vehicle_dict['radi'] = 2643899483;
vehicle_dict['raketrailer'] = 390902130;
vehicle_dict['rancherxl'] = 1645267888;
vehicle_dict['rancherxl2'] = 1933662059;
vehicle_dict['rapidgt'] = 2360515092;
vehicle_dict['rapidgt2'] = 1737773231;
vehicle_dict['ratloader'] = 3627815886;
vehicle_dict['rebel'] = 3087195462;
vehicle_dict['rebel2'] = 2249373259;
vehicle_dict['regina'] = 4280472072;
vehicle_dict['rentalbus'] = 3196165219;
vehicle_dict['rhino'] = 782665360;
vehicle_dict['riot'] = 3089277354;
vehicle_dict['ripley'] = 3448987385;
vehicle_dict['rocoto'] = 2136773105;
vehicle_dict['romero'] = 627094268;
vehicle_dict['rubble'] = 2589662668;
vehicle_dict['ruffian'] = 3401388520;
vehicle_dict['ruiner'] = 4067225593;
vehicle_dict['rumpo'] = 1162065741;
vehicle_dict['rumpo2'] = 2518351607;
vehicle_dict['sabregt'] = 2609945748;
vehicle_dict['sadler'] = 3695398481;
vehicle_dict['sadler2'] = 734217681;
vehicle_dict['sanchez'] = 788045382;
vehicle_dict['sanchez2'] = 2841686334;
vehicle_dict['sandking'] = 3105951696;
vehicle_dict['sandking2'] = 989381445;
vehicle_dict['schafter2'] = 3039514899;
vehicle_dict['schwarzer'] = 3548084598;
vehicle_dict['scorcher'] = 4108429845;
vehicle_dict['scrap'] = 2594165727;
vehicle_dict['seashark'] = 3264692260;
vehicle_dict['seashark2'] = 3678636260;
vehicle_dict['seminole'] = 1221512915;
vehicle_dict['sentinel'] = 1349725314;
vehicle_dict['sentinel2'] = 873639469;
vehicle_dict['serrano'] = 1337041428;
vehicle_dict['shamal'] = 3080461301;
vehicle_dict['sheriff'] = 2611638396;
vehicle_dict['sheriff2'] = 1922257928;
vehicle_dict['skylift'] = 1044954915;
vehicle_dict['speedo'] = 3484649228;
vehicle_dict['speedo2'] = 728614474;
vehicle_dict['squalo'] = 400514754;
vehicle_dict['stanier'] = 2817386317;
vehicle_dict['stinger'] = 1545842587;
vehicle_dict['stingergt'] = 2196019706;
vehicle_dict['stockade'] = 1747439474;
vehicle_dict['stockade3'] = 4080511798;
vehicle_dict['stratum'] = 1723137093;
vehicle_dict['stretch'] = 2333339779;
vehicle_dict['stunt'] = 2172210288;
vehicle_dict['submersible'] = 771711535;
vehicle_dict['sultan'] = 970598228;
vehicle_dict['suntrap'] = 4012021193;
vehicle_dict['superd'] = 1123216662;
vehicle_dict['surano'] = 384071873;
vehicle_dict['surfer'] = 699456151;
vehicle_dict['surfer2'] = 2983726598;
vehicle_dict['surge'] = 2400073108;
vehicle_dict['taco'] = 1951180813;
vehicle_dict['tailgater'] = 3286105550;
vehicle_dict['tanker'] = 3564062519;
vehicle_dict['tankercar'] = 586013744;
vehicle_dict['taxi'] = 3338918751;
vehicle_dict['tiptruck'] = 48339065;
vehicle_dict['tiptruck2'] = 3347205726;
vehicle_dict['titan'] = 1981688531;
vehicle_dict['tornado'] = 464687292;
vehicle_dict['tornado2'] = 1531094468;
vehicle_dict['tornado3'] = 1762279763;
vehicle_dict['tornado4'] = 2261744861;
vehicle_dict['tourbus'] = 1941029835;
vehicle_dict['towtruck'] = 2971866336;
vehicle_dict['towtruck2'] = 3852654278;
vehicle_dict['tr2'] = 2078290630;
vehicle_dict['tr3'] = 1784254509;
vehicle_dict['tr4'] = 2091594960;
vehicle_dict['tractor'] = 1641462412;
vehicle_dict['tractor2'] = 2218488798;
vehicle_dict['tractor3'] = 1445631933;
vehicle_dict['trailerlogs'] = 2016027501;
vehicle_dict['trailers'] = 3417488910;
vehicle_dict['trailers2'] = 2715434129;
vehicle_dict['trailers3'] = 2236089197;
vehicle_dict['trailersmall'] = 712162987;
vehicle_dict['trash'] = 1917016601;
vehicle_dict['trflat'] = 2942498482;
vehicle_dict['tribike'] = 1127861609;
vehicle_dict['tribike2'] = 3061159916;
vehicle_dict['tribike3'] = 3894672200;
vehicle_dict['tropic'] = 290013743;
vehicle_dict['tvtrailer'] = 2524324030;
vehicle_dict['utillitruck'] = 516990260;
vehicle_dict['utillitruck2'] = 887537515;
vehicle_dict['utillitruck3'] = 2132890591;
vehicle_dict['vacca'] = 338562499;
vehicle_dict['vader'] = 4154065143;
vehicle_dict['velum'] = 2621610858;
vehicle_dict['vigero'] = 3469130167;
vehicle_dict['voltic'] = 2672523198;
vehicle_dict['voodoo2'] = 523724515;
vehicle_dict['washington'] = 1777363799;
vehicle_dict['youga'] = 65402552;
vehicle_dict['zion'] = 3172678083;
vehicle_dict['zion2'] = 3101863448;
vehicle_dict['ztype'] = 758895617;
vehicle_dict['bifta'] = 3945366167;	//	1.06 (298~301) : Beach Bum Update
vehicle_dict['kalahari'] = 92612664;
vehicle_dict['paradise'] = 1488164764;
vehicle_dict['speeder'] = 231083307;
vehicle_dict['btype'] = 117401876;	//	1.10 (302) : Valentines Day Massacre Special
vehicle_dict['jester'] = 2997294755;	//	1.11 (303~306) : Business Update
vehicle_dict['turismor'] = 408192225;
vehicle_dict['alpha'] = 767087018;
vehicle_dict['vestra'] = 1341619767;
vehicle_dict['massacro'] = 4152024626;	//	1.13 (307~310) : High Life Update
vehicle_dict['zentorno'] = 2891838741;
vehicle_dict['huntley'] = 486987393;
vehicle_dict['thrust'] = 1836027715;
vehicle_dict['rhapsody'] = 841808271;	//	1.14 (311~317) : "I'm Not a Hipster" Update
vehicle_dict['warrener'] = 1373123368;
vehicle_dict['blade'] = 3089165662;
vehicle_dict['glendale'] = 75131841;
vehicle_dict['panto'] = 3863274624;
vehicle_dict['dubsta3'] = 3057713523;
vehicle_dict['pigalle'] = 1078682497;
vehicle_dict['monster'] = 3449006043;	//	1.15 (318~319) : Independence Day Special
vehicle_dict['sovereign'] = 743478836;
vehicle_dict['besra'] = 1824333165;	//	1.16 (320~323) : San Andreas Flight School Update
vehicle_dict['miljet'] = 165154707;
vehicle_dict['coquette2'] = 1011753235;
vehicle_dict['swift'] = 3955379698;
vehicle_dict['innovation'] = 4135840458;	//	1.17 (324~326) : Last Team Standing Update
vehicle_dict['hakuchou'] = 1265391242;
vehicle_dict['furoregt'] = 3205927392;
vehicle_dict['jester2'] = 3188613414;	//	1.19 (327~330) : Festive Surprise
vehicle_dict['massacro2'] = 3663206819;
vehicle_dict['ratloader2'] = 3705788919;
vehicle_dict['slamvan'] = 729783779;
vehicle_dict['mule3'] = 2242229361;	//	1.21 (331~351) : Heists Update
vehicle_dict['velum2'] = 1077420264;
vehicle_dict['tanker2'] = 1956216962;
vehicle_dict['casco'] = 941800958;
vehicle_dict['boxville4'] = 444171386;
vehicle_dict['hydra'] = 970385471;
vehicle_dict['insurgent'] = 2434067162;
vehicle_dict['insurgent2'] = 2071877360;
vehicle_dict['gburrito2'] = 296357396;
vehicle_dict['technical'] = 2198148358;
vehicle_dict['dinghy3'] = 509498602;
vehicle_dict['savage'] = 4212341271;
vehicle_dict['enduro'] = 1753414259;
vehicle_dict['guardian'] = 2186977100;
vehicle_dict['lectro'] = 640818791;
vehicle_dict['kuruma'] = 2922118804;
vehicle_dict['kuruma2'] = 410882957;
vehicle_dict['trash2'] = 3039269212;
vehicle_dict['barracks3'] = 630371791;
vehicle_dict['valkyrie'] = 2694714877;
vehicle_dict['slamvan2'] = 833469436;
vehicle_dict['swift2'] = 1075432268;	//	1.27 (352~357) : Ill-Gotten Gains Part 1
vehicle_dict['luxor2'] = 3080673438;
vehicle_dict['feltzer3'] = 2728226064;
vehicle_dict['osiris'] = 1987142870;
vehicle_dict['virgo'] = 3796912450;
vehicle_dict['windsor'] = 1581459400;
vehicle_dict['coquette3'] = 784565758;	//	1.28 (358~363) : Ill-Gotten Gains Part 2
vehicle_dict['vindicator'] = 2941886209;
vehicle_dict['t20'] = 1663218586;
vehicle_dict['brawler'] = 2815302597;
vehicle_dict['toro'] = 1070967343;
vehicle_dict['chino'] = 349605904;
vehicle_dict['submersible2'] = 3228633070;	// 1.29 (364~376) : Enhanced edition
vehicle_dict['dukes'] = 723973206;
vehicle_dict['dukes2'] = 3968823444;
vehicle_dict['buffalo3'] = 237764926;
vehicle_dict['dominator2'] = 3379262425;
vehicle_dict['dodo'] = 3393804037;
vehicle_dict['marshall'] = 1233534620;
vehicle_dict['blimp2'] = 3681241380;
vehicle_dict['gauntlet2'] = 349315417;
vehicle_dict['stalion'] = 1923400478;
vehicle_dict['stalion2'] = 3893323758;
vehicle_dict['blista2'] = 1039032026;
vehicle_dict['blista3'] = 3703315515;
vehicle_dict['faction'] = 2175389151;	//	1.30 (377~384) : Lowriders
vehicle_dict['faction2'] = 2504420315;
vehicle_dict['moonbeam'] = 525509695;
vehicle_dict['moonbeam2'] = 1896491931;
vehicle_dict['primo2'] = 2254540506;
vehicle_dict['chino2'] = 2933279331;
vehicle_dict['buccaneer2'] = 3281516360;
vehicle_dict['voodoo'] = 2006667053;
vehicle_dict['lurcher'] = 2068293287;	//	1.30 (385~386) : Halloween Surprise
vehicle_dict['btype2'] = 3463132580;
vehicle_dict['verlierer2'] = 1102544804;	// 1.31 (387~411) : Executives and Other Criminals
vehicle_dict['nightshade'] = 2351681756;
vehicle_dict['mamba'] = 2634021974;
vehicle_dict['limo2'] = 4180339789;
vehicle_dict['schafter3'] = 2809443750;
vehicle_dict['schafter4'] = 1489967196;
vehicle_dict['schafter5'] = 3406724313;
vehicle_dict['schafter6'] = 1922255844;
vehicle_dict['cog55'] = 906642318;
vehicle_dict['cog552'] = 704435172;
vehicle_dict['cognoscenti'] = 2264796000;
vehicle_dict['cognoscenti2'] = 3690124666;
vehicle_dict['baller3'] = 1878062887;
vehicle_dict['baller4'] = 634118882;
vehicle_dict['baller5'] = 470404958;
vehicle_dict['baller6'] = 666166960;
vehicle_dict['toro2'] = 908897389;
vehicle_dict['seashark3'] = 3983945033;
vehicle_dict['dinghy4'] = 867467158;
vehicle_dict['tropic2'] = 1448677353;
vehicle_dict['speeder2'] = 437538602;
vehicle_dict['cargobob4'] = 2025593404;
vehicle_dict['supervolito'] = 710198397;
vehicle_dict['supervolito2'] = 2623428164;
vehicle_dict['valkyrie2'] = 1543134283;
vehicle_dict['tampa'] = 972671128;	// 1.31 (412) : Festive Surprise 2015
vehicle_dict['sultanrs'] = 3999278268;	// 1.32 (413~414) : January 2016 update
vehicle_dict['banshee2'] = 633712403;
vehicle_dict['btype3'] = 3692679425;	// 1.32 (415) : Be My Valentine
vehicle_dict['faction3'] = 2255212070;	// 1.33 (416~422) : Lowriders: Custom Classics
vehicle_dict['minivan2'] = 3168702960;
vehicle_dict['sabregt2'] = 223258115;
vehicle_dict['slamvan3'] = 1119641113;
vehicle_dict['tornado5'] = 2497353967;
vehicle_dict['virgo2'] = 3395457658;
vehicle_dict['virgo3'] = 16646064;
vehicle_dict['nimbus'] = 2999939664;	// 1.34 (423~450) : Further Adventures in Finance and Felony
vehicle_dict['xls'] = 1203490606;
vehicle_dict['xls2'] = 3862958888;
vehicle_dict['seven70'] = 2537130571;
vehicle_dict['fmj'] = 1426219628;
vehicle_dict['bestiagts'] = 1274868363;
vehicle_dict['pfister811'] = 2465164804;
vehicle_dict['brickade'] = 3989239879;
vehicle_dict['rumpo3'] = 1475773103;
vehicle_dict['volatus'] = 2449479409;
vehicle_dict['prototipo'] = 2123327359;
vehicle_dict['reaper'] = 234062309;
vehicle_dict['tug'] = 2194326579;
vehicle_dict['windsor2'] = 2364918497;
vehicle_dict['lynx'] = 482197771;	//	1.35 (437~451) : Cunning Stunts
vehicle_dict['gargoyle'] = 741090084;
vehicle_dict['tyrus'] = 2067820283;
vehicle_dict['sheava'] = 819197656;
vehicle_dict['omnis'] = 3517794615;
vehicle_dict['le7b'] = 3062131285;
vehicle_dict['contender'] = 683047626;
vehicle_dict['trophytruck'] = 101905590;
vehicle_dict['trophytruck2'] = 3631668194;
vehicle_dict['rallytruck'] = 2191146052;
vehicle_dict['cliffhanger'] = 390201602;
vehicle_dict['bf400'] = 86520421;
vehicle_dict['tropos'] = 1887331236;
vehicle_dict['brioso'] = 1549126457;
vehicle_dict['tampa2'] = 3223586949;
vehicle_dict['tornado6'] = 2736567667;	//	1.36 (452~472) : Bikes
vehicle_dict['faggio3'] = 3005788552;
vehicle_dict['faggio'] = 2452219115;
vehicle_dict['raptor'] = 3620039993;
vehicle_dict['vortex'] = 3685342204;
vehicle_dict['avarus'] = 2179174271;
vehicle_dict['sanctus'] = 1491277511;
vehicle_dict['youga2'] = 1026149675;
vehicle_dict['hakuchou2'] = 4039289119;
vehicle_dict['nightblade'] = 2688780135;
vehicle_dict['chimera'] = 6774487;
vehicle_dict['esskey'] = 2035069708;
vehicle_dict['wolfsbane'] = 3676349299;
vehicle_dict['zombiea'] = 3285698347;
vehicle_dict['zombieb'] = 3724934023;
vehicle_dict['defiler'] = 822018448;
vehicle_dict['daemon2'] = 2890830793;
vehicle_dict['ratbike'] = 1873600305;
vehicle_dict['shotaro'] = 3889340782;
vehicle_dict['manchez'] = 2771538552;
vehicle_dict['blazer4'] = 3854198872;
vehicle_dict['elegy'] = 196747873;	// 1.37 (473~496) : Import/Export
vehicle_dict['tempesta'] = 272929391;
vehicle_dict['italigtb'] = 2246633323;
vehicle_dict['italigtb2'] = 3812247419;
vehicle_dict['nero'] = 1034187331;
vehicle_dict['nero2'] = 1093792632;
vehicle_dict['specter'] = 1886268224;
vehicle_dict['specter2'] = 1074745671;
vehicle_dict['diablous'] = 4055125828;
vehicle_dict['diablous2'] = 1790834270;
vehicle_dict['blazer5'] = 2704629607;
vehicle_dict['ruiner2'] = 941494461;
vehicle_dict['dune4'] = 3467805257;
vehicle_dict['dune5'] = 3982671785;
vehicle_dict['phantom2'] = 2645431192;
vehicle_dict['voltic2'] = 989294410;
vehicle_dict['penetrator'] = 2536829930;
vehicle_dict['boxville5'] = 682434785;
vehicle_dict['wastelander'] = 2382949506;
vehicle_dict['technical2'] = 1180875963;
vehicle_dict['fcr'] = 627535535;
vehicle_dict['fcr2'] = 3537231886;
vehicle_dict['comet3'] = 2272483501;
vehicle_dict['ruiner3'] = 777714999;
vehicle_dict['gp1'] = 1234311532;	//	1.38 (497~500) : Cunning Stunts: Special Vehicle Circuit
vehicle_dict['infernus2'] = 2889029532;
vehicle_dict['ruston'] = 719660200;
vehicle_dict['turismo2'] = 3312836369;
vehicle_dict['hauler2'] = 387748548;	//	1.40 (501~518) : Gunrunning
vehicle_dict['phantom3'] = 177270108;
vehicle_dict['apc'] = 562680400;
vehicle_dict['halftrack'] = -32236122;
vehicle_dict['trailersmall2'] = -1881846085;
vehicle_dict['opressor'] = 884483972;
vehicle_dict['tampa3'] = -1210451983;
vehicle_dict['dune3'] = 1897744184;
vehicle_dict['insurgent3'] = -1924433270;
vehicle_dict['nightshark'] = 433954513;
vehicle_dict['technical3'] = 1356124575;
vehicle_dict['ardent'] = 159274291;
vehicle_dict['cheetah2'] = 223240013;
vehicle_dict['torero'] = 1504306544;
vehicle_dict['vagner'] = 1939284556;
vehicle_dict['xa21'] = 917809321;
vehicle_dict['caddy3'] = -769147461;
vehicle_dict['trailerlarge'] = 1502869817;
vehicle_dict['alphaz1'] = 2771347558;	// 1.41 (519~537) : Smuggler's Run
vehicle_dict['bombushka'] = 4262088844;
vehicle_dict['cyclone'] = 1392481335;
vehicle_dict['havok'] = 2310691317;
vehicle_dict['howard'] = 3287439187;
vehicle_dict['hunter'] = 4252008158;
vehicle_dict['microlight'] = 2531412055;
vehicle_dict['mogul'] = 3545667823;
vehicle_dict['molotok'] = 1565978651;
vehicle_dict['nokota'] = 1036591958;
vehicle_dict['pyro'] = 2908775872;
vehicle_dict['rapidgt3'] = 2049897956;
vehicle_dict['retinue'] = 1841130506;
vehicle_dict['rogue'] = 3319621991;
vehicle_dict['starling'] = 2594093022;
vehicle_dict['seabreeze'] = 3902291871;
vehicle_dict['tula'] = 1043222410;
vehicle_dict['vigilante'] = 3052358707;
vehicle_dict['visione'] = 3296789504;
/*
	getVehicleHash

		desc : 
			Returns the hash value according to the car number.
			--------------------------------
			설명 : 차량번호에 따른 hash값을 뱉어준다.
		
		return :
			Null if -1, else hash value.
			-----------------------------
			-1일 경우 Null, 그렇지 않으면 해시값.
*/
exports.getVehicleHash = function(modelid) 
{
	return Object.keys(vehicle_dict).length <= modelid ? -1:
	Object.values(vehicle_dict)[modelid];
}
/*
	getVehicleName
	
		desc :
			Spit out the vehicle model name according to the vehicle number.
			--------------------------------
			차량번호에 따른 차량모델 이름값을 뱉어준다.
			
		return :
			Null if -1, else hash value.
			-----------------------------
			-1일 경우 Null, 그렇지 않으면 해시값.
*/
exports.getVehicleName = function(modelid)
{
	return Object.keys(vehicle_dict).length <= modelid ? -1:
	Object.keys(vehicle_dict)[modelid];
}
/*
	isVehicleNameVaild
	
		desc :
			Spit out as a boolean if the vehicle model name exists.
			------------------------------------
			차량모델 이름이 존재하는지 boolean로 뱉어준다.

		return :
			false - not valid.
			true - vaild.
*/
exports.isVehicleNameVaild = function(model)
{
	return model in vehicle_dict;
}
/*
	getVehicleNameHash
	
		desc :
			Spit out the hash value according to the vehicle model name.
			------------------------------
			차량모델 이름에 따른 hash값을 뱉어준다.
			
		return :
			Null if -1, else hash value.
			-----------------------------
			-1일 경우 Null, 그렇지 않으면 해시값.
*/
exports.getVehicleNameHash = function(model)
{
	return model in vehicle_dict ? vehicle_dict[model]:-1;
}
/*
	getVehicleMaxModelID
	
		desc :
			Obtain the maximum vehicle code.
			------------------------------
			최대 차량코드를 구한다.
			
		return :
			Max Vehicle Code.
*/
exports.getVehicleMaxModelID = function()
{
	return Object.keys(vehicle_dict).length-1;
}

Your Script. Example :

var vehicle = require('./vehiclenum.js');

mp.events.addCommand('vid', (player, _, vehid) => {
  	if(parseInt(vehid))
    {
		let pos = player.position;
		pos.x += 2;
		mp.vehicles.new(vehicle.getVehicleHash(vehid),pos);
      	player.outputChatBox('The vehicle has been spawned. (ID:' + vehid + ')');
      	console.log('[vehicle spawned] '+player.name+' : '+vehicle.getVehicleName(vehid)+' ('+vehid+')');
    }
});

 

Edited by dsn0726
1.41 UPDATE!
  • Like 3
  • Take2 1

Share this post


Link to post
Share on other sites

It would be better to generate hashes at run-time from an array of vehicle names (at least it will be easier to update):

let vehicle_dict = {};

function initHashes()
{
	let vehicleNames = ["infernus", "infernus2", etc];
	vehicleNames.forEach(name => { vehicle_dict[name] = mp.joaat(name); });
}

 

  • Like 2

Share this post


Link to post
Share on other sites

Cleaner solution:

mp.events.addCommand('vid', (player, _, vehid) => {
    //Your code
    player.outputChatBox(`The vehicle has been spawned. (ID: ${vehid})`);
    console.log(`[vehicle spawned] ${player.name}: ${vehicle.getVehicleName(vehid)} (${vehid})`);
});

 

Edited by time.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.