Skip to content

Commit 33045f4

Browse files
authored
Merge pull request #145 from Bob74/b3258
DLC Bottom Dollar Bounties
2 parents d0c1e4b + 93cfd0e commit 33045f4

File tree

5 files changed

+157
-5
lines changed

5 files changed

+157
-5
lines changed

client.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,12 @@ Citizen.CreateThread(function()
204204
ChopShopLifeguard.LoadDefault() -- -1488.153, -1021.166, 5.000
205205
ChopShopSalvage.LoadDefault() -- 1077.276, -2274.876, -50.000
206206
end
207+
208+
-- ====================================================================
209+
-- =------------------ [DLC: Bottom Dollar Bounties] -----------------=
210+
-- ====================================================================
211+
if GetGameBuildNumber() >= 3258 then
212+
SummerCarrier.LoadDefault() -- -3208.03, 3954.54, 14.0
213+
SummerOffice.LoadDefault() -- 565.886, -2688.761, -50.0
214+
end
207215
end)

dlc_summer/base.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CreateThread(function()
2+
RequestIpl("m24_1_legacyfixes")
3+
RequestIpl("m24_1_pizzasigns")
4+
end)

dlc_summer/carrier.lua

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
-- Aircraft carrier: -3208.03, 3954.54, 14.0
2+
exports('GetSummerCarrierObject', function()
3+
return SummerCarrier
4+
end)
5+
6+
SummerCarrier = {
7+
ipl = {
8+
"m24_1_carrier",
9+
"m24_1_carrier_int1",
10+
"m24_1_carrier_int2",
11+
"m24_1_carrier_int3",
12+
"m24_1_carrier_int4",
13+
"m24_1_carrier_int5",
14+
"m24_1_carrier_int6",
15+
"m24_1_carrier_ladders"
16+
},
17+
18+
Enable = function(state)
19+
EnableIpl(SummerCarrier.ipl, state)
20+
end,
21+
22+
LoadDefault = function()
23+
SummerCarrier.Enable(true)
24+
end
25+
}

dlc_summer/office.lua

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
-- Bail office: 565.886, -2688.761, -50.0
2+
exports('GetSummerOfficeObject', function()
3+
return SummerOffice
4+
end)
5+
6+
SummerOffice = {
7+
interiorId = 295425,
8+
9+
Ipl = {
10+
Exterior = {
11+
ipl = {
12+
"m24_1_bailoffice_davis",
13+
"m24_1_bailoffice_delperro",
14+
"m24_1_bailoffice_missionrow",
15+
"m24_1_bailoffice_paletobay",
16+
"m24_1_bailoffice_vinewood"
17+
},
18+
19+
Load = function()
20+
EnableIpl(SummerOffice.Ipl.Exterior.ipl, true)
21+
end,
22+
Remove = function()
23+
EnableIpl(SummerOffice.Ipl.Exterior.ipl, false)
24+
end
25+
}
26+
},
27+
28+
Style = {
29+
vintage = "set_style_01",
30+
patterns = "set_style_02",
31+
teak = "set_style_03",
32+
33+
Set = function(style, refresh)
34+
SummerOffice.Style.Clear(false)
35+
36+
SetIplPropState(SummerOffice.interiorId, style, true, refresh)
37+
end,
38+
Clear = function(refresh)
39+
SetIplPropState(SummerOffice.interiorId, {
40+
SummerOffice.Style.vintage,
41+
SummerOffice.Style.patterns,
42+
SummerOffice.Style.teak
43+
}, false, refresh)
44+
end
45+
},
46+
47+
Desk = {
48+
files = "set_no_staff",
49+
computers = "set_staff_upgrade",
50+
51+
Set = function(style, refresh)
52+
SummerOffice.Desk.Clear(false)
53+
54+
SetIplPropState(SummerOffice.interiorId, style, true, refresh)
55+
end,
56+
Clear = function(refresh)
57+
SetIplPropState(SummerOffice.interiorId, {
58+
SummerOffice.Desk.files,
59+
SummerOffice.Desk.computers
60+
}, false, refresh)
61+
end
62+
},
63+
64+
Gunsafe = {
65+
cabinet = "set_gunsafe_off",
66+
gunsafe = "set_gunsafe_on",
67+
68+
Set = function(style, refresh)
69+
SummerOffice.Gunsafe.Clear(false)
70+
71+
SetIplPropState(SummerOffice.interiorId, style, true, refresh)
72+
end,
73+
Clear = function(refresh)
74+
SetIplPropState(SummerOffice.interiorId, {
75+
SummerOffice.Gunsafe.cabinet,
76+
SummerOffice.Gunsafe.gunsafe
77+
}, false, refresh)
78+
end
79+
},
80+
81+
Trophy = {
82+
plaque = "set_trophy_10x",
83+
badge = "set_trophy_24x",
84+
handcuffs = "set_trophy_100x",
85+
86+
Enable = function(trophy, state, refresh)
87+
SetIplPropState(SummerOffice.interiorId, trophy, state, refresh)
88+
end
89+
},
90+
91+
Plant = {
92+
plant = "set_new_plant",
93+
94+
Enable = function(state, refresh)
95+
SetIplPropState(SummerOffice.interiorId, SummerOffice.Plant.plant, state, refresh)
96+
end
97+
},
98+
99+
LoadDefault = function()
100+
SummerOffice.Ipl.Exterior.Load()
101+
102+
SummerOffice.Style.Set(SummerOffice.Style.teak, false)
103+
SummerOffice.Desk.Set(SummerOffice.Desk.files, false)
104+
SummerOffice.Gunsafe.Set(SummerOffice.Gunsafe.cabinet, false)
105+
106+
SummerOffice.Trophy.Enable(SummerOffice.Trophy.plaque, true, false)
107+
SummerOffice.Trophy.Enable(SummerOffice.Trophy.badge, true, false)
108+
SummerOffice.Trophy.Enable(SummerOffice.Trophy.handcuffs, true, false)
109+
110+
SummerOffice.Plant.Enable(true, false)
111+
112+
RefreshInterior(SummerOffice.interiorId)
113+
end
114+
}

fxmanifest.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
-- Resources:
2-
-- **********
3-
-- IPL list: https://wiki.rage.mp/index.php?title=Interiors_and_Locations
4-
51
fx_version 'cerulean'
62
game 'gta5'
73

84
author 'Bob_74'
95
description 'Load and customize your map'
10-
version '2.2.2'
6+
version '2.3.0'
117

128
lua54 "yes"
139

@@ -147,4 +143,9 @@ client_scripts {
147143
, "dlc_chopshop/cartel_garage.lua"
148144
, "dlc_chopshop/lifeguard.lua"
149145
, "dlc_chopshop/salvage.lua"
146+
147+
-- DLC Bottom Dollar Bounties (Requires forced build 3258 or higher)
148+
, "dlc_summer/base.lua"
149+
, "dlc_summer/carrier.lua"
150+
, "dlc_summer/office.lua"
150151
}

0 commit comments

Comments
 (0)