Advertisement
Mister_Stefan

model changer aw

Oct 16th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.04 KB | None | 0 0
  1. -- Main Menu Model Changer & Fortnite Dances by stacky
  2.  
  3. panorama.RunScript([[
  4.     var model = $.GetContextPanel().GetChild(0).FindChildInLayoutFile( 'JsMainmenu_Vanity' );
  5. ]] )
  6.  
  7. local models = {
  8.     {"Invisible"},
  9.     {"Local T Agent", "models/player/custom_player/legacy/tm_phoenix.mdl"},
  10.     {"Local CT Agent", "models/player/custom_player/legacy/ctm_sas.mdl"},
  11.     {"Blackwolf | Sabre", "models/player/custom_player/legacy/tm_balkan_variantj.mdl"},
  12.     {"Rezan The Ready | Sabre", "models/player/custom_player/legacy/tm_balkan_variantg.mdl"},
  13.     {"Maximus | Sabre", "models/player/custom_player/legacy/tm_balkan_varianti.mdl"},
  14.     {"Dragomir | Sabre", "models/player/custom_player/legacy/tm_balkan_variantf.mdl"},
  15.     {"Lt. Commander Ricksaw | NSWC SEAL", "models/player/custom_player/legacy/ctm_st6_varianti.mdl"},
  16.     {"'Two Times' McCoy | USAF TACP", "models/player/custom_player/legacy/ctm_st6_variantm.mdl"},
  17.     {"Buckshot | NSWC SEAL", "models/player/custom_player/legacy/ctm_st6_variantg.mdl"},
  18.     {"Seal Team 6 Soldier | NSWC SEAL", "models/player/custom_player/legacy/ctm_st6_variante.mdl"},
  19.     {"3rd Commando Company | KSK", "models/player/custom_player/legacy/ctm_st6_variantk.mdl"},
  20.     {"'The Doctor' Romanov | Sabre", "models/player/custom_player/legacy/tm_balkan_varianth.mdl"},
  21.     {"Michael Syfers  | FBI Sniper", "models/player/custom_player/legacy/ctm_fbi_varianth.mdl"},
  22.     {"Markus Delrow | FBI HRT", "models/player/custom_player/legacy/ctm_fbi_variantg.mdl"},
  23.     {"Operator | FBI SWAT", "models/player/custom_player/legacy/ctm_fbi_variantf.mdl"},
  24.     {"Slingshot | Phoenix", "models/player/custom_player/legacy/tm_phoenix_variantg.mdl"},
  25.     {"Enforcer | Phoenix", "models/player/custom_player/legacy/tm_phoenix_variantf.mdl"},
  26.     {"Soldier | Phoenix", "models/player/custom_player/legacy/tm_phoenix_varianth.mdl"},
  27.     {"The Elite Mr. Muhlik | Elite Crew", "models/player/custom_player/legacy/tm_leet_variantf.mdl"},
  28.     {"Prof. Shahmat | Elite Crew", "models/player/custom_player/legacy/tm_leet_varianti.mdl"},
  29.     {"Osiris | Elite Crew", "models/player/custom_player/legacy/tm_leet_varianth.mdl"},
  30.     {"Ground Rebel  | Elite Crew", "models/player/custom_player/legacy/tm_leet_variantg.mdl"},
  31.     {"Special Agent Ava | FBI", "models/player/custom_player/legacy/ctm_fbi_variantb.mdl"},
  32.     {"B Squadron Officer | SAS", "models/player/custom_player/legacy/ctm_sas_variantf.mdl"},
  33.     {"Anarchist", "models/player/custom_player/legacy/tm_anarchist.mdl"},
  34.     {"Anarchist (Variant A)", "models/player/custom_player/legacy/tm_anarchist_varianta.mdl"},
  35.     {"Anarchist (Variant B)", "models/player/custom_player/legacy/tm_anarchist_variantb.mdl"},
  36.     {"Anarchist (Variant C)", "models/player/custom_player/legacy/tm_anarchist_variantc.mdl"},
  37.     {"Anarchist (Variant D)", "models/player/custom_player/legacy/tm_anarchist_variantd.mdl"},
  38.     {"Pirate", "models/player/custom_player/legacy/tm_pirate.mdl"},
  39.     {"Pirate (Variant A)", "models/player/custom_player/legacy/tm_pirate_varianta.mdl"},
  40.     {"Pirate (Variant B)", "models/player/custom_player/legacy/tm_pirate_variantb.mdl"},
  41.     {"Pirate (Variant C)", "models/player/custom_player/legacy/tm_pirate_variantc.mdl"},
  42.     {"Pirate (Variant D)", "models/player/custom_player/legacy/tm_pirate_variantd.mdl"},
  43.     {"Professional", "models/player/custom_player/legacy/tm_professional.mdl"},
  44.     {"Professional (Variant 1)", "models/player/custom_player/legacy/tm_professional_var1.mdl"},
  45.     {"Professional (Variant 2)", "models/player/custom_player/legacy/tm_professional_var2.mdl"},
  46.     {"Professional (Variant 3)", "models/player/custom_player/legacy/tm_professional_var3.mdl"},
  47.     {"Professional (Variant 4)", "models/player/custom_player/legacy/tm_professional_var4.mdl"},
  48.     {"Separatist", "models/player/custom_player/legacy/tm_separatist.mdl"},
  49.     {"Separatist (Variant A)", "models/player/custom_player/legacy/tm_separatist_varianta.mdl"},
  50.     {"Separatist (Variant B)", "models/player/custom_player/legacy/tm_separatist_variantb.mdl"},
  51.     {"Separatist (Variant C)", "models/player/custom_player/legacy/tm_separatist_variantc.mdl"},
  52.     {"Separatist (Variant D)", "models/player/custom_player/legacy/tm_separatist_variantd.mdl"},
  53.     {"GIGN", "models/player/custom_player/legacy/ctm_gign.mdl"},
  54.     {"GIGN (Variant A)", "models/player/custom_player/legacy/ctm_gign_varianta.mdl"},
  55.     {"GIGN (Variant B)", "models/player/custom_player/legacy/ctm_gign_variantb.mdl"},
  56.     {"GIGN (Variant C)", "models/player/custom_player/legacy/ctm_gign_variantc.mdl"},
  57.     {"GIGN (Variant D)", "models/player/custom_player/legacy/ctm_gign_variantd.mdl"},
  58.     {"GSG-9", "models/player/custom_player/legacy/ctm_gsg9.mdl"},
  59.     {"GSG-9 (Variant A)", "models/player/custom_player/legacy/ctm_gsg9_varianta.mdl"},
  60.     {"GSG-9 (Variant B)", "models/player/custom_player/legacy/ctm_gsg9_variantb.mdl"},
  61.     {"GSG-9 (Variant C)", "models/player/custom_player/legacy/ctm_gsg9_variantc.mdl"},
  62.     {"GSG-9 (Variant D)", "models/player/custom_player/legacy/ctm_gsg9_variantd.mdl"},
  63.     {"IDF", "models/player/custom_player/legacy/ctm_idf.mdl"},
  64.     {"IDF (Variant B)", "models/player/custom_player/legacy/ctm_idf_variantb.mdl"},
  65.     {"IDF (Variant C)", "models/player/custom_player/legacy/ctm_idf_variantc.mdl"},
  66.     {"IDF (Variant D)", "models/player/custom_player/legacy/ctm_idf_variantd.mdl"},
  67.     {"IDF (Variant E)", "models/player/custom_player/legacy/ctm_idf_variante.mdl"},
  68.     {"IDF (Variant F)", "models/player/custom_player/legacy/ctm_idf_variantf.mdl"},
  69.     {"SWAT", "models/player/custom_player/legacy/ctm_swat.mdl"},
  70.     {"SWAT (Variant A)", "models/player/custom_player/legacy/ctm_swat_varianta.mdl"},
  71.     {"SWAT (Variant B)", "models/player/custom_player/legacy/ctm_swat_variantb.mdl"},
  72.     {"SWAT (Variant C)", "models/player/custom_player/legacy/ctm_swat_variantc.mdl"},
  73.     {"SWAT (Variant D)", "models/player/custom_player/legacy/ctm_swat_variantd.mdl"},
  74.     {"SAS (Variant A)", "models/player/custom_player/legacy/ctm_sas_varianta.mdl"},
  75.     {"SAS (Variant B)", "models/player/custom_player/legacy/ctm_sas_variantb.mdl"},
  76.     {"SAS (Variant C)", "models/player/custom_player/legacy/ctm_sas_variantc.mdl"},
  77.     {"SAS (Variant D)", "models/player/custom_player/legacy/ctm_sas_variantd.mdl"},
  78.     {"ST6", "models/player/custom_player/legacy/ctm_st6.mdl"},
  79.     {"ST6 (Variant A)", "models/player/custom_player/legacy/ctm_st6_varianta.mdl"},
  80.     {"ST6 (Variant B)", "models/player/custom_player/legacy/ctm_st6_variantb.mdl"},
  81.     {"ST6 (Variant C)", "models/player/custom_player/legacy/ctm_st6_variantc.mdl"},
  82.     {"ST6 (Variant D)", "models/player/custom_player/legacy/ctm_st6_variantd.mdl"},
  83.     {"Balkan (Variant E)", "models/player/custom_player/legacy/tm_balkan_variante.mdl"},
  84.     {"Balkan (Variant A)", "models/player/custom_player/legacy/tm_balkan_varianta.mdl"},
  85.     {"Balkan (Variant B)", "models/player/custom_player/legacy/tm_balkan_variantb.mdl"},
  86.     {"Balkan (Variant C)", "models/player/custom_player/legacy/tm_balkan_variantc.mdl"},
  87.     {"Balkan (Variant D)", "models/player/custom_player/legacy/tm_balkan_variantd.mdl"},
  88.     {"Jumpsuit (Variant A)", "models/player/custom_player/legacy/tm_jumpsuit_varianta.mdl"},
  89.     {"Jumpsuit (Variant B)", "models/player/custom_player/legacy/tm_jumpsuit_variantb.mdl"},
  90.     {"Jumpsuit (Variant C)", "models/player/custom_player/legacy/tm_jumpsuit_variantc.mdl"},
  91.     {"Phoenix Heavy", "models/player/custom_player/legacy/tm_phoenix_heavy.mdl"},
  92.     {"Heavy", "models/player/custom_player/legacy/ctm_heavy.mdl"},
  93.     {"Leet (Variant A)", "models/player/custom_player/legacy/tm_leet_varianta.mdl"},
  94.     {"Leet (Variant B)", "models/player/custom_player/legacy/tm_leet_variantb.mdl"},
  95.     {"Leet (Variant C)", "models/player/custom_player/legacy/tm_leet_variantc.mdl"},
  96.     {"Leet (Variant D)", "models/player/custom_player/legacy/tm_leet_variantd.mdl"},
  97.     {"Leet (Variant E)", "models/player/custom_player/legacy/tm_leet_variante.mdl"},
  98.     {"Phoenix", "models/player/custom_player/legacy/tm_phoenix.mdl"},
  99.     {"Phoenix (Variant A)", "models/player/custom_player/legacy/tm_phoenix_varianta.mdl"},
  100.     {"Phoenix (Variant B)", "models/player/custom_player/legacy/tm_phoenix_variantb.mdl"},
  101.     {"Phoenix (Variant C)", "models/player/custom_player/legacy/tm_phoenix_variantc.mdl"},
  102.     {"Phoenix (Variant D)", "models/player/custom_player/legacy/tm_phoenix_variantd.mdl"},
  103.     {"FBI", "models/player/custom_player/legacy/ctm_fbi.mdl"},
  104.     {"FBI (Variant A)", "models/player/custom_player/legacy/ctm_fbi_varianta.mdl"},
  105.     {"FBI (Variant C)", "models/player/custom_player/legacy/ctm_fbi_variantc.mdl"},
  106.     {"FBI (Variant D)", "models/player/custom_player/legacy/ctm_fbi_variantd.mdl"},
  107.     {"FBI (Variant E)", "models/player/custom_player/legacy/ctm_fbi_variante.mdl"},
  108.     {"SAS", "models/player/custom_player/legacy/ctm_sas.mdl"},
  109.     {"Chicken", "models/chicken/chicken.mdl"},
  110.     {"Cuddle Team Leader", "models/player/custom_player/legacy/cuddleleader.mdl"}
  111. }
  112.  
  113. local dances = {
  114.     {"None"},
  115.     {"Fonzie Pistol", "Emote_Fonzie_Pistol"},
  116.     {"Bring It On", "Emote_Bring_It_On"},
  117.     {"Thumbs Down", "Emote_ThumbsDown"},
  118.     {"Thumbs Up", "Emote_ThumbsUp"},
  119.     {"Celebration Loop", "Emote_Celebration_Loop"},
  120.     {"Blow Kiss", "Emote_BlowKiss"},
  121.     {"Calculated", "Emote_Calculated"},
  122.     {"Confused", "Emote_Confused",},
  123.     {"Chug", "Emote_Chug"},
  124.     {"Cry", "Emote_Cry"},
  125.     {"Dusting Off Hands", "Emote_DustingOffHands"},
  126.     {"Dust Off Shoulders", "Emote_DustOffShoulders",},
  127.     {"Facepalm", "Emote_Facepalm"},
  128.     {"Fishing", "Emote_Fishing"},
  129.     {"Flex", "Emote_Flex"},
  130.     {"Golfclap", "Emote_golfclap",},
  131.     {"Hand Signals", "Emote_HandSignals"},
  132.     {"Heel Click", "Emote_HeelClick"},
  133.     {"Hotstuff", "Emote_Hotstuff"},
  134.     {"IBreakYou", "Emote_IBreakYou",},
  135.     {"IHeartYou", "Emote_IHeartYou"},
  136.     {"Kung", "Emote_Kung-Fu_Salute"},
  137.     {"Laugh", "Emote_Laugh"},
  138.     {"Luchador", "Emote_Luchador",},
  139.     {"Make It Rain", "Emote_Make_It_Rain"},
  140.     {"Not Today", "Emote_NotToday"},
  141.     {"[RPS] Paper", "Emote_RockPaperScissor_Paper"},
  142.     {"[RPS] Rock", "Emote_RockPaperScissor_Rock",},
  143.     {"[RPS] Scissor", "Emote_RockPaperScissor_Scissor"},
  144.     {"Salt", "Emote_Salt"},
  145.     {"Salute", "Emote_Salute"},
  146.     {"Smooth Drive", "Emote_SmoothDrive",},
  147.     {"Snap", "Emote_Snap"},
  148.     {"StageBow", "Emote_StageBow",},
  149.     {"Wave2", "Emote_Wave2"},
  150.     {"Yeet", "Emote_Yeet"},
  151.     {"Dance Moves", "DanceMoves"},
  152.     {"Zippy Dance", "Emote_Zippy_Dance"},
  153.     {"Electro Shuffle", "ElectroShuffle"},
  154.     {"Aerobic Champ", "Emote_AerobicChamp"},
  155.     {"Bendy", "Emote_Bendy"},
  156.     {"Band Of The Fort", "Emote_BandOfTheFort"},
  157.     {"Capoeira", "Emote_Capoeira"},
  158.     {"Charleston", "Emote_Charleston"},
  159.     {"Chicken", "Emote_Chicken"},
  160.     {"No Bones", "Emote_Dance_NoBones",},
  161.     {"Shoot", "Emote_Dance_Shoot"},
  162.     {"Swipe It", "Emote_Dance_SwipeIt"},
  163.     {"Disco 1", "Emote_Dance_Disco_T3"},
  164.     {"Disco 2", "Emote_DG_Disco",},
  165.     {"Worm", "Emote_Dance_Worm"},
  166.     {"Loser", "Emote_Dance_Loser"},
  167.     {"Breakdance", "Emote_Dance_Breakdance"},
  168.     {"Pump", "Emote_Dance_Pump",},
  169.     {"Ride The Pony", "Emote_Dance_RideThePony"},
  170.     {"Dab", "Emote_Dab"},
  171.     {"Fancy Feet", "Emote_FancyFeet",},
  172.     {"Floss Dance", "Emote_FlossDance"},
  173.     {"Flippn Sexy", "Emote_FlippnSexy"},
  174.     {"Fresh", "Emote_Fresh"},
  175.     {"Groove Jam", "Emote_GrooveJam",},
  176.     {"Guitar", "Emote_guitar"},
  177.     {"Hiphop", "Emote_Hiphop_01"},
  178.     {"Korean Eagle", "Emote_KoreanEagle",},
  179.     {"Kpop", "Emote_Kpop_02"},
  180.     {"Living Large", "Emote_LivingLarge"},
  181.     {"Maracas", "Emote_Maracas"},
  182.     {"Pop Lock", "Emote_PopLock"},
  183.     {"Pop Rock", "Emote_PopRock"},
  184.     {"Robot Dance", "Emote_RobotDance"},
  185.     {"T-Rex", "Emote_T-Rex",},
  186.     {"Techno Zombie", "Emote_TechnoZombie"},
  187.     {"Twist", "Emote_Twist"},
  188.     {"Wiggle", "Emote_Wiggle"},
  189.     {"You're Awesome", "Emote_Youre_Awesome"}
  190. }
  191.  
  192. local lastModel = models[1][1]
  193.  
  194. local REFERENCE = gui.Reference( "Visuals", "Other" )
  195. local GBOX = gui.Groupbox( REFERENCE, "Main Menu Model Changer", 328, 365, 298, 0 )
  196.  
  197. local MODEL = gui.Combobox( GBOX, "model.change", "Main Menu Model", "" )
  198.  
  199. local DANCE = gui.Combobox( GBOX, "model.dance", "Fortnite Dance", "" )
  200. local APPLY_DANCE = gui.Button( GBOX, "Apply Dance", function()
  201.     local model_path = models[MODEL:GetValue() + 1][2]
  202.     local dance_path = dances[DANCE:GetValue() + 1][2]
  203.     panorama.RunScript([[
  204.         model = $.GetContextPanel().GetChild(0).FindChildInLayoutFile( 'JsMainmenu_Vanity' );
  205.         model.visible = true;
  206.         model.SetScene("resource/ui/fornite_dances.res", "]] .. model_path .. [[", false)
  207.         model.PlaySequence("]] .. dance_path .. [[", true)
  208.     ]] )
  209. end )
  210.  
  211. local MODEL_CHANGECOLOR = gui.Checkbox( GBOX, "model.changecolor", "Change Color", false )
  212. local MODEL_COLOR = gui.ColorPicker( MODEL_CHANGECOLOR, "model.color", "cock", 255, 0, 0, 255 )
  213.  
  214. local model_names = {}
  215. for i = 1, #models do
  216.     table.insert(model_names, models[i][1])
  217. end
  218. MODEL:SetOptions(unpack(model_names))
  219.  
  220. local dance_names = {}
  221. for i = 1, #dances do
  222.     table.insert(dance_names, dances[i][1])
  223. end
  224. DANCE:SetOptions(unpack(dance_names))
  225.  
  226. callbacks.Register( "Draw", function()
  227.     if entities.GetLocalPlayer() then return end
  228.     if MODEL_CHANGECOLOR:GetValue() then
  229.         local r, g, b, a = MODEL_COLOR:GetValue()  
  230.         panorama.RunScript( [[
  231.             model = $.GetContextPanel().GetChild(0).FindChildInLayoutFile( 'JsMainmenu_Vanity' );
  232.             model.SetAmbientLightColor(]] .. r .. [[, ]] .. g .. [[, ]] .. b .. [[);
  233.         ]] )
  234.     end
  235.  
  236.     if lastModel ~= models[MODEL:GetValue() + 1][1] then
  237.         lastModel = models[MODEL:GetValue() + 1][1]
  238.         local model_path = models[MODEL:GetValue() + 1][2]
  239.         if model_path == nil then
  240.             panorama.RunScript([[
  241.                 model = $.GetContextPanel().GetChild(0).FindChildInLayoutFile( 'JsMainmenu_Vanity' );
  242.                 model.visible = false;
  243.             ]] )    
  244.         else
  245.             panorama.RunScript([[
  246.                 model = $.GetContextPanel().GetChild(0).FindChildInLayoutFile( 'JsMainmenu_Vanity' );
  247.                 model.visible = true;
  248.                 model.SetScene("resource/ui/econ/ItemModelPanelCharMainMenu.res", "models/player/custom_player/legacy/ctm_sas.mdl", false)
  249.                 model.SetSceneModel("]] .. model_path .. [[")
  250.             ]] )    
  251.         end
  252.     end
  253. end )
  254.  
  255.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement