Arsenoloudios

revamp.lua

Apr 3rd, 2022 (edited)
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.57 KB | None | 0 0
  1. SET_GLOBAL = {
  2.     int = function(global, value)
  3.         script_global:new(global):set_int64(value)
  4.     end,
  5.     float = function(global, value)
  6.         script_global:new(global):set_float(value)
  7.     end
  8. }
  9.  
  10. function mpx()
  11.     return "MP" .. script_global:new(1574907):get_int64() .. "_"
  12. end
  13.  
  14.  
  15.  
  16. function add_to_history(player, message, scope)
  17.     system.fiber(function(callback)
  18.         local chat_scaleform = GRAPHICS.REQUEST_SCALEFORM_MOVIE("multiplayer_chat")
  19.         GRAPHICS.DRAW_SCALEFORM_MOVIE_FULLSCREEN(chat_scaleform, 255, 255, 255, 255, 0)
  20.         GRAPHICS.BEGIN_SCALEFORM_MOVIE_METHOD(chat_scaleform, "ADD_MESSAGE")
  21.         GRAPHICS.SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING(player)
  22.         GRAPHICS.SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING(message)
  23.         GRAPHICS.SCALEFORM_MOVIE_METHOD_ADD_PARAM_TEXTURE_NAME_STRING(scope)
  24.         GRAPHICS.SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true)
  25.         GRAPHICS.END_SCALEFORM_MOVIE_METHOD()
  26.     end)
  27. end
  28.  
  29. function set_statTable(statTable)
  30.     for _,v in pairs(statTable) do
  31.         if string.match(v[1], "MPPLY") then
  32.             system.fiber(function(callback)
  33.             STATS.STAT_SET_INT(MISC.GET_HASH_KEY(v[1]), v[2], true)
  34.             end)
  35.         else
  36.             system.fiber(function(callback)
  37.                 STATS.STAT_SET_INT(MISC.GET_HASH_KEY(mpx() .. v[1]), v[2], true)
  38.             end)
  39.         end
  40.     end
  41.     return true
  42. end
  43.  
  44.  
  45. function OnChatMsg(pid, message_text)
  46.     system.fiber(function(callback) if pid ~=  PLAYER.PLAYER_ID() then return end end)
  47.     if message_text:lower():find("^!nocheat") ~= nil then
  48.         local statTableReport = { {"MPPLY_FRIENDLY", 100},{"MPPLY_HELPFUL", 100}, {"MPPLY_COMMEND_STRENGTH", 16}, {"MPPLY_REPORT_STRENGTH", 16}, {"MPPLY_GRIEFING", 0}, {"MPPLY_GAME_EXPLOITS", 0}, {"MPPLY_EXPLOITS", 0}, {"MPPLY_BAD_CREW_STATUS", 0}, {"MPPLY_OFFENSIVE_LANGUAGE", 0}, {"MPPLY_VC_HATE", 0}, {"MPPLY_VC_ANNOYINGME", 0}, {"MPPLY_OFFENSIVE_TAGPLATE", 0}, {"MPPLY_OFFENSIVE_UGC", 0}, {"MPPLY_PLAYERMADE_DESC", 0}, {"MPPLY_PLAYERMADE_TITLE", 0}, {"MPPLY_BAD_CREW_EMBLEM", 0}, {"MPPLY_BAD_CREW_MOTTO", 0}, {"MPPLY_BAD_CREW_NAME", 0}, {"MPPLY_BAD_CREW_STATUS", 0}, {"MPPLY_IS_CHEATER", 0}, {"MPPLY_IS_CHEATER_TIME", 0}, {"SCADMIN_IS_CHEATER", 0}, {"MPPLY_BECAME_CHEATER_DT", 0}, {"MPPLY_BECAME_CHEATER_NUM", 0}, {"MPPLY_WAS_I_CHEATER", 0}, {"TIMES_CHEATED", 0}, {"CHEAT_BITSET", 0}, {"DESTROYED_PVEHICLES", 0}, {"MPPLY_LAST_REPORT_PENALTY", 0}, {"MPPLY_LTS_CHEAT_END", 0}, {"MPPLY_LTS_CHEAT_QUIT", 0}, {"MPPLY_LTS_CHEAT_START", 0}, {"MPPLY_LTS_CHEAT_TALLY", 0}, {"MPPLY_DROPOUTRATE", 0}, {"MPPLY_MGAME_CHEAT_END", 0}, {"MPPLY_MGAME_CHEAT_QUIT", 0}, {"MPPLY_MGAME_CHEAT_START", 0}, {"MPPLY_MGAME_CHEAT_TALLY", 0}, {"MPPLY_MC_CHEAT_END", 0}, {"MPPLY_MC_CHEAT_QUIT", 0}, {"MPPLY_MC_CHEAT_START", 0}, {"MPPLY_MC_CHEAT_TALLY", 0}, {"MPPLY_PARA_CHEAT_END", 0}, {"MPPLY_PARA_CHEAT_QUIT", 0}, {"MPPLY_PARA_CHEAT_START", 0}, {"MPPLY_PARA_CHEAT_TALLY", 0}, {"MPPLY_RACE_CHEAT_END", 0}, {"MPPLY_RACE_CHEAT_QUIT", 0}, {"MPPLY_RACE_CHEAT_START", 0}, {"MPPLY_RACE_CHEAT_TALLY", 0}, {"MPPLY_CAP_CHEAT_END", 0}, {"MPPLY_CAP_CHEAT_QUIT", 0}, {"MPPLY_CAP_CHEAT_START", 0}, {"MPPLY_CAP_CHEAT_TALLY", 0}, {"MPPLY_SUR_CHEAT_END", 0}, {"MPPLY_SUR_CHEAT_QUIT", 0}, {"MPPLY_SUR_CHEAT_START", 0}, {"MPPLY_SUR_CHEAT_TALLY", 0}, {"MPPLY_FMEVN_CHEAT_END", 0}, {"MPPLY_FMEVN_CHEAT_QUIT", 0}, {"MPPLY_FMEVN_CHEAT_START", 0}, {"MPPLY_FMEVN_CHEAT_TALLY", 0}, {"MPPLY_VOTED_OUT", 0}, {"MPPLY_VOTED_OUT_DELTA", 0}, {"MPPLY_VOTED_OUT_QUIT", 0}, {"MPPLY_OVERALL_CHEAT", 0}, }
  49.         if set_statTable(statTableReport) then
  50.             add_to_history("Admin", "Removed Cheater Stats", "Revamped Recovery")
  51.         end
  52.     return
  53.     end
  54.  
  55.     if message_text:lower():find("^!alientattoo") ~= nil then
  56.     system.fiber(function(callback)
  57.         if PED.IS_PED_MALE(PLAYER.PLAYER_PED_ID()) then
  58.             STATS.STAT_SET_INT(MISC.GET_HASH_KEY(mpx() .. 'TATTOO_FM_CURRENT_32'), 32768, true)
  59.         else
  60.             STATS.STAT_SET_INT(MISC.GET_HASH_KEY(mpx() .. 'TATTOO_FM_CURRENT_32'), 67108864, true)
  61.         end
  62.         add_to_history("Admin", "Applied Alien Tattoo", "Revamped Recovery")
  63.         lobby.change_session(10)
  64.     end)
  65.     return
  66.     end
  67.     if message_text:lower():find("^!unlockxmasliveries") ~= nil then
  68.     local input = string.match(message_text:lower(), " (.*)")
  69.     system.fiber(function(callback)
  70.         if input ~= nil then
  71.             if input == "on" then
  72.                 for i=0,20 do
  73.                     STATS.STAT_SET_BOOL(MISC.GET_HASH_KEY('MPPLY_XMASLIVERIES' .. i), true, true)
  74.                 end
  75.                 add_to_history("Admin", "Unlocked XMAS Liveries", "Revamped Recovery")
  76.             elseif input == "off" then
  77.                 for i=0,20 do
  78.                     STATS.STAT_SET_BOOL(MISC.GET_HASH_KEY('MPPLY_XMASLIVERIES' .. i), false, true)
  79.                 end
  80.                 add_to_history("Admin", "Removed XMAS Liveries", "Revamped Recovery")
  81.            
  82.             else
  83.                 add_to_history("Admin", "You must specify on or off example, !unlockxmasliveries on", "Revamped Recovery")
  84.             end
  85.         else
  86.             add_to_history("Admin", "You must specify on or off example, !unlockxmasliveries on", "Revamped Recovery")
  87.         end
  88.     end)
  89.     return
  90.     end
  91.  
  92.     if message_text:lower():find("^!abilitiesmax") ~= nil then
  93.     system.fiber(function(callback)
  94.  
  95.     local statTable = { {"SPECIAL_ABILITY", 100}, {"STAMINA", 100}, {"STRENGTH", 100}, {"LUNG_CAPACITY", 100}, {"WHEELIE_ABILITY", 100}, {"FLYING_ABILITY", 100}, {"SHOOTING_ABILITY", 100}, {"SCRIPT_INCREASE_STAM", 100}, {"SCRIPT_INCREASE_STRN", 100}, {"SCRIPT_INCREASE_LUNG", 100}, {"SCRIPT_INCREASE_DRIV", 100}, {"SCRIPT_INCREASE_FLY", 100}, {"SCRIPT_INCREASE_SHO", 100}, {"SCRIPT_INCREASE_STL", 100}, {"SCRIPT_INCREASE_MECH", 100},
  96.                 {"CHAR_ABILITY_1_UNLCK", 1}, {"CHAR_FM_ABILITY_1_UNLCK", 1}, --idk about these didnt check freemode
  97.                 {"CHAR_ABILITY_2_UNLCK", 1}, {"CHAR_FM_ABILITY_2_UNLCK", 1}, --idk about these didnt check freemode
  98.                 {"CHAR_ABILITY_3_UNLCK", 1}, {"CHAR_FM_ABILITY_3_UNLCK", 1}, --idk about these didnt check freemode
  99.     }
  100.         if set_statTable(statTable) then
  101.             add_to_history("Admin", "Maxed Abilities", "Revamped Recovery")
  102.         end
  103.     end)
  104.     return
  105.     end
  106.     if message_text:lower():find("^!clubmax") ~= nil then
  107.     system.fiber(function(callback)
  108.  
  109.     local statTable = { {"CLUB_POPULARITY", 1000}, }
  110.         if set_statTable(statTable) then
  111.             add_to_history("Admin", "Maxed out Night Club Popularity "Revamped Recovery")
  112.         end
  113.     end)
  114.     return
  115.     end
  116.     if message_text:lower():find("^!unlockmisc1") ~= nil then
  117.     local input = string.match(message_text:lower(), " (.*)")
  118.     system.fiber(function(callback)
  119.         if input ~= nil then
  120.             if input == "on" then
  121.                 SET_GLOBAL.int(262145+23973, 1)
  122.                 SET_GLOBAL.int(262145+23974, 1)
  123.                 SET_GLOBAL.int(262145+23975, 1)
  124.                 SET_GLOBAL.int(262145+23976, 1)
  125.                 SET_GLOBAL.int(262145+23977, 1)
  126.                 SET_GLOBAL.int(262145+23978, 1)
  127.                 SET_GLOBAL.int(262145+23979, 1)
  128.                 SET_GLOBAL.int(262145+23980, 1)
  129.                 SET_GLOBAL.int(262145+23981, 1)
  130.                 SET_GLOBAL.int(262145+23982, 1)
  131.                 SET_GLOBAL.int(262145+23983, 1)
  132.                 SET_GLOBAL.int(262145+23984, 1)
  133.                 SET_GLOBAL.int(262145+23985, 1)
  134.                 SET_GLOBAL.int(262145+23986, 1)
  135.                 SET_GLOBAL.int(262145+23989, 1)
  136.                 SET_GLOBAL.int(262145+23990, 1)
  137.                 SET_GLOBAL.int(262145+23991, 1)
  138.                 SET_GLOBAL.int(262145+23992, 1)
  139.                 SET_GLOBAL.int(262145+23993, 1)
  140.                 SET_GLOBAL.int(262145+23994, 1)
  141.                 SET_GLOBAL.int(262145+23995, 1)
  142.                 SET_GLOBAL.int(262145+23996, 1)
  143.                 SET_GLOBAL.int(262145+23997, 1)
  144.                 SET_GLOBAL.int(262145+23998, 1)
  145.                 SET_GLOBAL.int(262145+24465, 1)
  146.                 SET_GLOBAL.int(262145+24497, 1)
  147.                 SET_GLOBAL.int(262145+24498, 1)
  148.                 SET_GLOBAL.int(262145+24499, 1)
  149.                 SET_GLOBAL.int(262145+24500, 1)
  150.                 SET_GLOBAL.int(262145+24501, 1)
  151.                 SET_GLOBAL.int(262145+24502, 1)
  152.                 SET_GLOBAL.int(262145+24503, 1)
  153.                 SET_GLOBAL.int(262145+24504, 1)
  154.                 SET_GLOBAL.int(262145+24505, 1)
  155.                 SET_GLOBAL.int(262145+24506, 1)
  156.                 SET_GLOBAL.int(262145+24507, 1)
  157.                 SET_GLOBAL.int(262145+24508, 1)
  158.                 SET_GLOBAL.int(262145+24509, 1)
  159.                 SET_GLOBAL.int(262145+24510, 1)
  160.                 SET_GLOBAL.int(262145+24511, 1)
  161.                 SET_GLOBAL.int(262145+24512, 1)
  162.                 SET_GLOBAL.int(262145+24513, 1)
  163.                 SET_GLOBAL.int(262145+24514, 1)
  164.                 SET_GLOBAL.int(262145+24515, 1)
  165.                 SET_GLOBAL.int(262145+24516, 1)
  166.                 add_to_history("Admin", "Unlocked Brand & Knockoff & Radio T-shirts", "Revamped Recovery")
  167.             elseif input == "off" then
  168.                 SET_GLOBAL.int(262145+23973, 0)
  169.                 SET_GLOBAL.int(262145+23974, 0)
  170.                 SET_GLOBAL.int(262145+23975, 0)
  171.                 SET_GLOBAL.int(262145+23976, 0)
  172.                 SET_GLOBAL.int(262145+23977, 0)
  173.                 SET_GLOBAL.int(262145+23978, 0)
  174.                 SET_GLOBAL.int(262145+23979, 0)
  175.                 SET_GLOBAL.int(262145+23980, 0)
  176.                 SET_GLOBAL.int(262145+23981, 0)
  177.                 SET_GLOBAL.int(262145+23982, 0)
  178.                 SET_GLOBAL.int(262145+23983, 0)
  179.                 SET_GLOBAL.int(262145+23984, 0)
  180.                 SET_GLOBAL.int(262145+23985, 0)
  181.                 SET_GLOBAL.int(262145+23986, 0)
  182.                 SET_GLOBAL.int(262145+23989, 0)
  183.                 SET_GLOBAL.int(262145+23990, 0)
  184.                 SET_GLOBAL.int(262145+23991, 0)
  185.                 SET_GLOBAL.int(262145+23992, 0)
  186.                 SET_GLOBAL.int(262145+23993, 0)
  187.                 SET_GLOBAL.int(262145+23994, 0)
  188.                 SET_GLOBAL.int(262145+23995, 0)
  189.                 SET_GLOBAL.int(262145+23996, 0)
  190.                 SET_GLOBAL.int(262145+23997, 0)
  191.                 SET_GLOBAL.int(262145+23998, 0)
  192.                 SET_GLOBAL.int(262145+24465, 0)
  193.                 SET_GLOBAL.int(262145+24497, 0)
  194.                 SET_GLOBAL.int(262145+24498, 0)
  195.                 SET_GLOBAL.int(262145+24499, 0)
  196.                 SET_GLOBAL.int(262145+24500, 0)
  197.                 SET_GLOBAL.int(262145+24501, 0)
  198.                 SET_GLOBAL.int(262145+24502, 0)
  199.                 SET_GLOBAL.int(262145+24503, 0)
  200.                 SET_GLOBAL.int(262145+24504, 0)
  201.                 SET_GLOBAL.int(262145+24505, 0)
  202.                 SET_GLOBAL.int(262145+24506, 0)
  203.                 SET_GLOBAL.int(262145+24507, 0)
  204.                 SET_GLOBAL.int(262145+24508, 0)
  205.                 SET_GLOBAL.int(262145+24509, 0)
  206.                 SET_GLOBAL.int(262145+24510, 0)
  207.                 SET_GLOBAL.int(262145+24511, 0)
  208.                 SET_GLOBAL.int(262145+24512, 0)
  209.                 SET_GLOBAL.int(262145+24513, 0)
  210.                 SET_GLOBAL.int(262145+24514, 0)
  211.                 SET_GLOBAL.int(262145+24515, 0)
  212.                 SET_GLOBAL.int(262145+24516, 0)
  213.                 add_to_history("Admin", "Removed Brand & Knockoff & Radio T-shirts", "Revamped Recovery")
  214.            
  215.             else
  216.                 add_to_history("Admin", "You must specify on or off example, !unlockmisc1 on", "Revamped Recovery")
  217.             end
  218.         else
  219.             add_to_history("Admin", "You must specify on or off example, !unlockmisc1 on", "Revamped Recovery")
  220.         end
  221.     end)
  222.     return
  223.     end
  224.  
  225.     if message_text:lower():find("^!nightclubprodtime") ~= nil then
  226.     local input = string.match(message_text:lower(), " (.*)")
  227.     system.fiber(function(callback)
  228.         if input ~= nil then
  229.             if input == "on" then
  230.                 SET_GLOBAL.float(262145+24141, 0.1)
  231.                 SET_GLOBAL.int(262145+24134, 1)
  232.                 SET_GLOBAL.int(262145+24135, 1)
  233.                 SET_GLOBAL.int(262145+24136, 1)
  234.                 SET_GLOBAL.int(262145+24137, 1)
  235.                 SET_GLOBAL.int(262145+24138, 1)
  236.                 SET_GLOBAL.int(262145+24139, 1)
  237.                 SET_GLOBAL.int(262145+24140, 1)
  238.                 add_to_history("Admin", "Removed Nightclub produce time", "Revamped Recovery")
  239.             elseif input == "off" then
  240.                 SET_GLOBAL.float(262145+24141, 0.5)
  241.                 SET_GLOBAL.int(262145+24134, 4800000)
  242.                 SET_GLOBAL.int(262145+24135, 14400000)
  243.                 SET_GLOBAL.int(262145+24136, 7200000)
  244.                 SET_GLOBAL.int(262145+24137, 2400000)
  245.                 SET_GLOBAL.int(262145+24138, 1800000)
  246.                 SET_GLOBAL.int(262145+24139, 3600000)
  247.                 SET_GLOBAL.int(262145+24140, 8400000)
  248.                 add_to_history("Admin", "Reset Nightclub produce time Default", "Revamped Recovery")
  249.            
  250.             else
  251.                 add_to_history("Admin", "You must specify on or off example, !nightclubprodtime on", "Revamped Recovery")
  252.             end
  253.         else
  254.                 add_to_history("Admin", "You must specify on or off example, !nightclubprodtime on", "Revamped Recovery")
  255.         end
  256.     end)
  257.     return
  258.     end
  259.     if message_text:lower():find("^!unlockgifts") ~= nil then
  260.     local input = string.match(message_text:lower(), " (.*)")
  261.     system.fiber(function(callback)
  262.         if input ~= nil then
  263.             if input == "on" then
  264.                 SET_GLOBAL.int(262145+12608, 1)
  265.                 SET_GLOBAL.int(262145+12607, 1)
  266.                 SET_GLOBAL.int(262145+12606, 1)
  267.                 SET_GLOBAL.int(262145+12605, 1)
  268.                 SET_GLOBAL.int(262145+9242, 1)
  269.                 SET_GLOBAL.int(262145+9241, 1)
  270.                 SET_GLOBAL.int(262145+9240, 1)
  271.                 SET_GLOBAL.int(262145+8977, 1)
  272.                 SET_GLOBAL.int(262145+23204, 1)
  273.                 SET_GLOBAL.int(262145+23203, 1)
  274.                 SET_GLOBAL.int(262145+23202, 1)
  275.                 SET_GLOBAL.int(262145+23205, 1)
  276.                 SET_GLOBAL.int(262145+23182, 1)
  277.                 SET_GLOBAL.int(262145+23181, 1)
  278.                 SET_GLOBAL.int(262145+23180, 1)
  279.                 SET_GLOBAL.int(262145+23179, 1)
  280.                 SET_GLOBAL.int(262145+23178, 1)
  281.                 SET_GLOBAL.int(262145+23177, 1)
  282.                 SET_GLOBAL.int(262145+23176, 1)
  283.                 SET_GLOBAL.int(262145+23175, 1)
  284.                 SET_GLOBAL.int(262145+23971, 1)
  285.                 SET_GLOBAL.int(262145+25488, 1)
  286.                 SET_GLOBAL.int(262145+25487, 1)
  287.                 SET_GLOBAL.int(262145+25489, 1)
  288.                 SET_GLOBAL.int(262145+25486, 1)
  289.                 SET_GLOBAL.int(262145+28340, 1)
  290.                 SET_GLOBAL.int(262145+28339, 1)
  291.                 SET_GLOBAL.int(262145+28341, 1)
  292.                 SET_GLOBAL.int(262145+28338, 1)
  293.                 SET_GLOBAL.int(262145+30536, 1)
  294.                 SET_GLOBAL.int(262145+31383, 1)
  295.                 SET_GLOBAL.int(262145+31382, 1)
  296.                 add_to_history("Admin", "Unlocked Gifts", "Revamped Recovery")
  297.             elseif input == "off" then
  298.                 SET_GLOBAL.int(262145+12608, 0)
  299.                 SET_GLOBAL.int(262145+12607, 0)
  300.                 SET_GLOBAL.int(262145+12606, 0)
  301.                 SET_GLOBAL.int(262145+12605, 0)
  302.                 SET_GLOBAL.int(262145+9242, 0)
  303.                 SET_GLOBAL.int(262145+9241, 0)
  304.                 SET_GLOBAL.int(262145+9240, 0)
  305.                 SET_GLOBAL.int(262145+8977, 0)
  306.                 SET_GLOBAL.int(262145+23204, 0)
  307.                 SET_GLOBAL.int(262145+23203, 0)
  308.                 SET_GLOBAL.int(262145+23202, 0)
  309.                 SET_GLOBAL.int(262145+23205, 0)
  310.                 SET_GLOBAL.int(262145+23182, 0)
  311.                 SET_GLOBAL.int(262145+23181, 0)
  312.                 SET_GLOBAL.int(262145+23180, 0)
  313.                 SET_GLOBAL.int(262145+23179, 0)
  314.                 SET_GLOBAL.int(262145+23178, 0)
  315.                 SET_GLOBAL.int(262145+23177, 0)
  316.                 SET_GLOBAL.int(262145+23176, 0)
  317.                 SET_GLOBAL.int(262145+23175, 0)
  318.                 SET_GLOBAL.int(262145+23971, 0)
  319.                 SET_GLOBAL.int(262145+25488, 0)
  320.                 SET_GLOBAL.int(262145+25487, 0)
  321.                 SET_GLOBAL.int(262145+25489, 0)
  322.                 SET_GLOBAL.int(262145+25486, 0)
  323.                 SET_GLOBAL.int(262145+28340, 0)
  324.                 SET_GLOBAL.int(262145+28339, 0)
  325.                 SET_GLOBAL.int(262145+28341, 0)
  326.                 SET_GLOBAL.int(262145+28338, 0)
  327.                 SET_GLOBAL.int(262145+30536, 0)
  328.                 SET_GLOBAL.int(262145+31383, 0)
  329.                 SET_GLOBAL.int(262145+31382, 0)
  330.                 add_to_history("Admin", "Removed Gifts", "Revamped Recovery")
  331.            
  332.             else
  333.                 add_to_history("Admin", "You must specify on or off example, !unlockgifts on", "Revamped Recovery")
  334.             end
  335.         else
  336.             add_to_history("Admin", "You must specify on or off example, !unlockgifts on", "Revamped Recovery")
  337.         end
  338.     end)
  339.     return
  340.     end
  341.     if message_text:lower():find("^!unlocksweaters") ~= nil then
  342.     local input = string.match(message_text:lower(), " (.*)")
  343.     system.fiber(function(callback)
  344.         if input ~= nil then
  345.             if input == "on" then
  346.                 SET_GLOBAL.int(262145+25558, 1)
  347.  
  348.     SET_GLOBAL.int(262145+25559, 1)
  349.     SET_GLOBAL.int(262145+25560, 1)
  350.     SET_GLOBAL.int(262145+25561, 1)
  351.     SET_GLOBAL.int(262145+25562, 1)
  352.     SET_GLOBAL.int(262145+25563, 1)
  353.     SET_GLOBAL.int(262145+25564, 1)
  354.     SET_GLOBAL.int(262145+25565, 1)
  355.     SET_GLOBAL.int(262145+25566, 1)
  356.     SET_GLOBAL.int(262145+25567, 1)
  357.  
  358.                 add_to_history("Admin", "Unlocked Festive Sweaters", "Revamped Recovery")
  359.             elseif input == "off" then
  360.     SET_GLOBAL.int(262145+25558, 1)
  361.     SET_GLOBAL.int(262145+25559, 1)
  362.     SET_GLOBAL.int(262145+25560, 1)
  363.     SET_GLOBAL.int(262145+25561, 1)
  364.     SET_GLOBAL.int(262145+25562, 1)
  365.     SET_GLOBAL.int(262145+25563, 1)
  366.     SET_GLOBAL.int(262145+25564, 1)
  367.     SET_GLOBAL.int(262145+25565, 1)
  368.     SET_GLOBAL.int(262145+25566, 1)
  369.     SET_GLOBAL.int(262145+25567, 1)
  370.                 add_to_history("Admin", "Removed Festive Sweaters", "Revamped Recovery")
  371.            
  372.             else
  373.                 add_to_history("Admin", "You must specify on or off example, !unlocksweaters on", "Revamped Recovery")
  374.             end
  375.         else
  376.             add_to_history("Admin", "You must specify on or off example, !unlocksweaterss on", "Revamped Recovery")
  377.         end
  378.     end)
  379.     return
  380.     end
  381.     if message_text:lower():find("^!bountycut") ~= nil then
  382.     local input = string.match(message_text:lower(), " (.*)")
  383.     if input ~= nil then
  384.         if input == "on" then
  385.             SET_GLOBAL.int(262145+6902, 0)
  386.             add_to_history("Admin", "Set lesters bounty cut to 0", "Revamped Recovery")
  387.         elseif input == "off" then
  388.             SET_GLOBAL.int(262145+6902, 1000)
  389.             add_to_history("Admin", "Set lesters bounty cut to 1000", "Revamped Recovery")
  390.         else
  391.             add_to_history("Admin", "You must specify on or off example, !bountycut on", "Revamped Recovery")
  392.         end
  393.         else
  394.             add_to_history("Admin", "You must specify on or off example, !bountycut on", "Revamped Recovery")
  395.         end
  396.     return
  397.     end
  398.  
  399.     if message_text:lower():find("^!xmas") ~= nil then
  400.     local input = string.match(message_text:lower(), " (.*)")
  401.     if input ~= nil then
  402.         if input == "on" then
  403.             SET_GLOBAL.int(262145+4723, 1)
  404.             SET_GLOBAL.int(262145+4734, 1)
  405.             add_to_history("Admin", "Turned XMAS On", "Revamped Recovery")
  406.         elseif input == "off" then
  407.             SET_GLOBAL.int(262145+4723, 0)
  408.             SET_GLOBAL.int(262145+4734, 0)
  409.             add_to_history("Admin", "Turned XMAS Off", "Revamped Recovery")
  410.         else
  411.             add_to_history("Admin", "You must specify on or off example, !xmas on", "Revamped Recovery")
  412.         end
  413.         else
  414.             add_to_history("Admin", "You must specify on or off example, !xmas on", "Revamped Recovery")
  415.         end
  416.     return
  417.     end
  418.  
  419.     if message_text:lower():find("^!cayofee") ~= nil then
  420.     local input = string.match(message_text:lower(), " (.*)")
  421.     if input ~= nil then
  422.         if input == "on" then
  423.             SET_GLOBAL.float(262145+29625,0)
  424.             SET_GLOBAL.float(262145+29626,0)
  425.             SET_GLOBAL.float(262145+29470,0) --Stolen from uc
  426.             SET_GLOBAL.float(262145+29471,0) --Stolen from uc
  427.             add_to_history("Admin", "Set Cayo fee to 0", "Revamped Recovery")
  428.         elseif input == "off" then
  429.             SET_GLOBAL.float(262145+29625, -0.1)
  430.             SET_GLOBAL.float(262145+29626, -0.02)
  431.             SET_GLOBAL.float(262145+29470, 0) --Stolen from uc
  432.             SET_GLOBAL.float(262145+29471, 0) --Stolen from uc
  433.             add_to_history("Admin", "Set Cayo fee to default", "Revamped Recovery")
  434.         else
  435.             add_to_history("Admin", "You must specify on or off example, !cayofee on", "Revamped Recovery")
  436.         end
  437.         else
  438.             add_to_history("Admin", "You must specify on or off example, !cayofee on", "Revamped Recovery")
  439.         end
  440.     return
  441.     end
  442.  
  443.     if message_text:lower():find("^!cayo100") ~= nil then
  444.     SET_GLOBAL.int(1973496+823+56+0, 100)
  445.     SET_GLOBAL.int(1973496+823+56+1, 100)
  446.     SET_GLOBAL.int(1973496+823+56+2, 100)
  447.     SET_GLOBAL.int(1973496+823+56+3, 100)
  448.     SET_GLOBAL.int(1973496+823+56+4, 100)
  449.     add_to_history("Admin", "Set Cayo Pericos Crews cut all to 100%", "Revamped Recovery")
  450.     return
  451.     end
  452.     if message_text:lower():find("^!franklincooldown") ~= nil then
  453.     local input = string.match(message_text:lower(), " (.*)")
  454.     if input ~= nil then
  455.         if input == "on" then
  456.             SET_GLOBAL.int(262145+31329, 0)
  457.             SET_GLOBAL.int(262145+31407, 0)
  458.             add_to_history("Admin", "Removed Security Contract & Payphone Hit Cooldown", "Revamped Recovery")
  459.         elseif input == "off" then
  460.             SET_GLOBAL.int(262145+31329, 300000)
  461.             SET_GLOBAL.int(262145+31407, 1200000)
  462.             add_to_history("Admin", "Reset Security Contract & Payphone Hit Cooldown to default", "Revamped Recovery")
  463.         else
  464.             add_to_history("Admin", "You must specify on or off example, !franklincooldown on", "Revamped Recovery")
  465.         end
  466.         else
  467.             add_to_history("Admin", "You must specify on or off example, !franklincooldown on", "Revamped Recovery")
  468.         end
  469.     return
  470.     end
  471.     if message_text:lower():find("^!orbitalrefund") ~= nil then
  472.     local input = string.match(message_text:lower(), " (.*)")
  473.     if input ~= nil then
  474.  
  475.         if input == "750k" then
  476.             SET_GLOBAL.int(1964171, 2)
  477.             add_to_history("Admin", "Refunded player 750k (Will not work again till 3 minutes passed)", "Revamped Recovery")
  478.         elseif input == "500k" then
  479.             SET_GLOBAL.int(1964171, 1)
  480.         elseif input == "100k" then
  481.             SET_GLOBAL.int(262145+22853, 100000)
  482.             SET_GLOBAL.int(262145+22855, 100000)
  483.             SET_GLOBAL.int(1964171, 1)
  484.             SET_GLOBAL.int(262145+22853, 500000)
  485.             SET_GLOBAL.int(262145+22855, 500000)
  486.             add_to_history("Admin", "Refunded player 500k (Will not work again till 3 minutes passed)", "Revamped Recovery")
  487.         else
  488.             add_to_history("Admin", "You must specify 500k or 750k or 100k example, !orbital 100k", "Revamped Recovery")
  489.         end
  490.         else
  491.             add_to_history("Admin", "You must specify 500k or 750k or 100k example, !orbital 750k", "Revamped Recovery")
  492.         end
  493.     return
  494.     end
  495.     if message_text:lower():find("^!orbitalcooldown") ~= nil then
  496.     local input = string.match(message_text:lower(), " (.*)")
  497.     if input ~= nil then
  498.         if input == "on" then
  499.             SET_GLOBAL.int(262145+22852, 0)
  500.             add_to_history("Admin", "Removed Orbital Cannon Cooldown. You may have to re enter your Facility. ", "Revamped Recovery")
  501.         elseif input == "off" then
  502.             SET_GLOBAL.int(262145+22852, 2880000)
  503.             add_to_history("Admin", "Set Orbital Cannon Cooldown back to default. You may have to re enter your Facility.", "Revamped Recovery")
  504.         else
  505.             add_to_history("Admin", "You must specify on or off example, !orbitalcooldown on", "Revamped Recovery")
  506.         end
  507.         else
  508.             add_to_history("Admin", "You must specify on or off example, !orbitalcooldown on", "Revamped Recovery")
  509.         end
  510.     return
  511.     end
  512.     if message_text:lower():find("^!missilecooldown") ~= nil then
  513.     local input = string.match(message_text:lower(), " (.*)")
  514.     if input ~= nil then
  515.         if input == "on" then
  516.             SET_GLOBAL.int(262145+29821, 0)
  517.             add_to_history("Admin", "Removed Kosatka Sub Missile cooldown. You may have to re enter your Sub. ", "Revamped Recovery")
  518.         elseif input == "off" then
  519.             SET_GLOBAL.int(262145+29821, 60000)
  520.             add_to_history("Admin", "Set Kosatka Sub Missile cooldown back to default. You may have to re enter your Sub.", "Revamped Recovery")
  521.         else
  522.             add_to_history("Admin", "You must specify on or off example, !missilecooldown on", "Revamped Recovery")
  523.         end
  524.         else
  525.             add_to_history("Admin", "You must specify on or off example, !missilecooldown on", "Revamped Recovery")
  526.         end
  527.     return
  528.     end
  529. end
Add Comment
Please, Sign In to add comment