Skip to content

Commit b212884

Browse files
authored
Merge pull request #171 from Bob74/b3570
DLC Money Fronts
2 parents 4fc52b5 + 7ec5c25 commit b212884

File tree

7 files changed

+158
-2
lines changed

7 files changed

+158
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Fix holes and customize the map (Updated to Agents of Sabotage DLC)
1+
# Fix holes and customize the map (Updated to Money Fronts DLC)
22

33
The purpose of this script is to fix the holes in the map by loading zones that aren’t loaded by default. I’ve added quite a lot of places to load, based on [Mikeeh’s script](https://forum.fivem.net/t/release-load-unloaded-ipls/5911). If you just want to fix the holes in the map, then use this resource as provided.
44

@@ -30,6 +30,10 @@ This resource has been completely rewritten from scratch since v2.0. You can cus
3030
(DD/MM/YYYY)
3131

3232
---
33+
18/06/2025 - 2.5.0
34+
- Added "Money Fronts" support
35+
- Added arcade interior
36+
3337
18/04/2025 - 2.4.2
3438
- Fix calling interior natives with invalid types
3539

client.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,13 @@ CreateThread(function()
232232
AgentsAirstrip.LoadDefault() -- -2106.98, 1468.31, 282.0
233233
AgentsHangarDoor.LoadDefault() -- -2632.43, 2963.23, 8.5
234234
end
235+
236+
-- ====================================================================
237+
-- =----------------------- [DLC: Money Fronts] ----------------------=
238+
-- ====================================================================
239+
if GetGameBuildNumber() >= 3570 then
240+
MoneyCarwash.LoadDefault() -- 26.074, -1398.979, -75.0
241+
MoneyOffice.LoadDefault() -- -1160.493, -1538.932, -50.0
242+
MoneyConstruction.LoadDefault()
243+
end
235244
end)

dlc_money/base.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CreateThread(function()
2+
RequestIpl("m25_1_legacy_fixes")
3+
RequestIpl("m25_1_mp2025_01_additions")
4+
RequestIpl("m25_1_bobcat")
5+
RequestIpl("m25_1_garage")
6+
RequestIpl("m25_1_quikpharma")
7+
end)

dlc_money/carwash.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
-- Car wash: 26.074, -1398.979, -75.0
2+
exports("GetMoneyCarwash", function()
3+
return MoneyCarwash
4+
end)
5+
6+
MoneyCarwash = {
7+
interiorId = 298497,
8+
9+
Ipl = {
10+
Exterior = {
11+
ipl = "m25_1_carwash",
12+
13+
Load = function()
14+
EnableIpl(MoneyCarwash.Ipl.Exterior.ipl, true)
15+
end,
16+
Remove = function()
17+
EnableIpl(MoneyCarwash.Ipl.Exterior.ipl, false)
18+
end
19+
}
20+
},
21+
22+
Style = {
23+
default = "set_carwash_tints",
24+
25+
Set = function(style, refresh)
26+
MoneyCarwash.Style.Clear(refresh)
27+
28+
SetIplPropState(MoneyCarwash.interiorId, style, true, refresh)
29+
end,
30+
Clear = function(refresh)
31+
SetIplPropState(MoneyCarwash.interiorId, MoneyCarwash.Style.default, false, refresh)
32+
end
33+
},
34+
35+
LoadDefault = function()
36+
-- Exterior
37+
MoneyCarwash.Ipl.Exterior.Load()
38+
39+
-- Interior
40+
MoneyCarwash.Style.Set(MoneyCarwash.Style.default, false)
41+
42+
RefreshInterior(MoneyCarwash.interiorId)
43+
end
44+
}

dlc_money/construction.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
-- Construction
2+
exports("GetMoneyConstruction", function()
3+
return MoneyConstruction
4+
end)
5+
6+
MoneyConstruction = {
7+
-- 678.040, 769.674, 205.0
8+
Vinewood = {
9+
ipl = "m25_1_ch2_04_construction",
10+
11+
Enable = function(state)
12+
EnableIpl(MoneyConstruction.Vinewood.ipl, state)
13+
end
14+
},
15+
16+
-- -1671.08, 494.0945, 128.0
17+
Rockford = {
18+
ipl = "m25_1_cs1_06e_construction",
19+
20+
Enable = function(state)
21+
EnableIpl(MoneyConstruction.Rockford.ipl, state)
22+
end
23+
},
24+
25+
LoadDefault = function()
26+
MoneyConstruction.Vinewood.Enable(true)
27+
MoneyConstruction.Rockford.Enable(true)
28+
end
29+
}

dlc_money/office.lua

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
-- Office: -1160.493, -1538.932, -50.0
2+
exports("GetMoneyOffice", function()
3+
return MoneyOffice
4+
end)
5+
6+
MoneyOffice = {
7+
interiorId = 298753,
8+
9+
Ipl = {
10+
Exterior = {
11+
ipl = {
12+
"m25_1_helitours",
13+
"m25_1_smokeonthewater"
14+
},
15+
16+
Load = function()
17+
EnableIpl(MoneyOffice.Ipl.Exterior.ipl, true)
18+
end,
19+
Remove = function()
20+
EnableIpl(MoneyOffice.Ipl.Exterior.ipl, false)
21+
end
22+
}
23+
},
24+
25+
Style = {
26+
heli = {
27+
"set_heli",
28+
"set_heli_tint"
29+
},
30+
smoke = {
31+
"set_smoke",
32+
"set_smoke_tint"
33+
},
34+
35+
Set = function(style, refresh)
36+
MoneyOffice.Style.Clear(refresh)
37+
38+
SetIplPropState(MoneyOffice.interiorId, style, true, refresh)
39+
end,
40+
Clear = function(refresh)
41+
SetIplPropState(MoneyOffice.interiorId, {
42+
MoneyOffice.Style.heli,
43+
MoneyOffice.Style.smoke
44+
}, false, refresh)
45+
end
46+
},
47+
48+
LoadDefault = function()
49+
-- Exterior
50+
MoneyOffice.Ipl.Exterior.Load()
51+
52+
-- Interior
53+
MoneyOffice.Style.Set(MoneyOffice.Style.heli, false)
54+
55+
RefreshInterior(MoneyOffice.interiorId)
56+
end
57+
}

fxmanifest.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ game 'gta5'
33

44
author 'Bob_74'
55
description 'Load and customize your map'
6-
version '2.4.2'
6+
version '2.5.0'
77

88
lua54 "yes"
99

@@ -163,4 +163,10 @@ client_scripts {
163163
, "dlc_agents/office.lua"
164164
, "dlc_agents/airstrip.lua"
165165
, "dlc_agents/hangar_door.lua"
166+
167+
-- DLC Money Fronts (Requires forced build 3570 or higher)
168+
, "dlc_money/base.lua"
169+
, "dlc_money/carwash.lua"
170+
, "dlc_money/office.lua"
171+
, "dlc_money/construction.lua"
166172
}

0 commit comments

Comments
 (0)