-
Notifications
You must be signed in to change notification settings - Fork 238
Finance & Felony: Offices
Bob74 edited this page Jul 24, 2021
·
10 revisions
Finance & Felony offices are all handled the same way. There are 4 of them, from FinanceOffice1
to FinanceOffice4
.
I will be using FinanceOffice1
as an example in this documentation. Replace it with the one you need.
Be careful, some garages will overlaps with the office making it super glitchy.
It is recommended to enable the garages only when the player has left the office.
Getting the main object to interact with the interior:
FinanceOffice1 = exports['bob74_ipl']:GetFinanceOffice1Object()
FinanceOffice2 = exports['bob74_ipl']:GetFinanceOffice2Object()
FinanceOffice3 = exports['bob74_ipl']:GetFinanceOffice3Object()
FinanceOffice4 = exports['bob74_ipl']:GetFinanceOffice4Object()
These interiors can be found at:
X | Y | Z | |
---|---|---|---|
Office 1 (Arcadius Business Centre) | -141.1987 | -620.913 | 168.8205 |
Office 2 (Maze Bank Building) | -75.8466 | -826.9893 | 243.3859 |
Office 3 (Lom Bank) | -1579.756 | -565.0661 | 108.523 |
Office 4 (Maze Bank West) | -1392.667 | -480.4736 | 72.04217 |
FinanceOffice1
+-- currentInteriorId
+-- Style
| +-- Theme
| +-- warm
| +-- interiorId
| +-- ipl
| +-- classical
| +-- interiorId
| +-- ipl
| +-- vintage
| +-- interiorId
| +-- ipl
| +-- contrast
| +-- interiorId
| +-- ipl
| +-- rich
| +-- interiorId
| +-- ipl
| +-- cool
| +-- interiorId
| +-- ipl
| +-- ice
| +-- interiorId
| +-- ipl
| +-- conservative
| +-- interiorId
| +-- ipl
| +-- polished
| +-- interiorId
| +-- ipl
| +-- Set(style, refresh)
| +-- Clear()
+-- Safe
| +-- Open(doorSide)
| +-- Close(doorSide)
+-- Swag
| +-- Cash
| +-- A
| +-- B
| ...
| +-- W
| +-- X
| +-- BoozeCigs
| +-- A
| +-- B
| +-- C
| +-- Counterfeit
| +-- A
| +-- B
| +-- C
| +-- DrugBags
| +-- A
| +-- B
| +-- C
| +-- DrugStatue
| +-- A
| +-- B
| +-- C
| +-- Electronic
| +-- A
| +-- B
| +-- C
| +-- FurCoats
| +-- A
| +-- B
| +-- C
| +-- Gems
| +-- A
| +-- B
| +-- C
| +-- Guns
| +-- A
| +-- B
| +-- C
| +-- Ivory
| +-- A
| +-- B
| +-- C
| +-- Jewel
| +-- A
| +-- B
| +-- C
| +-- Med
| +-- A
| +-- B
| +-- C
| +-- Painting
| +-- A
| +-- B
| +-- C
| +-- Pills
| +-- A
| +-- B
| +-- C
| +-- Silver
| +-- A
| +-- B
| +-- C
| +-- Enable(details, state, refresh)
+-- Chairs
| +-- off
| +-- on
| +-- Set(chairs, refresh)
| +-- Clear(refresh)
+-- Booze
| +-- off
| +-- on
| +-- Set(booze, refresh)
| +-- Clear(refresh)
+-- LoadDefault()
Setting the interior's style:
FinanceOffice1.Style.Set(style, refresh)
Parameter | Description | Valid values |
---|---|---|
style | Warm | FinanceOffice1.Style.Theme.warm |
Classical | FinanceOffice1.Style.Theme.classical |
|
Vintage | FinanceOffice1.Style.Theme.vintage |
|
Contrast | FinanceOffice1.Style.Theme.contrast |
|
Rich | FinanceOffice1.Style.Theme.rich |
|
Cool | FinanceOffice1.Style.Theme.cool |
|
Ice | FinanceOffice1.Style.Theme.ice |
|
Conservative | FinanceOffice1.Style.Theme.conservative |
|
Polished | FinanceOffice1.Style.Theme.polished |
|
refresh | Refresh the whole interior |
true or false
|
Open or close the office safe doors (left or right):
FinanceOffice1.Safe.Open(doorSide)
FinanceOffice1.Safe.Close(doorSide)
Parameter | Description | Valid values |
---|---|---|
doorSide | Door to open or close |
"left" or "right"
|
Setting the interior's swag:
FinanceOffice1.Swag.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Cash piles |
FinanceOffice1.Swag.Cash or FinanceOffice1.Swag.Cash.A to FinanceOffice1.Swag.Cash.X
|
Cigarettes and booze |
FinanceOffice1.Swag.BoozeCigs or FinanceOffice1.Swag.BoozeCigs.A to FinanceOffice1.Swag.BoozeCigs.C
|
|
Counterfeit cash props |
FinanceOffice1.Swag.Counterfeit or FinanceOffice1.Swag.Counterfeit.A to FinanceOffice1.Swag.Counterfeit.C
|
|
Drug bags |
FinanceOffice1.Swag.DrugBags or FinanceOffice1.Swag.DrugBags.A to FinanceOffice1.Swag.DrugBags.C
|
|
Drug statues |
FinanceOffice1.Swag.DrugStatue or FinanceOffice1.Swag.DrugStatue.A to FinanceOffice1.Swag.DrugStatue.C
|
|
Electronic stuff |
FinanceOffice1.Swag.Electronic or FinanceOffice1.Swag.Electronic.A to FinanceOffice1.Swag.Electronic.C
|
|
Fur coats |
FinanceOffice1.Swag.FurCoats or FinanceOffice1.Swag.FurCoats.A to FinanceOffice1.Swag.FurCoats.C
|
|
Diamonds and gems |
FinanceOffice1.Swag.Gems or FinanceOffice1.Swag.Gems.A to FinanceOffice1.Swag.Gems.C
|
|
Guns |
FinanceOffice1.Swag.Guns or FinanceOffice1.Swag.Guns.A to FinanceOffice1.Swag.Guns.C
|
|
Ivory |
FinanceOffice1.Swag.Ivory or FinanceOffice1.Swag.Ivory.A to FinanceOffice1.Swag.Ivory.C
|
|
Jewel |
FinanceOffice1.Swag.Jewel or FinanceOffice1.Swag.Jewel.A to FinanceOffice1.Swag.Jewel.C
|
|
Med |
FinanceOffice1.Swag.Med or FinanceOffice1.Swag.Med.A to FinanceOffice1.Swag.Med.C
|
|
Painting |
FinanceOffice1.Swag.Painting or FinanceOffice1.Swag.Painting.A to FinanceOffice1.Swag.Painting.C
|
|
Pills |
FinanceOffice1.Swag.Pills or FinanceOffice1.Swag.Pills.A to FinanceOffice1.Swag.Pills.C
|
|
Silver ingots |
FinanceOffice1.Swag.Silver or FinanceOffice1.Swag.Silver.A to FinanceOffice1.Swag.Silver.C
|
|
state | Enabled or disabled |
true or false
|
refresh | Refresh the whole interior |
true or false
|
Setting the interior's chairs:
FinanceOffice1.Chairs.Set(chairs, refresh)
Parameter | Description | Valid values |
---|---|---|
details | No chairs | FinanceOffice1.Chairs.off |
Chairs at desks | FinanceOffice1.Chairs.on |
|
refresh | Refresh the whole interior |
true or false
|
Setting the interior's bottles:
FinanceOffice1.Booze.Set(booze, refresh)
Parameter | Description | Valid values |
---|---|---|
details | No bottles | FinanceOffice1.Booze.off |
Bottles here and there | FinanceOffice1.Booze.on |
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
FinanceOffice1.Style.Set(FinanceOffice1.Style.Theme.polished, true)
FinanceOffice1.Chairs.Set(FinanceOffice1.Chairs.on, true)
end
You can handle and customize the interiors in your own resources using the exported functions:
Citizen.CreateThread(function()
-- Getting the object to interact with
FinanceOffice1 = exports['bob74_ipl']:GetFinanceOffice1Object()
-- Set the office theme to "contrast"
FinanceOffice1.Style.Set(FinanceOffice1.Style.Theme.contrast)
-- Enable chairs in the office
FinanceOffice1.Chairs.Set(FinanceOffice1.Chairs.on)
-- Enable booze bottles
FinanceOffice1.Booze.Set(FinanceOffice1.Booze.on)
-- Enable maximum cash
FinanceOffice1.Swag.Enable(FinanceOffice1.Swag.Cash)
-- Enable all paintings + Refresh
FinanceOffice1.Swag.Enable(FinanceOffice1.Painting, true)
end)
-- Adding drug bags
-- They are divided in 3 parts (A, B and C):
FinanceOffice1.Swag.Enable(FinanceOffice1.Swag.DrugBags.A, true) -- Enable A
FinanceOffice1.Swag.Enable(FinanceOffice1.Swag.DrugBags.B, true) -- Enable B
FinanceOffice1.Swag.Enable(FinanceOffice1.Swag.DrugBags.C, true, true) -- Enable C + Refreshing interior (last `true` parameter)
-- Note: these 3 lines can be written in 1 single line:
FinanceOffice1.Swag.Enable(FinanceOffice1.Swag.DrugBags, true, true)
-- Open safe doors:
FinanceOffice1.Safe.Open("left")
FinanceOffice1.Safe.Open("right")
-- Add chairs at desks:
FinanceOffice1.Chairs.Set(FinanceOffice1.Chairs.on, true)
- Home
- GTA V
- GTA Online
- DLC: High life
- DLC: Heists
- DLC: Executives & Other Criminals
- DLC: Finance & Felony
- DLC: Bikers
- DLC: Import/Export
- DLC: Gunrunning
- DLC: Smuggler's Run
- DLC: The Doomsday Heist
- DLC: After Hours
- DLC: Los Santos Drug Wars
- DLC: San Andreas Mercenaries
- DLC: The Chop Shop
- DLC: Bottom Dollar Bounties