Advertisement
Wh0CaR3S

FiveM The Chop Shop IPLS and Entity Sets

Dec 26th, 2023 (edited)
1,986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.62 KB | Gaming | 0 0
  1. -- fxmanifest.lua:
  2. --[[
  3. fx_version 'cerulean'
  4. game 'gta5'
  5. lua54 'yes'
  6.  
  7. client_script 'client.lua'
  8. ]]--
  9.  
  10. -- Requisites:
  11. -- Server Config: set sv_enforceGameBuild 3095
  12. -- FiveM Server Artifacts: 7255+ | https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
  13. -- FiveM Client: Canary
  14.  
  15. -- client.lua:
  16. local ColorDic = { ['default'] = 0, ['white'] = 1, ['red'] = 2, ['blue'] = 3,['orange'] = 4, ['yellow'] = 5, ['green'] = 6,['pink'] = 7, ['turquoise'] = 8, ['gray'] = 9, ['black'] = 10  }
  17. local EntitySets = {
  18.         ["m23_2_dlc_int_salvage"] = {
  19.         ['Color'] = 'default', -- default, white, red, blue, orange, yellow, green, pink, turquoise, gray, black
  20.         ["Coords"] = {
  21.             vec3(1088.0, -2275.0, -50.0),
  22.         },
  23.         ["Entities"] = {
  24.             "SET_UV_PLAN_RT",
  25.             "set_mechanic_upgrade",
  26.             "set_mechanic_basic",
  27.             "set_car_lift_01_down",
  28.             "set_car_lift_01_up",
  29.             "set_car_lift_02_down",
  30.             "set_car_lift_02_up",
  31.             "set_safe_basic",
  32.             "set_safe_upgrade",
  33.             "set_tint_b",
  34.             "SET_BAG_COASTGUARD",
  35.             "SET_BOLT_CUTTER",
  36.             "SET_BOX_FLARES",
  37.             "SET_ARMOR_CRATE",
  38.             "SET_CASE_TEARGAS",
  39.             "SET_GUNCASE",
  40.             "SET_CARD_MAZE",
  41.             "SET_CASE_HDD",
  42.             "SET_BAG_PANIC",
  43.             "SET_CARD_CASINO",
  44.             "SET_BOX_SANITATION",
  45.             "SET_CRATE_MASK",
  46.             "SET_BAG_RAPPEL",
  47.             "SET_SONAR",
  48.             "SET_BLOWTORCH",
  49.             "SET_BAG_SCUBA",
  50.             "SET_TROPHY_JERSEY",
  51.             "SET_TROPHY_BADGE",
  52.             "SET_TROPHY_CHIPS",
  53.             "SET_TROPHY_SUB",
  54.             "SET_TROPHY_ANCHOR"
  55.         }
  56.     },
  57.     ["m23_2_int_counterfeit"] = {
  58.         ["Coords"] = {
  59.             vec3(930.0, -2270.0, -50.0),
  60.             vec3(930.0, -2240.1, -50.0),
  61.             vec3(930.0, -2183.3, -50.0),
  62.             vec3(930.0, -2213.2, -50.0),
  63.         },
  64.         ["Entities"] = {
  65.             "Set_Tints",
  66.             "Set_Door_Right",
  67.             "Set_Door_Left"
  68.         }
  69.     },
  70.     ['m23_2_int_warehouse'] = {
  71.         ['Coords'] = {
  72.             vec3(1220.0, -2280.0, -50.0)
  73.         },
  74.         ["Entities"] = {
  75.             "mp2023_02_DLC_INT_6_CB"
  76.         }
  77.     },
  78.     ["m23_2_dlc_int_casinobase"] = {
  79.         ["Coords"] = {
  80.             vec3(858.0, -2275.0, -50.0)
  81.         },
  82.         ["Entities"] = {
  83.             3347615165 -- 0xC7888DBD | v_ilev_garageliftdoor | 827.48, -2204.76, -48.39
  84.         }
  85.     }
  86. }
  87.  
  88. local IPLs = {
  89.     -- mpchristmas3
  90.     "xm3_garage_fix", -- -299.1, 288.0, 103.9
  91.     "xm3_warehouse", -- 593.7, -407.8, 28.6
  92.     "xm3_collision_fixes", -- -301.8, 282.4, 88.5
  93.     "xm3_doc_sign", -- -676.6, 329.5, 111.4
  94.     "xm3_stash_cams", -- -157.0, 6293.8, 33.2
  95.     "xm3_sum2_fix", -- -789.2, -217.8, 49.0
  96.     "xm3_security_fix", -- -868.8, -221.1, 60.3
  97.     "xm3_warehouse_grnd", -- 627.0, -401.5, 23.6
  98.     -- mp2023_01
  99.     "m23_1_legacy_fixes", -- 3515.5, 3644.5, 31.8
  100.     -- mp2023_02
  101.     "m23_2_acp_collision_fixes_01", -- 5002.6, -5168.3, 0.5
  102.     "m23_2_acp_collision_fixes_02", -- 4540.2, -4520.0, 5.5
  103.     "m23_2_sp1_03_Reds", -- -527.2, -1729.3, 21.0
  104.     "m23_2_sc1_03_Reds", -- -29.9, -1306.9, 28.8
  105.     "m23_2_id2_04_Reds", -- 1194.2, -1256.9, 34.6
  106.     "m23_2_cs4_11_Reds", -- 2513.8, 4110.3, 42.2
  107.     "m23_2_cs1_05_Reds", -- -196.0, 6263.7, 34.8
  108.     "m23_2_lifeguard_access", -- -1486.9, -1034.7, 5.1
  109.     "m23_2_tug_collision", -- -292.0, -2780.8, 3.9
  110.     "m23_2_hei_yacht_collision_fixes", -- -2047.5, -1030.2, 6.2
  111.     -- "m23_2_submarine_sand", -- -485.1, 6430.4, 3.1
  112.     "m23_2_legacy_fixes", -- 457.2, -995.8, 40.2
  113.    
  114.     "m23_2_int_warehouse", -- 1220.0, -2280.0, -50.0
  115.     "m23_2_dlc_int_casinobase", -- 858.0, -2275.0, -50.0
  116.     "m23_2_int_counterfeit", -- 930.0, -2270.0, -50.0 | 930.0, -2240.1, -50.0 | 930.0, -2183.3, -50.0 | 930.0, -2213.2, -50.0
  117.     "m23_2_dlc_int_salvage", -- 1088.0, -2275.0, -50.0 | Entrance: -194.5653 6268.5596 30.4893 | Exit: 1098.8727, -2268.5957, -49.9999
  118.     "m23_2_dlc_int_warehouse2", -- 1000.0, -2200.0, -50.0 | 1000.0, -2230.0, -50.0
  119.    
  120.     -- cargoship
  121.     "m23_2_cargoship", -- -398.2, -4118.8, 25.4
  122.     "m23_2_cargoship_bridge"
  123. }
  124.  
  125.  
  126. local function LoadMaps()
  127.     for i = 1, #IPLs do
  128.  
  129.         local iplName = IPLs[i]
  130.         if not IsIplActive(iplName) then
  131.             RequestIpl(iplName)
  132.         end
  133.  
  134.         if EntitySets[iplName] then
  135.             for k = 1, #EntitySets[iplName]['Coords'] do
  136.                 local cds = EntitySets[iplName]['Coords'][k]
  137.                 local id = GetInteriorAtCoords(cds.x,cds.y,cds.z)
  138.                 if EntitySets[iplName]['Entities'] then
  139.                     for v =  1, #EntitySets[iplName]['Entities'] do
  140.                         local sets = EntitySets[iplName]['Entities'][v]
  141.                         if not IsInteriorEntitySetActive(id,sets) then
  142.                             ActivateInteriorEntitySet(id,sets)
  143.                         end
  144.  
  145.                         if EntitySets[iplName]['Color'] then
  146.                             SetInteriorEntitySetColor(id, sets, ColorDic[EntitySets[iplName]['Color']])
  147.                         end
  148.                     end
  149.                 end
  150.                 RefreshInterior(id)
  151.             end
  152.         end
  153.     end
  154. end
  155.  
  156. local function CargoShipRadarFrame()
  157.     local cds = vec3(-398.2, -4118.8, 25.4)
  158.     local hash = joaat("M23_2_DLC_INT_Ship")
  159.     while true do
  160.         local idle = 2000
  161.         local pCoords = GetEntityCoords(PlayerPedId())
  162.         local dist = #(pCoords - cds)
  163.         if dist < 200 then idle = 1 end
  164.         SetRadarAsInteriorThisFrame(hash, cds.x, cds.y, 40, 0)
  165.         SetRadarAsExteriorThisFrame()
  166.         Wait(idle)
  167.     end
  168. end
  169.  
  170. local function CargoShipHideDoor()
  171.     local posEntity = vec3(-400.0109, -4124.1377, 24.3427)
  172.     local modelHash = joaat("port_xr_door_01")
  173.     while true do
  174.  
  175.         local pDist = #(GetEntityCoords(PlayerPedId()) - posEntity)
  176.         if pDist < 10.0 then
  177.             CreateModelHideExcludingScriptObjects(posEntity.x,posEntity.y,posEntity.z, 2.0, modelHash, true)
  178.             break
  179.         end
  180.         Wait(2000)
  181.     end
  182. end
  183.  
  184. LoadMaps()
  185. CargoShipHideDoor()
  186. CargoShipRadarFrame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement