Created
July 1, 2024 20:45
-
-
Save Stuyk/689343a415160acd3cffe385fd7fe46e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as alt from 'alt-shared'; | |
// Please understand this took quiet some time and effort. | |
// This took 3 different expirements to get the right workflow to assign all torsos. | |
// Some torsos don't take up full clothing, and expect an undershirt. | |
// This is about 92% accurate for all clothes, and 99% accurate for just clothing, no super hero suits. | |
// Check out Rebar. https://rebarv.com/ | |
// Created by Stuyk | |
const MaleTorsos = { | |
0: [ | |
'0_3_0', | |
'Male_Heist_3_0', | |
'Male_Heist_3_11', | |
'Male_Heist_3_22', | |
'Male_Heist_3_33', | |
'Male_Heist_3_44', | |
'Male_Heist_3_55', | |
'Male_Heist_3_66', | |
'mp_m_christmas2018_3_0', | |
'mp_m_christmas3_3_0', | |
'mp_m_christmas3_3_1', | |
'mp_m_christmas3_3_10', | |
'mp_m_christmas3_3_2', | |
'mp_m_christmas3_3_3', | |
'mp_m_christmas3_3_4', | |
'mp_m_christmas3_3_5', | |
'mp_m_christmas3_3_6', | |
'mp_m_christmas3_3_7', | |
'mp_m_christmas3_3_8', | |
'mp_m_christmas3_3_9', | |
'mp_m_gunrunning_01_3_15', | |
'mp_m_gunrunning_01_3_2', | |
'mp_m_january2016_3_0', | |
'mp_m_sum_3_0', | |
'mp_m_sum_3_2', | |
], | |
1: [ | |
'0_3_1', | |
'Male_Heist_3_1', | |
'Male_Heist_3_12', | |
'Male_Heist_3_23', | |
'Male_Heist_3_34', | |
'Male_Heist_3_35', | |
'Male_Heist_3_45', | |
'Male_Heist_3_56', | |
'Male_Heist_3_67', | |
'mp_m_gunrunning_01_3_16', | |
'mp_m_gunrunning_01_3_3', | |
'mp_m_january2016_3_1', | |
'mp_m_sum_3_3', | |
], | |
2: [ | |
'0_3_2', | |
'Male_Heist_3_13', | |
'Male_Heist_3_2', | |
'Male_Heist_3_24', | |
'Male_Heist_3_46', | |
'Male_Heist_3_57', | |
'Male_Heist_3_68', | |
'mp_m_bikerdlc_01_3_1', | |
'mp_m_bikerdlc_01_3_10', | |
'mp_m_bikerdlc_01_3_11', | |
'mp_m_bikerdlc_01_3_12', | |
'mp_m_bikerdlc_01_3_13', | |
'mp_m_bikerdlc_01_3_14', | |
'mp_m_bikerdlc_01_3_15', | |
'mp_m_bikerdlc_01_3_16', | |
'mp_m_gunrunning_01_3_13', | |
'mp_m_gunrunning_01_3_17', | |
'mp_m_gunrunning_01_3_26', | |
'mp_m_gunrunning_01_3_4', | |
'mp_m_january2016_3_2', | |
'mp_m_sum_3_13', | |
'mp_m_sum_3_4', | |
], | |
4: [ | |
'0_3_4', | |
'Male_freemode_mpLTS_3_0', | |
'Male_freemode_mpLTS_3_1', | |
'Male_freemode_Pilot_3_0', | |
'Male_Heist_3_14', | |
'Male_Heist_3_25', | |
'Male_Heist_3_3', | |
'Male_Heist_3_36', | |
'Male_Heist_3_47', | |
'Male_Heist_3_58', | |
'Male_Heist_3_69', | |
'Male_Heist_3_77', | |
'mp_m_2023_02_3_0', | |
'mp_m_2023_02_3_2', | |
'mp_m_christmas2018_3_1', | |
'mp_m_christmas2018_3_2', | |
'mp_m_christmas2018_3_3', | |
'mp_m_christmas3_3_11', | |
'mp_m_gunrunning_01_3_18', | |
'mp_m_gunrunning_01_3_21', | |
'mp_m_gunrunning_01_3_5', | |
'mp_m_gunrunning_01_3_6', | |
'mp_m_gunrunning_01_3_8', | |
'mp_m_htb_01_3_0', | |
'mp_m_january2016_3_3', | |
'mp_m_stunt_01_3_0', | |
'mp_m_stunt_01_3_1', | |
'mp_m_sum2_3_0', | |
'mp_m_sum_3_5', | |
'mp_m_tuner_3_0', | |
'mp_m_vinewood_3_0', | |
'mp_m_xmas_03_3_0', | |
], | |
5: [ | |
'0_3_5', | |
'Male_Heist_3_15', | |
'Male_Heist_3_26', | |
'Male_Heist_3_37', | |
'Male_Heist_3_4', | |
'Male_Heist_3_48', | |
'Male_Heist_3_59', | |
'Male_Heist_3_70', | |
'mp_m_bikerdlc_01_3_17', | |
'mp_m_bikerdlc_01_3_18', | |
'mp_m_bikerdlc_01_3_19', | |
'mp_m_bikerdlc_01_3_2', | |
'mp_m_bikerdlc_01_3_20', | |
'mp_m_bikerdlc_01_3_21', | |
'mp_m_bikerdlc_01_3_22', | |
'mp_m_bikerdlc_01_3_23', | |
'mp_m_gunrunning_01_3_14', | |
'mp_m_gunrunning_01_3_19', | |
'mp_m_gunrunning_01_3_27', | |
'mp_m_january2016_3_4', | |
'mp_m_sum_3_14', | |
'mp_m_sum_3_6', | |
], | |
6: [ | |
'0_3_6', | |
'Male_Heist_3_16', | |
'Male_Heist_3_27', | |
'Male_Heist_3_38', | |
'Male_Heist_3_49', | |
'Male_Heist_3_5', | |
'Male_Heist_3_60', | |
'Male_Heist_3_71', | |
'mp_m_2023_02_3_1', | |
'mp_m_gunrunning_01_3_20', | |
'mp_m_gunrunning_01_3_7', | |
'mp_m_january2016_3_5', | |
'mp_m_sum_3_7', | |
], | |
8: [ | |
'0_3_8', | |
'Male_Heist_3_17', | |
'Male_Heist_3_28', | |
'Male_Heist_3_39', | |
'Male_Heist_3_50', | |
'Male_Heist_3_51', | |
'Male_Heist_3_6', | |
'Male_Heist_3_61', | |
'Male_Heist_3_72', | |
'mp_m_january2016_3_6', | |
'mp_m_sum_3_8', | |
], | |
11: [ | |
'0_3_11', | |
'Male_Heist_3_18', | |
'Male_Heist_3_29', | |
'Male_Heist_3_40', | |
'Male_Heist_3_62', | |
'Male_Heist_3_7', | |
'Male_Heist_3_73', | |
'mp_m_gunrunning_01_3_22', | |
'mp_m_gunrunning_01_3_9', | |
'mp_m_january2016_3_7', | |
'mp_m_sum_3_9', | |
], | |
12: [ | |
'0_3_12', | |
'Male_Heist_3_19', | |
'Male_Heist_3_30', | |
'Male_Heist_3_41', | |
'Male_Heist_3_52', | |
'Male_Heist_3_63', | |
'Male_Heist_3_64', | |
'Male_Heist_3_74', | |
'Male_Heist_3_8', | |
'mp_m_gunrunning_01_3_10', | |
'mp_m_gunrunning_01_3_23', | |
'mp_m_january2016_3_8', | |
'mp_m_sum_3_10', | |
'mp_m_sum_3_11', | |
], | |
14: [ | |
'0_3_14', | |
'Male_Heist_3_20', | |
'Male_Heist_3_31', | |
'Male_Heist_3_42', | |
'Male_Heist_3_53', | |
'Male_Heist_3_75', | |
'Male_Heist_3_9', | |
'mp_m_gunrunning_01_3_11', | |
'mp_m_gunrunning_01_3_24', | |
'mp_m_heist4_3_0', | |
'mp_m_heist4_3_1', | |
'mp_m_heist4_3_10', | |
'mp_m_heist4_3_2', | |
'mp_m_heist4_3_3', | |
'mp_m_heist4_3_4', | |
'mp_m_heist4_3_5', | |
'mp_m_heist4_3_6', | |
'mp_m_heist4_3_7', | |
'mp_m_heist4_3_8', | |
'mp_m_heist4_3_9', | |
'mp_m_january2016_3_9', | |
], | |
15: [ | |
'0_3_15', | |
'Male_Heist_3_10', | |
'Male_Heist_3_21', | |
'Male_Heist_3_32', | |
'Male_Heist_3_43', | |
'Male_Heist_3_54', | |
'Male_Heist_3_65', | |
'Male_Heist_3_76', | |
'mp_m_bikerdlc_01_3_0', | |
'mp_m_bikerdlc_01_3_3', | |
'mp_m_bikerdlc_01_3_4', | |
'mp_m_bikerdlc_01_3_5', | |
'mp_m_bikerdlc_01_3_6', | |
'mp_m_bikerdlc_01_3_7', | |
'mp_m_bikerdlc_01_3_8', | |
'mp_m_bikerdlc_01_3_9', | |
'mp_m_gunrunning_01_3_0', | |
'mp_m_gunrunning_01_3_1', | |
'mp_m_gunrunning_01_3_12', | |
'mp_m_gunrunning_01_3_25', | |
'mp_m_january2016_3_10', | |
'mp_m_sum_3_1', | |
'mp_m_sum_3_12', | |
], | |
}; | |
const FemaleTorsos = { | |
0: [ | |
'0_3_0', | |
'mp_f_gunrunning_01_3_17', | |
'mp_f_gunrunning_01_3_18', | |
'mp_f_gunrunning_01_3_2', | |
'mp_f_gunrunning_01_3_33', | |
'mp_f_importexport_01_3_0', | |
'mp_f_importexport_01_3_1', | |
'mp_f_importexport_01_3_2', | |
'mp_f_importexport_01_3_3', | |
'mp_f_importexport_01_3_4', | |
'mp_f_importexport_01_3_5', | |
'mp_f_importexport_01_3_6', | |
'mp_f_importexport_01_3_7', | |
'mp_f_january2016_3_0', | |
'mp_f_sum_3_17', | |
'mp_f_sum_3_2', | |
], | |
1: ['0_3_1', 'mp_f_gunrunning_01_3_19', 'mp_f_gunrunning_01_3_3', 'mp_f_january2016_3_1', 'mp_f_sum_3_3'], | |
2: ['0_3_2', 'mp_f_gunrunning_01_3_20', 'mp_f_gunrunning_01_3_4', 'mp_f_january2016_3_2', 'mp_f_sum_3_4'], | |
3: [ | |
'0_3_3', | |
'Female_freemode_mpLTS_3_0', | |
'Female_freemode_mpLTS_3_1', | |
'Female_freemode_Pilot_3_0', | |
'mp_f_2023_02_3_0', | |
'mp_f_2023_02_3_2', | |
'mp_f_christmas2018_3_0', | |
'mp_f_christmas2018_3_1', | |
'mp_f_christmas2018_3_2', | |
'mp_f_christmas2018_3_3', | |
'mp_f_christmas3_3_0', | |
'mp_f_gunrunning_01_3_21', | |
'mp_f_gunrunning_01_3_5', | |
'mp_f_gunrunning_01_3_6', | |
'mp_f_htb_01_3_0', | |
'mp_f_january2016_3_3', | |
'mp_f_stunt_01_3_0', | |
'mp_f_stunt_01_3_1', | |
'mp_f_sum2_3_0', | |
'mp_f_sum_3_0', | |
'mp_f_sum_3_5', | |
'mp_f_vinewood_3_0', | |
'mp_f_xmas_03_3_0', | |
], | |
4: ['0_3_4', 'mp_f_gunrunning_01_3_22', 'mp_f_january2016_3_4', 'mp_f_sum_3_6'], | |
5: [ | |
'0_3_5', | |
'mp_f_gunrunning_01_3_23', | |
'mp_f_gunrunning_01_3_7', | |
'mp_f_heist4_3_0', | |
'mp_f_heist4_3_1', | |
'mp_f_heist4_3_10', | |
'mp_f_heist4_3_2', | |
'mp_f_heist4_3_3', | |
'mp_f_heist4_3_4', | |
'mp_f_heist4_3_5', | |
'mp_f_heist4_3_6', | |
'mp_f_heist4_3_7', | |
'mp_f_heist4_3_8', | |
'mp_f_heist4_3_9', | |
'mp_f_january2016_3_5', | |
'mp_f_sum_3_7', | |
], | |
6: ['0_3_6', 'mp_f_gunrunning_01_3_24', 'mp_f_gunrunning_01_3_8', 'mp_f_january2016_3_6', 'mp_f_sum_3_8'], | |
7: ['0_3_7', 'mp_f_gunrunning_01_3_25', 'mp_f_gunrunning_01_3_9', 'mp_f_january2016_3_7', 'mp_f_sum_3_9'], | |
9: [ | |
'0_3_9', | |
'mp_f_2023_02_3_1', | |
'mp_f_gunrunning_01_3_10', | |
'mp_f_gunrunning_01_3_26', | |
'mp_f_january2016_3_8', | |
'mp_f_sum_3_10', | |
], | |
11: [ | |
'0_3_11', | |
'Female_freemode_valentines_3_0', | |
'mp_f_bikerdlc_01_3_1', | |
'mp_f_bikerdlc_01_3_10', | |
'mp_f_bikerdlc_01_3_11', | |
'mp_f_bikerdlc_01_3_12', | |
'mp_f_bikerdlc_01_3_13', | |
'mp_f_bikerdlc_01_3_14', | |
'mp_f_bikerdlc_01_3_15', | |
'mp_f_bikerdlc_01_3_16', | |
'mp_f_gunrunning_01_3_11', | |
'mp_f_gunrunning_01_3_15', | |
'mp_f_gunrunning_01_3_27', | |
'mp_f_gunrunning_01_3_31', | |
'mp_f_gunrunning_01_3_34', | |
'mp_f_gunrunning_01_3_35', | |
'mp_f_importexport_01_3_10', | |
'mp_f_importexport_01_3_11', | |
'mp_f_importexport_01_3_12', | |
'mp_f_importexport_01_3_13', | |
'mp_f_importexport_01_3_14', | |
'mp_f_importexport_01_3_15', | |
'mp_f_importexport_01_3_8', | |
'mp_f_importexport_01_3_9', | |
'mp_f_january2016_3_9', | |
'mp_f_sum_3_11', | |
'mp_f_sum_3_15', | |
'mp_f_sum_3_18', | |
], | |
12: [ | |
'0_3_12', | |
'mp_f_bikerdlc_01_3_17', | |
'mp_f_bikerdlc_01_3_18', | |
'mp_f_bikerdlc_01_3_19', | |
'mp_f_bikerdlc_01_3_2', | |
'mp_f_bikerdlc_01_3_20', | |
'mp_f_bikerdlc_01_3_21', | |
'mp_f_bikerdlc_01_3_22', | |
'mp_f_bikerdlc_01_3_23', | |
'mp_f_gunrunning_01_3_12', | |
'mp_f_gunrunning_01_3_16', | |
'mp_f_gunrunning_01_3_28', | |
'mp_f_gunrunning_01_3_32', | |
'mp_f_january2016_3_10', | |
'mp_f_sum_3_12', | |
'mp_f_sum_3_16', | |
], | |
14: [ | |
'0_3_14', | |
'mp_f_gunrunning_01_3_13', | |
'mp_f_gunrunning_01_3_29', | |
'mp_f_january2016_3_11', | |
'mp_f_security_3_0', | |
'mp_f_sum_3_13', | |
], | |
15: [ | |
'0_3_15', | |
'mp_f_bikerdlc_01_3_0', | |
'mp_f_bikerdlc_01_3_3', | |
'mp_f_bikerdlc_01_3_4', | |
'mp_f_bikerdlc_01_3_5', | |
'mp_f_bikerdlc_01_3_6', | |
'mp_f_bikerdlc_01_3_7', | |
'mp_f_bikerdlc_01_3_8', | |
'mp_f_bikerdlc_01_3_9', | |
'mp_f_gunrunning_01_3_0', | |
'mp_f_gunrunning_01_3_1', | |
'mp_f_gunrunning_01_3_14', | |
'mp_f_gunrunning_01_3_30', | |
'mp_f_january2016_3_12', | |
'mp_f_sum_3_1', | |
'mp_f_sum_3_14', | |
], | |
}; | |
const Torsos = { | |
mp_m_0: { | |
'0': [0], | |
'1': [9, 5, 1], | |
'2': [2], | |
'3': [3], | |
'4': [4], | |
'5': [4], | |
'6': [5, 1], | |
'7': [1, 5, 7], | |
'8': [5, 9, 1], | |
'9': [9], | |
'10': [6, 3], | |
'11': [4], | |
'12': [4], | |
'13': [4], | |
'14': [0], | |
'15': [4], | |
}, | |
Male_Apt01: { | |
'0': [15], | |
'1': [14], | |
'2': [0], | |
'3': [0], | |
'4': [11], | |
'5': [4], | |
'6': [0], | |
'7': [4], | |
'8': [14, 4, 6], | |
'9': [4, 6, 14], | |
'10': [4, 6], | |
'11': [4, 6], | |
'12': [4, 6], | |
'13': [4, 6], | |
'14': [0], | |
'15': [14, 4, 6], | |
'16': [4], | |
'17': [4, 6, 14], | |
'18': [5, 0], | |
'19': [4], | |
'20': [4], | |
'21': [14, 4, 6], | |
'22': [4, 6], | |
'23': [14], | |
'24': [14, 4, 6], | |
}, | |
Male_freemode_beach: { | |
'0': [0], | |
'1': [5], | |
}, | |
Male_freemode_business2: { | |
'0': [4, 6], | |
'1': [4, 6], | |
'2': [4, 6], | |
'3': [4, 6], | |
}, | |
Male_freemode_business: { | |
'0': [4, 6], | |
'1': [4, 6, 14], | |
'2': [5, 0], | |
'3': [11], | |
'4': [4, 6, 14], | |
'5': [14, 6, 4], | |
}, | |
Male_freemode_hipster: { | |
'0': [0], | |
'1': [0], | |
'2': [14, 6, 4], | |
'3': [5], | |
'4': [4, 6, 14], | |
'5': [8], | |
'6': [0], | |
'7': [5, 0], | |
'8': [12], | |
'9': [11], | |
'10': [11], | |
'11': [0], | |
}, | |
Male_freemode_independence: { | |
'0': [5, 0], | |
'1': [14, 4, 6], | |
'2': [0], | |
}, | |
Male_freemode_mpLTS: { | |
'0': [4], | |
'1': [4], | |
}, | |
Male_freemode_Pilot: { | |
'0': [4], | |
}, | |
Male_freemode_valentines: { | |
'0': [4, 6, 14], | |
'1': [5, 0], | |
'2': [0], | |
}, | |
Male_Heist: { | |
'0': [4], | |
'1': [4], | |
'2': [0], | |
'3': [0], | |
'4': [4], | |
'5': [4, 6, 14], | |
'6': [4, 6, 14], | |
'7': [11, 8, 0], | |
'8': [4], | |
'9': [4, 6, 14], | |
'10': [0], | |
'11': [14, 4, 6], | |
'12': [4], | |
'13': [4], | |
'14': [4], | |
'15': [4, 6, 14], | |
'16': [4, 6, 14], | |
}, | |
Male_xmas2: { | |
'0': [4], | |
'1': [4], | |
}, | |
Male_xmas: { | |
'0': [0], | |
'1': [4, 14, 6], | |
}, | |
mp_m_2023_01: { | |
'0': [6], | |
'1': [6], | |
'2': [4, 6, 14], | |
'3': [4], | |
'4': [4], | |
'5': [4, 6, 14], | |
'6': [0], | |
'7': [0], | |
'8': [4, 6, 14], | |
'9': [4, 6, 14], | |
'10': [6], | |
'11': [6], | |
'12': [6], | |
'13': [4], | |
'14': [4], | |
'15': [4], | |
'16': [4], | |
'17': [4], | |
'18': [4], | |
'19': [5], | |
'20': [4, 6, 14], | |
'21': [0], | |
'22': [0], | |
'23': [0], | |
'24': [0], | |
'25': [4], | |
'26': [4], | |
'27': [4], | |
'28': [4], | |
'29': [4], | |
'30': [0], | |
'31': [4], | |
'32': [4], | |
'33': [4], | |
'34': [4], | |
'35': [0], | |
'36': [15], | |
'37': [4], | |
'38': [4], | |
'39': [4], | |
'40': [4], | |
'41': [4], | |
'42': [4], | |
'43': [4], | |
'44': [8], | |
'45': [8], | |
'46': [8], | |
'47': [8], | |
'48': [4], | |
'49': [14, 4, 6], | |
'50': [0], | |
'51': [0], | |
'52': [0], | |
}, | |
mp_m_2023_02: { | |
'0': [4], | |
'1': [4], | |
'2': [4], | |
'3': [4, 6, 14], | |
'4': [4, 6, 14], | |
'5': [4, 6, 14], | |
'6': [2, 0], | |
'7': [11], | |
'8': [11], | |
'9': [11], | |
'10': [4], | |
'11': [4], | |
'12': [4], | |
'13': [14, 4, 6], | |
'14': [4, 6, 14], | |
'15': [4, 6, 14], | |
'16': [4, 6, 14], | |
'17': [4, 6, 14], | |
'18': [4, 6, 14], | |
'19': [4], | |
'20': [4, 6, 14], | |
'21': [4, 6, 14], | |
'22': [4], | |
'23': [4], | |
'24': [4], | |
'25': [4, 6, 14], | |
'26': [0], | |
'27': [4], | |
'28': [10], | |
}, | |
mp_m_airraces_01: { | |
'0': [4], | |
'1': [4], | |
'2': [4], | |
'3': [4, 6, 14], | |
'4': [4], | |
}, | |
mp_m_assault: { | |
'0': [4], | |
}, | |
mp_m_battle: { | |
'0': [4], | |
'1': [4], | |
'2': [4, 6], | |
'3': [4, 6], | |
'4': [4], | |
'5': [11], | |
'6': [4, 6, 14], | |
'7': [4], | |
'8': [4], | |
'9': [4, 6], | |
'10': [4], | |
'11': [4, 6, 14], | |
'12': [4, 6, 14], | |
'13': [4, 6, 14], | |
'14': [4, 6, 14], | |
'15': [4], | |
'16': [0], | |
}, | |
mp_m_bikerdlc_01: { | |
'0': [5, 15, 0], | |
'1': [0, 5], | |
'2': [5, 15], | |
'3': [0, 15, 5], | |
'4': [4, 6], | |
'5': [5, 0], | |
'6': [4, 6, 14], | |
'7': [11], | |
'8': [4], | |
'9': [14, 6, 8], | |
'10': [14, 4, 6], | |
'11': [4, 6], | |
'12': [4, 6, 14], | |
'13': [0, 5, 15], | |
'14': [4], | |
'15': [14, 4, 6], | |
'16': [0, 5, 15], | |
'17': [4, 6], | |
'18': [5, 0], | |
'19': [5, 15], | |
'20': [0, 5], | |
'21': [4], | |
'22': [2, 5, 15], | |
'23': [0, 5], | |
'24': [4, 6, 14], | |
'25': [4], | |
'26': [14, 4, 6], | |
'27': [4], | |
'28': [4, 6, 14], | |
}, | |
mp_m_christmas2017: { | |
'0': [0], | |
'1': [0], | |
'2': [4], | |
'3': [4, 6], | |
'4': [4], | |
'5': [10], | |
'6': [5, 0], | |
'7': [4], | |
'8': [4], | |
'9': [0], | |
'10': [4], | |
'11': [15], | |
'12': [4], | |
}, | |
mp_m_christmas2018: { | |
'0': [4], | |
'1': [0], | |
'2': [10], | |
'3': [4], | |
'4': [4], | |
'5': [4], | |
'6': [4], | |
'7': [4], | |
'8': [4], | |
'9': [4], | |
'10': [11], | |
'11': [4], | |
'12': [4], | |
'13': [4], | |
'14': [4], | |
'15': [10], | |
'16': [4], | |
'17': [15, 0], | |
}, | |
mp_m_christmas3: { | |
'0': [6], | |
'1': [4, 6, 14], | |
'2': [5, 0], | |
'3': [4, 6], | |
'4': [2], | |
'5': [0], | |
'6': [0, 15], | |
'7': [0, 15], | |
'8': [4, 6, 14], | |
'9': [4, 6, 14], | |
'10': [6], | |
'11': [11], | |
'12': [0], | |
'13': [4, 6, 14], | |
'14': [4, 6, 14], | |
'15': [4], | |
'16': [0], | |
'17': [11], | |
'18': [4], | |
'19': [4, 6, 14], | |
'20': [4, 6, 14], | |
'21': [4, 6, 14], | |
'22': [11], | |
'23': [11], | |
'24': [4], | |
'25': [4], | |
'26': [4, 6, 14], | |
'27': [4, 6, 14], | |
'28': [4], | |
}, | |
mp_m_executive_01: { | |
'0': [4], | |
'1': [4, 6, 14], | |
'2': [0], | |
'3': [0], | |
'4': [11], | |
'5': [4], | |
'6': [11], | |
'7': [4, 6, 14], | |
'8': [5, 0], | |
'9': [4], | |
'10': [4], | |
'11': [4, 6, 14], | |
'12': [4, 6], | |
'13': [4, 6, 14], | |
'14': [4], | |
'15': [4, 6], | |
'16': [4, 6, 14], | |
'17': [0], | |
}, | |
mp_m_g9ec: { | |
'0': [0], | |
}, | |
mp_m_gunrunning_01: { | |
'0': [2], | |
'1': [2], | |
'2': [0], | |
'3': [4], | |
'4': [4], | |
'5': [4], | |
'6': [4, 6, 14], | |
'7': [2, 0], | |
'8': [4], | |
'9': [4, 6, 14], | |
'10': [0, 2, 14], | |
'11': [4], | |
'12': [4], | |
'13': [2, 0], | |
'14': [4], | |
'15': [4], | |
'16': [11], | |
'17': [2, 0], | |
'18': [6], | |
'19': [8], | |
'20': [0], | |
}, | |
mp_m_heist3: { | |
'0': [4], | |
'1': [4], | |
'2': [4], | |
'3': [4], | |
'4': [11], | |
'5': [11], | |
'6': [4], | |
'7': [4], | |
'8': [4], | |
'9': [0], | |
'10': [4], | |
'11': [0], | |
'12': [4], | |
'13': [2, 0], | |
'14': [4], | |
'15': [4], | |
'16': [4], | |
'17': [4], | |
}, | |
mp_m_heist4: { | |
'0': [0], | |
'1': [6], | |
'2': [4], | |
'3': [11], | |
'4': [11], | |
'5': [8], | |
'6': [2], | |
'7': [4], | |
'8': [4], | |
'9': [4, 6, 14], | |
'10': [4], | |
}, | |
mp_m_htb_01: { | |
'0': [4], | |
}, | |
mp_m_importexport_01: { | |
'0': [4], | |
'1': [6], | |
'2': [4], | |
'3': [4, 6, 14], | |
'4': [4], | |
'5': [4, 6, 14], | |
'6': [4, 6, 14], | |
'7': [0], | |
'8': [4], | |
'9': [4], | |
'10': [4], | |
'11': [4], | |
'12': [6], | |
'13': [6], | |
'14': [4], | |
'15': [10], | |
'16': [2, 0], | |
'17': [4], | |
'18': [6], | |
'19': [2, 0], | |
}, | |
mp_m_january2016: { | |
'0': [4, 6, 14], | |
}, | |
mp_m_lowrider_01: { | |
'0': [0], | |
'1': [11], | |
'2': [11], | |
'3': [11], | |
'4': [4], | |
'5': [6], | |
'6': [4], | |
'7': [4], | |
'8': [14, 4, 6], | |
'9': [4], | |
'10': [4], | |
}, | |
mp_m_lowrider_02: { | |
'0': [4], | |
'1': [4, 6, 14], | |
'2': [11], | |
'3': [4, 6, 14], | |
'4': [4], | |
'5': [4], | |
'6': [4, 6, 14], | |
'7': [11], | |
}, | |
mp_m_luxe_01: { | |
'0': [4, 6, 14], | |
'1': [0], | |
'2': [4, 6, 14], | |
'3': [0], | |
'4': [4, 6, 14], | |
'5': [4], | |
}, | |
mp_m_luxe_02: { | |
'0': [4, 6], | |
'1': [4, 6, 14], | |
'2': [4], | |
}, | |
mp_m_security: { | |
'0': [0], | |
'1': [0], | |
'2': [4], | |
'3': [4], | |
'4': [4], | |
'5': [4, 6, 14], | |
'6': [4], | |
'7': [4], | |
'8': [4, 6, 14], | |
'9': [4, 6, 14], | |
'10': [0], | |
}, | |
mp_m_smuggler_01: { | |
'0': [4, 6, 14], | |
'1': [4, 6, 14], | |
'2': [11], | |
'3': [0], | |
'4': [0], | |
'5': [5], | |
'6': [2], | |
'7': [2], | |
'8': [4, 6, 14], | |
}, | |
mp_m_stunt_01: { | |
'0': [4], | |
'1': [4], | |
'2': [4, 6, 14], | |
'3': [4], | |
'4': [4, 6, 14], | |
'5': [4], | |
'6': [4], | |
'7': [4, 6], | |
'8': [4, 6, 14], | |
'9': [4, 6, 14], | |
}, | |
mp_m_sum2: { | |
'0': [4, 6], | |
'1': [2, 0], | |
'2': [6, 4], | |
'3': [0, 5], | |
'4': [4], | |
'5': [4, 6], | |
'6': [5, 0], | |
'7': [4], | |
'8': [4], | |
'9': [4], | |
'10': [4, 6, 14], | |
'11': [15], | |
'12': [15], | |
'13': [0], | |
'14': [15], | |
'15': [4], | |
'16': [4, 6, 14], | |
'17': [4], | |
'18': [4, 6], | |
'19': [2, 0], | |
}, | |
mp_m_sum2_g9ec: { | |
'0': [0], | |
'1': [0], | |
'2': [0], | |
'3': [0], | |
'4': [0], | |
'5': [0], | |
'6': [0], | |
'7': [0], | |
}, | |
mp_m_sum: { | |
'0': [4], | |
'1': [4], | |
'2': [0], | |
'3': [11], | |
'4': [4], | |
'5': [11], | |
'6': [4, 6, 14], | |
'7': [4, 6, 14], | |
'8': [4, 6, 14], | |
'9': [4], | |
'10': [4], | |
'11': [4], | |
'12': [4, 6, 14], | |
'13': [0], | |
'14': [0], | |
'15': [0], | |
'16': [4], | |
'17': [4], | |
'18': [11], | |
}, | |
mp_m_tuner: { | |
'0': [4, 6, 14], | |
'1': [4], | |
'2': [4], | |
'3': [2, 0], | |
'4': [15, 0], | |
'5': [2, 0], | |
'6': [6, 4], | |
'7': [0, 15], | |
'8': [4], | |
'9': [4], | |
'10': [10], | |
'11': [4], | |
'12': [4], | |
'13': [4], | |
'14': [4, 6, 14], | |
'15': [0], | |
'16': [6], | |
'17': [4], | |
'18': [4], | |
'19': [4, 6, 14], | |
}, | |
mp_m_valentines_02: { | |
'0': [4, 6, 14], | |
'1': [0, 5], | |
}, | |
mp_m_vinewood: { | |
'0': [5, 0], | |
'1': [4], | |
'2': [4, 6, 14], | |
'3': [4, 6], | |
'4': [4, 6], | |
'5': [4, 6], | |
'6': [4], | |
'7': [4], | |
'8': [4], | |
'9': [11], | |
'10': [4], | |
'11': [4], | |
'12': [4], | |
'13': [4, 6, 14], | |
'14': [4, 6, 14], | |
'15': [4], | |
'16': [4], | |
'17': [4], | |
'18': [4], | |
'19': [4, 6, 14], | |
'20': [14], | |
'21': [4, 6], | |
'22': [4, 6], | |
'23': [0], | |
}, | |
mp_m_xmas_03: { | |
'0': [4, 6, 14], | |
'1': [6], | |
}, | |
Female_Apt01: { | |
'0': [4], | |
'1': [3, 7], | |
'2': [14], | |
'3': [14], | |
'4': [9], | |
'5': [3], | |
'6': [14], | |
'7': [3], | |
'8': [7, 3, 6], | |
'9': [3, 7, 6], | |
'10': [7, 5, 3], | |
'11': [5, 3, 7], | |
'12': [5, 3, 1], | |
'13': [5, 3, 1], | |
'14': [9], | |
'15': [7, 5, 3, 1], | |
'16': [3], | |
'17': [1, 3, 5, 7], | |
'18': [0, 9], | |
'19': [4], | |
'20': [3], | |
'21': [3], | |
'22': [3, 1, 5], | |
'23': [4], | |
'24': [3, 7], | |
'25': [3, 5, 7, 1], | |
}, | |
Female_freemode_beach: { | |
'0': [4], | |
'1': [0], | |
'2': [4], | |
}, | |
Female_freemode_business: { | |
'0': [5, 1], | |
'1': [6, 7], | |
'2': [12], | |
'3': [0], | |
'4': [0, 4, 14], | |
'5': [14], | |
}, | |
Female_freemode_business2: { | |
'0': [2], | |
}, | |
Female_freemode_hipster: { | |
'0': [1, 5, 9], | |
'1': [4], | |
'2': [4], | |
'3': [6, 3, 7], | |
'4': [5, 1, 9], | |
'5': [4], | |
'6': [4], | |
'7': [2], | |
}, | |
Female_freemode_independence: { | |
'0': [1], | |
'1': [2], | |
}, | |
Female_freemode_mpLTS: { | |
'0': [3], | |
'1': [3], | |
}, | |
Female_freemode_Pilot: { | |
'0': [3], | |
}, | |
Female_freemode_valentines: { | |
'0': [4], | |
'1': [4], | |
'2': [0], | |
}, | |
Female_xmas2: { | |
'0': [3], | |
'1': [3], | |
}, | |
Female_xmas: { | |
'0': [0], | |
'1': [9, 5, 1], | |
}, | |
mp_f_2023_01: { | |
'0': [1], | |
'1': [1], | |
'2': [3, 6], | |
'3': [3], | |
'4': [4], | |
'5': [4], | |
'6': [14], | |
'7': [14], | |
'8': [14], | |
'9': [14], | |
'10': [3, 7], | |
'11': [3], | |
'12': [3, 7], | |
'13': [3, 7], | |
'14': [3, 7], | |
'15': [3], | |
'16': [3], | |
'17': [3], | |
'18': [3], | |
'19': [3], | |
'20': [6, 3], | |
'21': [11], | |
'22': [11], | |
'23': [14], | |
'24': [14], | |
'25': [14], | |
'26': [14], | |
'27': [14], | |
'28': [3], | |
'29': [3], | |
'30': [3], | |
'31': [3], | |
'32': [3], | |
'33': [3], | |
'34': [14], | |
'35': [3], | |
'36': [3], | |
'37': [11], | |
'38': [11], | |
'39': [11], | |
'40': [3], | |
'41': [3], | |
'42': [3], | |
'43': [14], | |
'44': [4], | |
'45': [4], | |
'46': [4], | |
'47': [4], | |
'48': [4], | |
'49': [4], | |
'50': [3], | |
'51': [1], | |
'52': [1], | |
'53': [1], | |
'54': [1], | |
'55': [3], | |
'56': [7, 6, 3], | |
'57': [14], | |
'58': [14], | |
'59': [14], | |
'60': [14], | |
}, | |
mp_f_2023_02: { | |
'0': [3], | |
'1': [3], | |
'2': [3], | |
'3': [6, 7, 3], | |
'4': [6, 7, 3], | |
'5': [6, 7, 3], | |
'6': [14, 4], | |
'7': [9], | |
'8': [9], | |
'9': [9], | |
'10': [3], | |
'11': [3], | |
'12': [3], | |
'13': [6, 7, 3], | |
'14': [6, 7, 3], | |
'15': [6, 7, 3], | |
'16': [6, 7, 3], | |
'17': [6, 7, 3], | |
'18': [6, 7, 3], | |
'19': [3], | |
'20': [7, 3], | |
'21': [7, 3], | |
'22': [3], | |
'23': [3], | |
'24': [3], | |
'25': [3, 7, 6], | |
'26': [12], | |
'27': [14], | |
'28': [11], | |
'29': [1], | |
'30': [8], | |
}, | |
mp_f_airraces_01: { | |
'0': [3], | |
'1': [3], | |
'2': [3], | |
'3': [6, 7, 3], | |
'4': [3], | |
}, | |
mp_f_assault: { | |
'0': [3], | |
}, | |
mp_f_battle: { | |
'0': [3], | |
'1': [3], | |
'2': [3], | |
'3': [3, 7], | |
'4': [1], | |
'5': [9], | |
'6': [6, 7, 3], | |
'7': [3], | |
'8': [3], | |
'9': [3, 7], | |
'10': [3], | |
'11': [6, 7, 3], | |
'12': [3, 7], | |
'13': [6, 7, 3], | |
'14': [6, 7, 3], | |
'15': [4], | |
'16': [14], | |
'17': [14], | |
'18': [3], | |
'19': [12], | |
'20': [4], | |
}, | |
mp_f_bikerdlc_01: { | |
'0': [14, 4], | |
'1': [4, 14], | |
'2': [4, 14], | |
'3': [4, 12, 14], | |
'4': [6, 3], | |
'5': [4, 14], | |
'6': [6, 7, 3], | |
'7': [9], | |
'8': [3], | |
'9': [6, 7, 3], | |
'10': [6, 7, 3], | |
'11': [3, 7], | |
'12': [6, 3], | |
'13': [4, 12, 14], | |
'14': [4], | |
'15': [4], | |
'16': [4], | |
'17': [4], | |
'18': [3], | |
'19': [4], | |
'20': [12, 4], | |
'21': [4, 14, 12], | |
'22': [7, 3], | |
'23': [4, 14], | |
'24': [4, 14], | |
'25': [14, 4], | |
'26': [3], | |
'27': [4, 14], | |
'28': [4, 14], | |
'29': [6, 7, 3], | |
'30': [3], | |
'31': [7, 3], | |
'32': [3], | |
'33': [3, 6, 7], | |
}, | |
mp_f_christmas2017: { | |
'0': [14], | |
'1': [14], | |
'2': [3], | |
'3': [1], | |
'4': [1], | |
'5': [8], | |
'6': [4, 14], | |
'7': [1], | |
'8': [3], | |
'9': [14], | |
'10': [3], | |
'11': [4], | |
'12': [3], | |
'13': [1], | |
}, | |
mp_f_christmas2018: { | |
'0': [3], | |
'1': [14], | |
'2': [8], | |
'3': [3], | |
'4': [3], | |
'5': [3], | |
'6': [3], | |
'7': [3], | |
'8': [3], | |
'9': [1], | |
'10': [14], | |
'11': [3], | |
'12': [3], | |
'13': [3], | |
'14': [3], | |
'15': [8], | |
'16': [1], | |
'17': [4, 14], | |
}, | |
mp_f_christmas3: { | |
'0': [4], | |
'1': [6, 7, 3], | |
'2': [14, 4], | |
'3': [7, 3], | |
'4': [11], | |
'5': [14], | |
'6': [11], | |
'7': [14], | |
'8': [0, 4], | |
'9': [4, 0], | |
'10': [6, 7, 3], | |
'11': [6, 7, 3], | |
'12': [1], | |
'13': [9], | |
'14': [14], | |
'15': [14], | |
'16': [3, 7], | |
'17': [7, 3], | |
'18': [3], | |
'19': [14], | |
'20': [14], | |
'21': [14], | |
'22': [3], | |
'23': [3, 7], | |
'24': [3, 7, 6], | |
'25': [3, 7, 6], | |
'26': [14], | |
'27': [14], | |
'28': [3], | |
'29': [3], | |
'30': [6, 7, 3], | |
'31': [6, 7, 3], | |
'32': [3], | |
}, | |
mp_f_executive_01: { | |
'0': [3], | |
'1': [14], | |
'2': [14], | |
'3': [14], | |
'4': [3], | |
'5': [14], | |
'6': [6, 7, 3], | |
'7': [0, 14, 9], | |
'8': [3], | |
'9': [3], | |
'10': [3, 7], | |
'11': [3, 7], | |
'12': [3, 7, 6], | |
'13': [3], | |
'14': [14], | |
'15': [3, 7], | |
'16': [3, 7], | |
}, | |
mp_f_g9ec: { | |
'0': [0], | |
}, | |
mp_f_gunrunning_01: { | |
'0': [11, 14], | |
'1': [11, 14], | |
'2': [14], | |
'3': [3], | |
'4': [3], | |
'5': [3], | |
'6': [3, 6, 7], | |
'7': [11, 14], | |
'8': [3], | |
'9': [3, 7, 6], | |
'10': [11, 4, 14], | |
'11': [4], | |
'12': [4], | |
'13': [4], | |
'14': [14], | |
'15': [11], | |
'16': [11], | |
'17': [3], | |
'18': [3], | |
'19': [11], | |
'20': [3], | |
'21': [3], | |
'22': [9], | |
'23': [14, 11], | |
'24': [3], | |
'25': [1], | |
'26': [14], | |
}, | |
mp_f_heist3: { | |
'0': [3], | |
'1': [3], | |
'2': [3], | |
'3': [3], | |
'4': [9], | |
'5': [9], | |
'6': [3], | |
'7': [3], | |
'8': [3], | |
'9': [11, 14], | |
'10': [14], | |
'11': [3], | |
'12': [14], | |
'13': [14], | |
'14': [5, 9], | |
'15': [9, 5], | |
'16': [1], | |
'17': [11, 14], | |
'18': [3], | |
'19': [3], | |
'20': [3], | |
'21': [3], | |
}, | |
mp_f_heist4: { | |
'0': [3], | |
'1': [3], | |
'2': [9], | |
'3': [9], | |
'4': [9], | |
'5': [11], | |
'6': [1], | |
'7': [14], | |
'8': [3], | |
'9': [6, 7, 3], | |
'10': [3], | |
}, | |
mp_f_htb_01: { | |
'0': [3], | |
}, | |
mp_f_importexport_01: { | |
'0': [3], | |
'1': [7, 3], | |
'2': [3], | |
'3': [6, 7, 3], | |
'4': [1], | |
'5': [6, 7, 3], | |
'6': [6, 7, 1], | |
'7': [4], | |
'8': [3], | |
'9': [3], | |
'10': [1], | |
'11': [1], | |
'12': [1, 3], | |
'13': [1, 3], | |
'14': [3], | |
'15': [8], | |
'16': [11, 14], | |
'17': [3], | |
'18': [3, 1], | |
'19': [11, 14], | |
'20': [11], | |
'21': [11], | |
}, | |
mp_f_january2016: { | |
'0': [3], | |
}, | |
mp_f_lowrider_01: { | |
'0': [14], | |
'1': [4], | |
'2': [9], | |
'3': [9], | |
'4': [3], | |
'5': [3], | |
'6': [9], | |
'7': [3], | |
'8': [3], | |
}, | |
mp_f_lowrider_02: { | |
'0': [11], | |
'1': [11], | |
'2': [14], | |
'3': [6, 7, 3], | |
'4': [3], | |
'5': [3], | |
'6': [3], | |
'7': [14], | |
'8': [14], | |
'9': [14], | |
}, | |
mp_f_luxe_01: { | |
'0': [6, 7, 3], | |
'1': [3, 7, 6], | |
'2': [6, 7, 3], | |
'3': [2], | |
'4': [14], | |
}, | |
mp_f_luxe_02: { | |
'0': [3, 7], | |
'1': [3, 7], | |
'2': [1], | |
}, | |
mp_f_security: { | |
'0': [14], | |
'1': [14], | |
'2': [3], | |
'3': [6, 7, 3], | |
'4': [11], | |
'5': [11], | |
'6': [3, 7], | |
'7': [3], | |
'8': [3], | |
'9': [3], | |
'10': [3], | |
'11': [6, 7, 3], | |
'12': [6, 7, 3], | |
'13': [14], | |
'14': [14], | |
}, | |
mp_f_smuggler_01: { | |
'0': [3, 7], | |
'1': [6, 7, 3], | |
'2': [14], | |
'3': [14], | |
'4': [14], | |
'5': [11], | |
'6': [6, 3, 7], | |
}, | |
mp_f_stunt_01: { | |
'0': [3], | |
'1': [3], | |
'2': [3, 7], | |
'3': [3], | |
'4': [6, 7, 3], | |
'5': [3], | |
'6': [3], | |
'7': [3], | |
'8': [7, 3], | |
'9': [6, 7, 3], | |
}, | |
mp_f_sum2: { | |
'0': [11], | |
'1': [3, 7], | |
'2': [11, 14], | |
'3': [3, 7], | |
'4': [11, 14], | |
'5': [3], | |
'6': [3, 7], | |
'7': [11, 14], | |
'8': [1], | |
'9': [3, 7], | |
'10': [11, 14], | |
'11': [3], | |
'12': [6, 7, 3], | |
'13': [0], | |
'14': [0], | |
'15': [14], | |
'16': [14], | |
'17': [12], | |
'18': [12], | |
'19': [14], | |
'20': [3], | |
'21': [3], | |
'22': [11], | |
'23': [11], | |
'24': [3], | |
}, | |
mp_f_sum2_g9ec: { | |
'0': [0], | |
'1': [0], | |
'2': [0], | |
'3': [0], | |
'4': [0], | |
'5': [0], | |
'6': [0], | |
'7': [0], | |
'8': [0], | |
}, | |
mp_f_sum: { | |
'0': [3], | |
'1': [3], | |
'2': [9], | |
'3': [9], | |
'4': [3], | |
'5': [9], | |
'6': [3, 6, 7], | |
'7': [6, 7, 3], | |
'8': [6, 7, 3], | |
'9': [3], | |
'10': [9], | |
'11': [0], | |
'12': [9], | |
'13': [0], | |
'14': [3], | |
'15': [3], | |
'16': [6, 7, 3], | |
'17': [9], | |
'18': [9], | |
'19': [3], | |
'20': [3], | |
'21': [14], | |
'22': [14], | |
}, | |
mp_f_tuner: { | |
'0': [3, 7, 6], | |
'1': [3], | |
'2': [3], | |
'3': [11, 14], | |
'4': [4, 14], | |
'5': [11, 14], | |
'6': [3, 7], | |
'7': [11, 14], | |
'8': [3], | |
'9': [3], | |
'10': [8], | |
'11': [3], | |
'12': [3], | |
'13': [3], | |
'14': [14], | |
'15': [7, 3], | |
'16': [3], | |
'17': [3], | |
'18': [3, 7, 6], | |
}, | |
mp_f_valentines_02: { | |
'0': [4], | |
'1': [11], | |
'2': [11], | |
'3': [11], | |
'4': [11], | |
'5': [11], | |
}, | |
mp_f_vinewood: { | |
'0': [11, 14], | |
'1': [1], | |
'2': [3, 6, 7], | |
'3': [3, 6, 7], | |
'4': [3], | |
'5': [3], | |
'6': [3], | |
'7': [9], | |
'8': [3], | |
'9': [3], | |
'10': [3], | |
'11': [3, 6, 7], | |
'12': [3, 6], | |
'13': [3], | |
'14': [3], | |
'15': [1], | |
'16': [3], | |
'17': [3, 6, 7], | |
'18': [4], | |
'19': [11], | |
'20': [11], | |
'21': [14], | |
}, | |
mp_f_xmas_03: { | |
'0': [3, 7], | |
'1': [3, 7], | |
}, | |
}; | |
function getDlcData(key) { | |
const splitData = key.split('_'); | |
const drawable: number = parseInt(splitData.pop()); | |
const id: number = parseInt(splitData.pop()); | |
const dlcName = splitData.join('_'); | |
let dlc: number = dlcName === '0' ? parseInt(dlcName) : alt.hash(dlcName); | |
return { dlc, id, drawable }; | |
} | |
/** | |
* Returns all valid torsos for a given top. | |
* | |
* @export | |
* @param {string} dlc | |
* @param {number} drawable | |
* @return | |
*/ | |
export function getTorsosForTop(model: number, dlc: string, drawable: number) { | |
const isMale = model === 1885233650; | |
if (!Torsos[dlc]) { | |
console.log('no dlc'); | |
return []; | |
} | |
if (!Array.isArray(Torsos[dlc][drawable])) { | |
console.log('no category, get fukt'); | |
return []; | |
} | |
if (dlc === '0' && isMale) { | |
dlc = 'mp_m_0'; | |
} | |
if (dlc === '0' && !isMale) { | |
dlc = 'mp_f_0'; | |
} | |
let validTorsos = []; | |
for (let category of Torsos[dlc][drawable]) { | |
if (isMale) { | |
validTorsos = validTorsos.concat(MaleTorsos[category]); | |
} else { | |
validTorsos = validTorsos.concat(FemaleTorsos[category]); | |
} | |
} | |
return validTorsos.map((x) => getDlcData(x)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment