diff --git a/resources/[housing]/bob74_ipl/.github/ISSUE_TEMPLATE/bug_report.md b/resources/[housing]/bob74_ipl/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..c8dfdc0fd --- /dev/null +++ b/resources/[housing]/bob74_ipl/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,29 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**First of all** +Did you try disabling `bob74_ipl` to see if the issue is still there? Yes/No +Did you use the latest version of `bob74_ipl` ? Yes/No +Did you use an up to date server [artifact](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/) ? Yes/No + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Coordinates or map screenshot of the location. + +**Expected behavior** +A clear and concise description of what you expected to happen, a screenshot from GTA Online if relevant is welcome. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Versions** + - Game build version + - Resource version diff --git a/resources/[housing]/bob74_ipl/LICENSE b/resources/[housing]/bob74_ipl/LICENSE new file mode 100644 index 000000000..2a6e04c87 --- /dev/null +++ b/resources/[housing]/bob74_ipl/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Bob74 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/resources/[housing]/bob74_ipl/README.md b/resources/[housing]/bob74_ipl/README.md new file mode 100644 index 000000000..456281578 --- /dev/null +++ b/resources/[housing]/bob74_ipl/README.md @@ -0,0 +1,216 @@ +# Fix holes and customize the map (Updated to Agents of Sabotage DLC) + +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. + +This resource has been completely rewritten from scratch since v2.0. You can customize almost every storymode and online purchasable interiors from your own resources. + +## Download +- Latest version: https://github.com/Bob74/bob74_ipl/releases/latest + +- Source code: https://github.com/Bob74/bob74_ipl + +## [Wiki](https://github.com/Bob74/bob74_ipl/wiki) +- The Wiki has been created to help you customize your interiors as you wish. It contains every function you can use for each interior. +- Each Wiki page has an example at the bottom of the page to show how you can use it in your own resource. +- Also at the bottom of the Wiki will show you the default values set by `IPL_NAME.LoadDefault()`. + +## Install +1. Download the [latest version](https://github.com/Bob74/bob74_ipl/releases/latest). +2. Extract `bob74_ipl.zip` and copy the `bob74_ipl` into your `resources` folder. +3. Add `start bob74_ipl` to your your `server.cfg` file. + +## Screenshots +- [After Hours Album](https://imgur.com/a/Qg96l0D) +- [Misc. Album](https://imgur.com/a/cs9Ip4d) +- [IPL Fix Album](https://imgur.com/a/1Sfl4) + +## Changelog + +
Click to view +(DD/MM/YYYY) + +--- +18/04/2025 - 2.4.2 +- Fix calling interior natives with invalid types + +25/02/2025 - 2.4.1 +- Add hangar door +- Rename "Bottom Dollar Bounties" folder to a more clear name + +27/12/2024 - 2.4.0 +- Added "Agents of Sabotage" support +- Fixed Eclipse Boulevard Garage tint colors (@DevSekai) + +28/08/2024 - 2.3.3 +- Fixed door on cargo ship (@NeenGame) +- Fixed Franklin interior (@NeenGame) + +24/08/2024 - 2.3.2 +- Added Kosatka and "The Music Locker" interiors +- Removed `Citizen` prefix from code + +10/08/2024 - 2.3.1 +- Fix world not rendering when inside security offices +- Fix typos in "Los Santos Tuners" files + +02/07/2024 - 2.3.0 +- Added "Bottom Dollar Bounties" support + +14/04/2024 - 2.2.1 +- Allow disabling San Andreas Mercenaries fixes +- Allow setting base game cargo ship as sunk +- Rename `ChopShopSalvage.Ipl.Load()` to `ChopShopSalvage.Ipl.Exterior.Load()` +- Rename `DrugWarsFreakshop.Ipl.Load()` to `DrugWarsFreakshop.Ipl.Exterior.Load()` +- Rename `DrugWarsGarage.Ipl.Load()` to `DrugWarsGarage.Ipl.Exterior.Load()` + +06/04/2024 - 2.2.0 +- Added "Los Santos Drug Wars" support +- Added "San Andreas Mercenaries" support +- Added "The Chop Shop" support +- Added missing base IPLs + +27/03/2024 - 2.1.4 +- North Yankton improvements (https://github.com/Bob74/bob74_ipl/pull/131 @TheIndra55) + +05/12/2023 - 2.1.3 +- Added missing train track near Davis Quartz (https://github.com/Bob74/bob74_ipl/pull/129 @TheIndra55) + +10/01/2023 - 2.1.2 +- Fix native and update native names (@NeenGame) + +24/10/2022 - 2.1.1 +- Fix vespucci beach wall hole +- Fix Boat House Door in Sandy Shores +- Fix GTA 5 24/7 Roof in Sandy Shores +- Fix Industrial Building near Lesters Warehouse +- Fix Collision Holes near Lost MC compound + +11/10/2022 - 2.1.0a +- Make Doomsday Facility Objects non network + +03/08/2022 - 2.1.0 +- Added "The Criminal Enterprises" support + +02/05/2022 - 2.0.15 +- Reformatted code +- Removed unused .gitignore +- Bumped version in fxmanifest.lua +- Improved performance + +21/04/2022 - 2.0.14 +- Fix casino penthouse carpet patterns colors + +12/02/2022 - 2.0.13a +- Fix Music Roof + +12/02/2022 - 2.0.13 +- Added Contract IPLs: Garage, Studio, Offices, Music Roof, Billboards + +10/02/2022 - 2.0.12 +- Fix FIB roof + +07/02/2022 - 2.0.11 +- Added Tuners IPLs: Garage, Meth Lab, Meetup + +18/01/2022 - 2.0.10b +- Change water in yachts to be non-networked. + +01/08/2021 - 2.0.10a +- Improved performance +- Fixed hole in the FIB fountain +- Fixed error appearing if casino IPL is loaded, but the game build is not sufficient +- Fixed a few typos in the README file + +19/07/2021 - 2.0.10 +- Added Diamond Casino IPLs: Casino, Garage, VIP garage, Penthouse +- Import: Forced refresh of CEO Garages +- Updated fxmanifest fx_version to cerulean +- Updated IPL list link in fxmanifest nad removed outdated Props list and Interior ID list +- Fixed export typo in `michael.lua` +- Removed unnecessary space in north_yankton IPL + +27/05/2020 - 2.0.9a +- Fixed disabling Pillbox Hospital +- Fixed `ResetInteriorVariables` + +23/04/2020 - 2.0.9 +- Replaced deprecated __resource.lua with fxmanifest.lua +- Added ferris wheel on the Del Perro Pier +- Reformatted client.lua + +20/10/2019 - 2.0.8 +- Nightclubs: Added dry ice emitters +- Heist & Gunrunning: Added water to the yachts hot tubs (to enable/disable) +- Offices: Added a way to open and close the safes +- Facility: Added privacy glass +- Moved Bahama Mamas and PillBox Hospital in their own files +- Fixed error `ReleaseNamedRendertarget` +- Cleaned and optimized the code + +22/03/2019 - 2.0.7c +- CEO Offices: Changed the default loaded garage to ImportCEOGarage4.Part.Garage2 in order to avoid Office glitches + +15/01/2019 - 2.0.7b +- Nightclubs: Fixed a typo for the fake lights + +15/01/2019 - 2.0.7a +- Nightclubs: Added the ability to set no podium (using `AfterHoursNightclubs.Interior.Podium.none`) + +14/01/2019 - 2.0.7 +- Changed the way Trevor’s trailer is handled and added a Wiki entry. +- Added a way to open or close Zancudo’s gates with a Wiki entry. + +12/01/2019 - 2.0.6 +- Added nightclubs interior and exteriors +- Removed Zancudo gates by default (file bob74_ipl/gtav/base.lua: RequestIpl("CS3_07_MPGates") is now commented) + +29/12/2018 - 2.0.5a +- Fixed the name of the BikerClubhouse1 export + +19/12/2018 - 2.0.5 +- Fixed a typo that prevents the printers, security stuff, and cash piles to spawn in the counterfeit cash factory + +10/11/2018 - 2.0.4 +- Fixed an issue where the clubhouse2 lower walls wouldn’t be colored on the first resource start +- Fixed gang members names using an old format +- Disabled the Mod shop from CEO garage 3 (ImportCEOGarage3) because it is overlapping with CEO office 3 (FinanceOffice3) + +08/11/2018 - 2.0.3 +- Added biker gang’s name, missions, and members pictures +- Added CEO office organization’s name + +05/11/2018 - 2.0.1 +- Removed overlapping Zancudo River +- Added the trailer near Zancudo River + +04/11/2018 - 2.0.0 +- Plugin totally rewritten +- Support for all DLC (up to The Doomsday Heist) +- Ability to easily customize story mode and online purchasable interiors +- You can still use it as it is if you want IPL and interiors to be loaded, the plugin sets a default style for each one +- Check out the Wiki to find out how: https://github.com/Bob74/bob74_ipl/wiki + +26/06/2017 +- Added optional IPL +- Bunkers exteriors (enabled) +- Bunkers interior +- CEO Offices +- Bikers places (some are still buggy) +- Import/Export locations +- Removed the trick to open Lost’s safehouse since the last update already opens it + +19/06/2017 +- Fix hole in Zancudo River +- Fix hole in Cassidy Creek +- Add optional graffiti on some billboards (enabled by default) +- Opened Lost’s safehouse interior + +14/06/2017 +- Original release +
+ +## Contributors + + + + diff --git a/resources/[housing]/bob74_ipl/client.lua b/resources/[housing]/bob74_ipl/client.lua new file mode 100644 index 000000000..5b2cf72dd --- /dev/null +++ b/resources/[housing]/bob74_ipl/client.lua @@ -0,0 +1,235 @@ +CreateThread(function() + -- ==================================================================== + -- =--------------------- [GTA V: Single player] ---------------------= + -- ==================================================================== + + -- Michael: -802.311, 175.056, 72.8446 + Michael.LoadDefault() + + -- Simeon: -47.16170 -1115.3327 26.5 + Simeon.LoadDefault() + + -- Franklin's aunt: -9.96562, -1438.54, 31.1015 + FranklinAunt.LoadDefault() + + -- Franklin + Franklin.LoadDefault() + + -- Floyd: -1150.703, -1520.713, 10.633 + Floyd.LoadDefault() + + -- Trevor: 1985.48132, 3828.76757, 32.5 + TrevorsTrailer.LoadDefault() + + -- Bahama Mamas: -1388.0013, -618.41967, 30.819599 + BahamaMamas.Enable(true) + + -- Pillbox hospital: 307.1680, -590.807, 43.280 + PillboxHospital.Enable(true) + + -- Zancudo Gates (GTAO like): -1600.30100000, 2806.73100000, 18.79683000 + ZancudoGates.LoadDefault() + + -- Other + Ammunations.LoadDefault() + LesterFactory.LoadDefault() + StripClub.LoadDefault() + CargoShip.LoadDefault() + + Graffitis.Enable(true) + + -- UFO + UFO.Hippie.Enable(false) -- 2490.47729, 3774.84351, 2414.035 + UFO.Chiliad.Enable(false) -- 501.52880000, 5593.86500000, 796.23250000 + UFO.Zancudo.Enable(false) -- -2051.99463, 3237.05835, 1456.97021 + + -- Red Carpet: 300.5927, 199.7589, 104.3776 + RedCarpet.Enable(false) + + -- North Yankton: 3217.697, -4834.826, 111.8152 + NorthYankton.Enable(false) + + -- ==================================================================== + -- =-------------------------- [GTA Online] --------------------------= + -- ==================================================================== + GTAOApartmentHi1.LoadDefault() -- -35.31277 -580.4199 88.71221 (4 Integrity Way, Apt 30) + GTAOApartmentHi2.LoadDefault() -- -1477.14 -538.7499 55.5264 (Dell Perro Heights, Apt 7) + GTAOHouseHi1.LoadDefault() -- -169.286 486.4938 137.4436 (3655 Wild Oats Drive) + GTAOHouseHi2.LoadDefault() -- 340.9412 437.1798 149.3925 (2044 North Conker Avenue) + GTAOHouseHi3.LoadDefault() -- 373.023 416.105 145.7006 (2045 North Conker Avenue) + GTAOHouseHi4.LoadDefault() -- -676.127 588.612 145.1698 (2862 Hillcrest Avenue) + GTAOHouseHi5.LoadDefault() -- -763.107 615.906 144.1401 (2868 Hillcrest Avenue) + GTAOHouseHi6.LoadDefault() -- -857.798 682.563 152.6529 (2874 Hillcrest Avenue) + GTAOHouseHi7.LoadDefault() -- 120.5 549.952 184.097 (2677 Whispymound Drive) + GTAOHouseHi8.LoadDefault() -- -1288 440.748 97.69459 (2133 Mad Wayne Thunder) + GTAOHouseMid1.LoadDefault() -- 347.2686 -999.2955 -99.19622 + GTAOHouseLow1.LoadDefault() -- 261.4586 -998.8196 -99.00863 + + -- ==================================================================== + -- =------------------------ [DLC: High life] ------------------------= + -- ==================================================================== + HLApartment1.LoadDefault() -- -1468.14 -541.815 73.4442 (Dell Perro Heights, Apt 4) + HLApartment2.LoadDefault() -- -915.811 -379.432 113.6748 (Richard Majestic, Apt 2) + HLApartment3.LoadDefault() -- -614.86 40.6783 97.60007 (Tinsel Towers, Apt 42) + HLApartment4.LoadDefault() -- -773.407 341.766 211.397 (EclipseTowers, Apt 3) + HLApartment5.LoadDefault() -- -18.07856 -583.6725 79.46569 (4 Integrity Way, Apt 28) + HLApartment6.LoadDefault() -- -609.56690000 51.28212000 -183.98080 + + -- ==================================================================== + -- =-------------------------- [DLC: Heists] -------------------------= + -- ==================================================================== + HeistCarrier.Enable(true) -- 3082.3117, -4717.1191, 15.2622 + HeistYacht.LoadDefault() -- -2043.974,-1031.582, 11.981 + + -- ==================================================================== + -- =--------------- [DLC: Executives & Other Criminals] --------------= + -- ==================================================================== + ExecApartment1.LoadDefault() -- -787.7805 334.9232 215.8384 (EclipseTowers, Penthouse Suite 1) + ExecApartment2.LoadDefault() -- -773.2258 322.8252 194.8862 (EclipseTowers, Penthouse Suite 2) + ExecApartment3.LoadDefault() -- -787.7805 334.9232 186.1134 (EclipseTowers, Penthouse Suite 3) + + -- ==================================================================== + -- =-------------------- [DLC: Finance & Felony] --------------------= + -- ==================================================================== + FinanceOffice1.LoadDefault() -- -141.1987, -620.913, 168.8205 (Arcadius Business Centre) + FinanceOffice2.LoadDefault() -- -75.8466, -826.9893, 243.3859 (Maze Bank Building) + FinanceOffice3.LoadDefault() -- -1579.756, -565.0661, 108.523 (Lom Bank) + FinanceOffice4.LoadDefault() -- -1392.667, -480.4736, 72.04217 (Maze Bank West) + + -- ==================================================================== + -- =-------------------------- [DLC: Bikers] -------------------------= + -- ==================================================================== + BikerCocaine.LoadDefault() -- Cocaine lockup: 1093.6, -3196.6, -38.99841 + BikerCounterfeit.LoadDefault() -- Counterfeit cash factory: 1121.897, -3195.338, -40.4025 + BikerDocumentForgery.LoadDefault() -- Document forgery: 1165, -3196.6, -39.01306 + BikerMethLab.LoadDefault() -- Meth lab: 1009.5, -3196.6, -38.99682 + BikerWeedFarm.LoadDefault() -- Weed farm: 1051.491, -3196.536, -39.14842 + BikerClubhouse1.LoadDefault() -- 1107.04, -3157.399, -37.51859 + BikerClubhouse2.LoadDefault() -- 998.4809, -3164.711, -38.90733 + + -- ==================================================================== + -- =---------------------- [DLC: Import/Export] ----------------------= + -- ==================================================================== + ImportCEOGarage1.LoadDefault() -- Arcadius Business Centre + ImportCEOGarage2.LoadDefault() -- Maze Bank Building /!\ Do not load parts Garage1, Garage2 and Garage3 at the same time (overlaping issues) + ImportCEOGarage3.LoadDefault() -- Lom Bank /!\ Do not load parts Garage1, Garage2 and Garage3 at the same time (overlaping issues) + ImportCEOGarage4.LoadDefault() -- Maze Bank West /!\ Do not load parts Garage1, Garage2 and Garage3 at the same time (overlaping issues) + ImportVehicleWarehouse.LoadDefault() -- Vehicle warehouse: 994.5925, -3002.594, -39.64699 + + -- ==================================================================== + -- =------------------------ [DLC: Gunrunning] -----------------------= + -- ==================================================================== + GunrunningBunker.LoadDefault() -- 892.6384, -3245.8664, -98.2645 + GunrunningYacht.LoadDefault() -- -1363.724, 6734.108, 2.44598 + + -- ==================================================================== + -- =---------------------- [DLC: Smuggler's Run] ---------------------= + -- ==================================================================== + SmugglerHangar.LoadDefault() -- -1267.0 -3013.135 -49.5 + + -- ==================================================================== + -- =-------------------- [DLC: The Doomsday Heist] -------------------= + -- ==================================================================== + DoomsdayFacility.LoadDefault() + + -- ==================================================================== + -- =----------------------- [DLC: After Hours] -----------------------= + -- ==================================================================== + AfterHoursNightclubs.LoadDefault() -- -1604.664, -3012.583, -78.000 + + -- ==================================================================== + -- =------------------- [DLC: Diamond Casino Resort] -----------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2060 then + DiamondCasino.LoadDefault() -- 1100.000, 220.000, -50.000 + DiamondPenthouse.LoadDefault() -- 976.636, 70.295, 115.164 + DiamondArcade.LoadDefault() -- 2732.000, -380.000, -50.000 + DiamondArcadeBasement.LoadDefault() -- 2710.0, -360.780, -56.0 + end + + -- ==================================================================== + -- =-------------------- [DLC: Cayo Perico Heist] --------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2189 then + CayoPericoNightclub.LoadDefault() -- 1550.0, 250.0, -50.0 + CayoPericoSubmarine.LoadDefault() -- 1560.0, 400.0, -50.0 + end + + -- ==================================================================== + -- =------------------- [DLC: Los Santos Tuners] ---------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2372 then + TunerGarage.LoadDefault() -- -1350.0, 160.0, -100.0 + TunerMethLab.LoadDefault() -- 981.9999, -143.0, -50.0 + TunerMeetup.LoadDefault() -- -2000.0, 1113.211, -25.36243 + end + + -- ==================================================================== + -- =------------------- [DLC: Los Santos The Contract] ---------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2545 then + MpSecurityGarage.LoadDefault() -- -1071.4387, -77.033875, -93.525505 + MpSecurityMusicRoofTop.LoadDefault() -- -592.6896, 273.1052, 116.302444 + MpSecurityStudio.LoadDefault() -- -1000.7252, -70.559875, -98.10669 + MpSecurityBillboards.LoadDefault() -- -592.6896, 273.1052, 116.302444 + MpSecurityOffice1.LoadDefault() -- -1021.86084, -427.74564, 68.95764 + MpSecurityOffice2.LoadDefault() -- 383.4156, -59.878227, 108.4595 + MpSecurityOffice3.LoadDefault() -- -1004.23035, -761.2084, 66.99069 + MpSecurityOffice4.LoadDefault() -- -587.87213, -716.84937, 118.10156 + end + + -- ==================================================================== + -- =------------------- [DLC: The Criminal Enterprise] ---------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2699 then + CriminalEnterpriseSmeonFix.LoadDefault() -- -50.2248, -1098.8325, 26.049742 + CriminalEnterpriseVehicleWarehouse.LoadDefault() -- 800.13696, -3001.4297, -65.14074 + CriminalEnterpriseWarehouse.LoadDefault() -- 849.1047, -3000.209, -45.974354 + end + + -- ==================================================================== + -- =------------------- [DLC: Los Santos Drug Wars] ------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2802 then + DrugWarsFreakshop.LoadDefault() -- 570.9713, -420.0727, -70.000 + DrugWarsGarage.LoadDefault() -- 519.2477, -2618.788, -50.000 + DrugWarsLab.LoadDefault() -- 483.4252, -2625.071, -50.000 + end + + -- ==================================================================== + -- =------------------- [DLC: San Andreas Mercenaries] ---------------= + -- ==================================================================== + if GetGameBuildNumber() >= 2944 then + MercenariesClub.LoadDefault() -- 1202.407, -3251.251, -50.000 + MercenariesLab.LoadDefault() -- -1916.119, 3749.719, -100.000 + MercenariesFixes.LoadDefault() + end + + -- ==================================================================== + -- =------------------- [DLC: The Chop Shop] -------------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 3095 then + ChopShopCargoShip.LoadDefault() -- -344.4349, -4062.832, 17.000 + ChopShopCartelGarage.LoadDefault() -- 1220.133, -2277.844, -50.000 + ChopShopLifeguard.LoadDefault() -- -1488.153, -1021.166, 5.000 + ChopShopSalvage.LoadDefault() -- 1077.276, -2274.876, -50.000 + end + + -- ==================================================================== + -- =------------------ [DLC: Bottom Dollar Bounties] -----------------= + -- ==================================================================== + if GetGameBuildNumber() >= 3258 then + SummerCarrier.LoadDefault() -- -3208.03, 3954.54, 14.0 + SummerOffice.LoadDefault() -- 565.886, -2688.761, -50.0 + end + + -- ==================================================================== + -- =-------------------- [DLC: Agents of Sabotage] -------------------= + -- ==================================================================== + if GetGameBuildNumber() >= 3407 then + AgentsFactory.LoadDefault() -- 752.31, -997.24, -47.0 + AgentsOffice.LoadDefault() -- 2149.71, 4787.76, -47.0 + AgentsAirstrip.LoadDefault() -- -2106.98, 1468.31, 282.0 + AgentsHangarDoor.LoadDefault() -- -2632.43, 2963.23, 8.5 + end +end) diff --git a/resources/[housing]/bob74_ipl/dlc_afterhours/nightclubs.lua b/resources/[housing]/bob74_ipl/dlc_afterhours/nightclubs.lua new file mode 100644 index 000000000..0b4c9bf17 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_afterhours/nightclubs.lua @@ -0,0 +1,703 @@ +-- Nightclub: -1604.664 -3012.583 -78.000 +exports('GetAfterHoursNightclubsObject', function() + return AfterHoursNightclubs +end) + +AfterHoursNightclubs = { + interiorId = 271617, + + Ipl = { + Interior = { + ipl = "ba_int_placement_ba_interior_0_dlc_int_01_ba_milo_", + + Load = function() + EnableIpl(AfterHoursNightclubs.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(AfterHoursNightclubs.Ipl.Interior.ipl, false) + end + } + }, + + Interior = { + Name = { + galaxy = "Int01_ba_clubname_01", + studio = "Int01_ba_clubname_02", + omega = "Int01_ba_clubname_03", + technologie = "Int01_ba_clubname_04", + gefangnis = "Int01_ba_clubname_05", + maisonette = "Int01_ba_clubname_06", + tony = "Int01_ba_clubname_07", + palace = "Int01_ba_clubname_08", + paradise = "Int01_ba_clubname_09", + + Set = function(name, refresh) + AfterHoursNightclubs.Interior.Name.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, name, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Name) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Style = { + trad = "Int01_ba_Style01", + edgy = "Int01_ba_Style02", + glam = "Int01_ba_Style03", + + Set = function(style, refresh) + AfterHoursNightclubs.Interior.Style.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, style, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Style) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Podium = { + none = "", + trad = "Int01_ba_style01_podium", + edgy = "Int01_ba_style02_podium", + glam = "Int01_ba_style03_podium", + + Set = function(podium, refresh) + AfterHoursNightclubs.Interior.Podium.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, podium, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Podium) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Speakers = { + none = "", + basic = "Int01_ba_equipment_setup", + upgrade = { + "Int01_ba_equipment_setup", + "Int01_ba_equipment_upgrade" + }, + + Set = function(speakers, refresh) + AfterHoursNightclubs.Interior.Speakers.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, speakers, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Speakers) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Security = { + off = "", + on = "Int01_ba_security_upgrade", + + Set = function(security, refresh) + AfterHoursNightclubs.Interior.Security.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, security, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(AfterHoursNightclubs.interiorId, AfterHoursNightclubs.Interior.Security.on, false, refresh) + end + }, + Turntables = { + none = "", + style01 = "Int01_ba_dj01", + style02 = "Int01_ba_dj02", + style03 = "Int01_ba_dj03", + style04 = "Int01_ba_dj04", + + Set = function(turntables, refresh) + AfterHoursNightclubs.Interior.Turntables.Clear(false) + + if turntables ~= "" then + SetIplPropState(AfterHoursNightclubs.interiorId, turntables, true, refresh) + else + if refresh then + RefreshInterior(AfterHoursNightclubs.interiorId) + end + end + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Turntables) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Lights = { + Droplets = { + yellow = "DJ_01_Lights_01", + green = "DJ_02_Lights_01", + white = "DJ_03_Lights_01", + purple = "DJ_04_Lights_01", + + Set = function(light, refresh) + AfterHoursNightclubs.Interior.Lights.Droplets.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, light, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Lights.Droplets) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Neons = { + yellow = "DJ_01_Lights_02", + white = "DJ_02_Lights_02", + purple = "DJ_03_Lights_02", + cyan = "DJ_04_Lights_02", + + Set = function(light, refresh) + AfterHoursNightclubs.Interior.Lights.Neons.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, light, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Lights.Neons) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Bands = { + yellow = "DJ_01_Lights_03", + green = "DJ_02_Lights_03", + white = "DJ_03_Lights_03", + cyan = "DJ_04_Lights_03", + + Set = function(light, refresh) + AfterHoursNightclubs.Interior.Lights.Bands.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, light, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Lights.Bands) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Lasers = { + yellow = "DJ_01_Lights_04", + green = "DJ_02_Lights_04", + white = "DJ_03_Lights_04", + purple = "DJ_04_Lights_04", + + Set = function(light, refresh) + AfterHoursNightclubs.Interior.Lights.Lasers.Clear(false) + + SetIplPropState(AfterHoursNightclubs.interiorId, light, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(AfterHoursNightclubs.Interior.Lights.Lasers) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, value, false, refresh) + end + end + end + }, + Clear = function() + AfterHoursNightclubs.Interior.Lights.Droplets.Clear() + AfterHoursNightclubs.Interior.Lights.Neons.Clear() + AfterHoursNightclubs.Interior.Lights.Bands.Clear() + AfterHoursNightclubs.Interior.Lights.Lasers.Clear() + end + }, + Bar = { + Enable = function(state, refresh) + SetIplPropState(AfterHoursNightclubs.interiorId, "Int01_ba_bar_content", state, refresh) + end + }, + Booze = { + A = "Int01_ba_booze_01", + B = "Int01_ba_booze_02", + C = "Int01_ba_booze_03", + + Enable = function(booze, state, refresh) + if type(booze) == "table" then + for key, value in pairs(booze) do + if type(value) == "string" then + SetIplPropState(AfterHoursNightclubs.interiorId, booze, state, refresh) + end + end + else + SetIplPropState(AfterHoursNightclubs.interiorId, booze, state, refresh) + end + end + }, + Trophy = { + Color = { + bronze = 0, + silver = 1, + gold = 2 + }, + number1 = "Int01_ba_trophy01", + battler = "Int01_ba_trophy02", + dancer = "Int01_ba_trophy03", + + Enable = function(trophy, state, color, refresh) + SetIplPropState(AfterHoursNightclubs.interiorId, trophy, state, refresh) + SetInteriorEntitySetColor(AfterHoursNightclubs.interiorId, trophy, color) + end + }, + DryIce = { + scale = 5.0, + Emitters = { + { + pos = vector3(-1602.932, -3019.1, -79.99), + rot = vector3(0.0, -10.0, 66.0) + }, + { + pos = vector3(-1593.238, -3017.05, -79.99), + rot = vector3(0.0, -10.0, 110.0) + }, + { + pos = vector3(-1597.134, -3008.2, -79.99), + rot = vector3(0.0, -10.0, -122.53) + }, + { + pos = vector3(-1589.966, -3008.518, -79.99), + rot = vector3(0.0, -10.0, -166.97) + } + }, + + Enable = function(state) + if state then + RequestNamedPtfxAsset("scr_ba_club") + while not HasNamedPtfxAssetLoaded("scr_ba_club") do + Wait(0) + end + + for key, emitter in pairs(AfterHoursNightclubs.Interior.DryIce.Emitters) do + UseParticleFxAsset("scr_ba_club") + StartParticleFxLoopedAtCoord("scr_ba_club_smoke_machine", emitter.pos.x, emitter.pos.y, emitter.pos.z, emitter.rot.x, emitter.rot.y, emitter.rot.z, AfterHoursNightclubs.Interior.DryIce.scale, false, false, false, true) + end + else + local radius = 1.0 + + for key, emitter in pairs(AfterHoursNightclubs.Interior.DryIce.Emitters) do + RemoveParticleFxInRange(emitter.pos.x, emitter.pos.y, emitter.pos.z, radius) + end + end + end, + }, + Details = { + clutter = "Int01_ba_Clutter", -- Clutter and graffitis + worklamps = "Int01_ba_Worklamps", -- Work lamps + trash + truck = "Int01_ba_deliverytruck", -- Truck parked in the garage + dryIce = "Int01_ba_dry_ice", -- Dry ice machines (no effects) + lightRigsOff = "light_rigs_off", -- All light rigs at once but turned off + roofLightsOff = "Int01_ba_lightgrid_01", -- Fake lights + floorTradLights = "Int01_ba_trad_lights", -- Floor lights meant to go with the trad style + chest = "Int01_ba_trophy04", -- Chest on the VIP desk + vaultAmmunations = "Int01_ba_trophy05", -- (inside vault) Ammunations + vaultMeth = "Int01_ba_trophy07", -- (inside vault) Meth bag + vaultFakeID = "Int01_ba_trophy08", -- (inside vault) Fake ID + vaultWeed = "Int01_ba_trophy09", -- (inside vault) Opened weed bag + vaultCoke = "Int01_ba_trophy10", -- (inside vault) Coke doll + vaultCash = "Int01_ba_trophy11", -- (inside vault) Scrunched fake money + + Enable = function(details, state, refresh) + SetIplPropState(AfterHoursNightclubs.interiorId, details, state, refresh) + end + } + }, + + -- 760, -1337, 27 + Mesa = { + id = 0, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Mesa.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Mesa.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Mesa.id) + end + } + }, + + -- 348, -979, 30 + MissionRow = { + id = 1, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.MissionRow.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.MissionRow.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.MissionRow.id) + end + } + }, + + -- -118, -1260, 30 + Strawberry = { + id = 2, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Strawberry.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Strawberry.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Strawberry.id) + end + } + }, + + -- 9, 221, 109 + VinewoodWest = { + id = 3, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.VinewoodWest.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.VinewoodWest.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.VinewoodWest.id) + end + } + }, + + -- 868, -2098, 31 + Cypress = { + id = 4, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Cypress.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Cypress.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Cypress.id) + end + } + }, + + -- -1287, -647, 27 + DelPerro = { + id = 5, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.DelPerro.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.DelPerro.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.DelPerro.id) + end + } + }, + + -- -680, -2461, 14 + Airport = { + id = 6, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Airport.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Airport.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Airport.id) + end + } + }, + + -- 192, -3168, 6 + Elysian = { + id = 7, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Elysian.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Elysian.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Elysian.id) + end + } + }, + + -- 373, 254, 103 + Vinewood = { + id = 8, + + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Vinewood.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Vinewood.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Vinewood.id) + end + } + }, + + -- -1171, -1150, 6 + Vespucci = { + id = 9, + Barrier = { + Enable = function(state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Barrier.Enable(AfterHoursNightclubs.Vespucci.id, state) + end + }, + Posters = { + Enable = function(poster, state) + if state == nil then + state = true + end + + AfterHoursNightclubs.Posters.Enable(AfterHoursNightclubs.Vespucci.id, poster, state) + end, + Clear = function() + AfterHoursNightclubs.Posters.Clear(AfterHoursNightclubs.Vespucci.id) + end + } + }, + + Barrier = { + barrier = "ba_barriers_caseX", + + Enable = function(clubId, state) + value = AfterHoursNightclubs.Barrier.barrier:gsub("caseX", "case" .. tostring(clubId)) + + EnableIpl(value, state) + end + }, + Posters = { + forSale = "ba_caseX_forsale", + dixon = "ba_caseX_dixon", + madonna = "ba_caseX_madonna", + solomun = "ba_caseX_solomun", + taleOfUs = "ba_caseX_taleofus", + + Enable = function(clubId, poster, state) + if type(poster) == "table" then + for key, value in pairs(poster) do + if type(value) == "string" then + value = value:gsub("caseX", "case" .. tostring(clubId)) + + EnableIpl(value, state) + end + end + else + poster = poster:gsub("caseX", "case" .. tostring(clubId)) + + EnableIpl(poster, state) + end + end, + Clear = function(clubId) + for key, value in pairs(AfterHoursNightclubs.Posters) do + if type(value) == "string" then + value = value:gsub("caseX", "case" .. tostring(clubId)) + + EnableIpl(value, false) + end + end + end + }, + + LoadDefault = function() + -- Interior setup + AfterHoursNightclubs.Ipl.Interior.Load() + + AfterHoursNightclubs.Interior.Name.Set(AfterHoursNightclubs.Interior.Name.galaxy) + AfterHoursNightclubs.Interior.Style.Set(AfterHoursNightclubs.Interior.Style.edgy) + + AfterHoursNightclubs.Interior.Podium.Set(AfterHoursNightclubs.Interior.Podium.edgy) + AfterHoursNightclubs.Interior.Speakers.Set(AfterHoursNightclubs.Interior.Speakers.upgrade) + + AfterHoursNightclubs.Interior.Security.Set(AfterHoursNightclubs.Interior.Security.on) + + AfterHoursNightclubs.Interior.Turntables.Set(AfterHoursNightclubs.Interior.Turntables.style01) + AfterHoursNightclubs.Interior.Lights.Bands.Set(AfterHoursNightclubs.Interior.Lights.Bands.cyan) + + AfterHoursNightclubs.Interior.Bar.Enable(true) + + AfterHoursNightclubs.Interior.Booze.Enable(AfterHoursNightclubs.Interior.Booze, true) + + AfterHoursNightclubs.Interior.Trophy.Enable(AfterHoursNightclubs.Interior.Trophy.number1, true, AfterHoursNightclubs.Interior.Trophy.Color.gold) + + RefreshInterior(AfterHoursNightclubs.interiorId) + + -- Exterior IPL + AfterHoursNightclubs.Mesa.Barrier.Enable(true) + AfterHoursNightclubs.Mesa.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Mesa.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.MissionRow.Barrier.Enable(true) + AfterHoursNightclubs.MissionRow.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.MissionRow.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Strawberry.Barrier.Enable(true) + AfterHoursNightclubs.Strawberry.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Strawberry.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.VinewoodWest.Barrier.Enable(true) + AfterHoursNightclubs.VinewoodWest.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.VinewoodWest.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Cypress.Barrier.Enable(true) + AfterHoursNightclubs.Cypress.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Cypress.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.DelPerro.Barrier.Enable(true) + AfterHoursNightclubs.DelPerro.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.DelPerro.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Airport.Barrier.Enable(true) + AfterHoursNightclubs.Airport.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Airport.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Elysian.Barrier.Enable(true) + AfterHoursNightclubs.Elysian.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Elysian.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Vinewood.Barrier.Enable(true) + AfterHoursNightclubs.Vinewood.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Vinewood.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + + AfterHoursNightclubs.Vespucci.Barrier.Enable(true) + AfterHoursNightclubs.Vespucci.Posters.Enable(AfterHoursNightclubs.Posters, true) + AfterHoursNightclubs.Vespucci.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_agents/airstrip.lua b/resources/[housing]/bob74_ipl/dlc_agents/airstrip.lua new file mode 100644 index 000000000..63687b114 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_agents/airstrip.lua @@ -0,0 +1,21 @@ +-- Airstrip: -2106.98, 1468.31, 282.0 +exports("GetAgentsAirstrip", function() + return AgentsAirstrip +end) + +AgentsAirstrip = { + Ipl = { + ipl = "m24_2_airstrip", + + Load = function() + EnableIpl(AgentsAirstrip.Ipl.ipl, true) + end, + Remove = function() + EnableIpl(AgentsAirstrip.Ipl.ipl, false) + end + }, + + LoadDefault = function() + AgentsAirstrip.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_agents/base.lua b/resources/[housing]/bob74_ipl/dlc_agents/base.lua new file mode 100644 index 000000000..053cdff9b --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_agents/base.lua @@ -0,0 +1,4 @@ +CreateThread(function() + RequestIpl("m24_2_legacy_fixes") + RequestIpl("m24_2_mp2024_02_additions") +end) diff --git a/resources/[housing]/bob74_ipl/dlc_agents/factory.lua b/resources/[housing]/bob74_ipl/dlc_agents/factory.lua new file mode 100644 index 000000000..9942bd89d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_agents/factory.lua @@ -0,0 +1,65 @@ +-- Garment Factory: 752.31, -997.24, -47.0 +exports("GetAgentsFactory", function() + return AgentsFactory +end) + +AgentsFactory = { + interiorId = 297729, + + Ipl = { + Exterior = { + ipl = "m24_2_garment_factory", + + Load = function() + EnableIpl(AgentsFactory.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(AgentsFactory.Ipl.Exterior.ipl, false) + end + } + }, + + Trophy = { + egg = "set_pent_rob_egg", + idol01 = "set_pent_rob_idol_01", + idol02 = "set_pent_rob_idol_02", + scarab = "set_zanc_scarab", + drive = "set_whistle_drive", + plane = "set_cargo", + + Enable = function(trophy, state, refresh) + SetIplPropState(AgentsFactory.interiorId, trophy, state, refresh) + end + }, + + Details = { + sonar = "set_sonar", + drive = "set_malware_drive", + controller = "set_rc_controller", + thermite = "set_thermal", + key = "set_smartkey", + drone = "set_pent_drone", + case = "set_pent_emp", + armor = "set_zanc_armor", + keycard = "set_zanc_keycard", + + Enable = function(details, state, refresh) + SetIplPropState(AgentsFactory.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + -- Exterior + AgentsFactory.Ipl.Exterior.Load() + + -- Interior + AgentsFactory.Trophy.Enable(AgentsFactory.Trophy.idol01, true, false) + AgentsFactory.Trophy.Enable(AgentsFactory.Trophy.idol02, true, false) + + AgentsFactory.Details.Enable(AgentsFactory.Details.armor, true, false) + AgentsFactory.Details.Enable(AgentsFactory.Details.sonar, true, false) + AgentsFactory.Details.Enable(AgentsFactory.Details.drive, true, false) + + RefreshInterior(AgentsFactory.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_agents/hangar_door.lua b/resources/[housing]/bob74_ipl/dlc_agents/hangar_door.lua new file mode 100644 index 000000000..92cdf752b --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_agents/hangar_door.lua @@ -0,0 +1,21 @@ +-- Hangar door: -2632.43, 2963.23, 8.5 +exports("GetAgentsHangarDoor", function() + return AgentsHangarDoor +end) + +AgentsHangarDoor = { + Ipl = { + ipl = "m24_2_prop_m42_hangerdoor_02a", + + Load = function() + EnableIpl(AgentsHangarDoor.Ipl.ipl, true) + end, + Remove = function() + EnableIpl(AgentsHangarDoor.Ipl.ipl, false) + end + }, + + LoadDefault = function() + AgentsHangarDoor.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_agents/office.lua b/resources/[housing]/bob74_ipl/dlc_agents/office.lua new file mode 100644 index 000000000..5cb00be70 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_agents/office.lua @@ -0,0 +1,47 @@ +-- McKenzie Field Hangar Office: 2149.71, 4787.76, -47.0 +exports("GetAgentsOffice", function() + return AgentsOffice +end) + +AgentsOffice = { + interiorId = 297985, + + Style = { + bed = "set_bed", + mess = "collision_z9mhn5", + + Set = function(style, refresh) + AgentsOffice.Style.Clear(refresh) + + SetIplPropState(AgentsOffice.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(AgentsOffice.interiorId, { + AgentsOffice.Style.bed, + AgentsOffice.Style.mess + }, false, refresh) + end + }, + + Details = { + laptop = "set_laptop", + ammo = "set_ammo", + intel = "set_intel", + weapons = "set_weapons", + tools = "collision_9k04j35", + booze = "set_24_2", + + Enable = function(details, state, refresh) + SetIplPropState(AgentsOffice.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + AgentsOffice.Style.Set(AgentsOffice.Style.bed, false) + + AgentsOffice.Details.Enable(AgentsOffice.Details.laptop, true, false) + AgentsOffice.Details.Enable(AgentsOffice.Details.booze, true, false) + + RefreshInterior(AgentsOffice.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse1.lua b/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse1.lua new file mode 100644 index 000000000..0bddea1c5 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse1.lua @@ -0,0 +1,388 @@ +-- Clubhouse1: 1107.04, -3157.399, -37.51859 +exports('GetBikerClubhouse1Object', function() + return BikerClubhouse1 +end) + +BikerClubhouse1 = { + interiorId = 246273, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_0_biker_dlc_int_01_milo", + + Load = function() + EnableIpl(BikerClubhouse1.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerClubhouse1.Ipl.Interior.ipl, false) + end + } + }, + Walls = { + brick = "walls_01", + plain = "walls_02", + Color = { + sable = 0, + yellowGray = 1, + red = 2, + brown = 3, + yellow = 4, + lightYellow = 5, + lightYellowGray = 6, + lightGray = 7, + orange = 8, + gray = 9 + }, + + Set = function(walls, color, refresh) + if color == nil then + color = 0 + end + + BikerClubhouse1.Walls.Clear(false) + + SetIplPropState(BikerClubhouse1.interiorId, walls, true, refresh) + SetInteriorEntitySetColor(BikerClubhouse1.interiorId, walls, color) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Walls.brick, + BikerClubhouse1.Walls.plain + }, false, refresh) + end + }, + Furnitures = { + A = "furnishings_01", + B = "furnishings_02", + + Set = function(furn, color, refresh) + if color == nil then + color = 0 + end + + BikerClubhouse1.Furnitures.Clear(false) + + SetIplPropState(BikerClubhouse1.interiorId, furn, true, refresh) + SetInteriorEntitySetColor(BikerClubhouse1.interiorId, furn, color) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Furnitures.A, + BikerClubhouse1.Furnitures.B + }, false, refresh) + end + }, + Decoration = { + A = "decorative_01", + B = "decorative_02", + + Set = function(deco, refresh) + BikerClubhouse1.Decoration.Clear(false) + + SetIplPropState(BikerClubhouse1.interiorId, deco, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Decoration.A, + BikerClubhouse1.Decoration.B + }, false, refresh) + end + }, + Mural = { + none = "", + rideFree = "mural_01", + mods = "mural_02", + brave = "mural_03", + fist = "mural_04", + forest = "mural_05", + mods2 = "mural_06", + rideForever = "mural_07", + heart = "mural_08", + route68 = "mural_09", + + Set = function(mural, refresh) + BikerClubhouse1.Mural.Clear(false) + + if mural ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, mural, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Mural.rideFree, + BikerClubhouse1.Mural.mods, + BikerClubhouse1.Mural.brave, + BikerClubhouse1.Mural.fist, + BikerClubhouse1.Mural.forest, + BikerClubhouse1.Mural.mods2, + BikerClubhouse1.Mural.rideForever, + BikerClubhouse1.Mural.heart, + BikerClubhouse1.Mural.route68 + }, false, refresh) + end + }, + GunLocker = { + none = "", + on = "gun_locker", + off = "no_gun_locker", + + Set = function(locker, refresh) + BikerClubhouse1.GunLocker.Clear(false) + + if locker ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, locker, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.GunLocker.on, + BikerClubhouse1.GunLocker.off + }, false, refresh) + end + }, + ModBooth = { + none = "", + on = "mod_booth", + off = "no_mod_booth", + + Set = function(mod, refresh) + BikerClubhouse1.ModBooth.Clear(false) + + if mod ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, mod, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.ModBooth.on, + BikerClubhouse1.ModBooth.off + }, false, refresh) + end + }, + Meth = { + none = "", + stage1 = "meth_stash1", + stage2 = { + "meth_stash1", + "meth_stash2" + }, + stage3 = { + "meth_stash1", + "meth_stash2", + "meth_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Meth.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Meth.stage1, + BikerClubhouse1.Meth.stage2, + BikerClubhouse1.Meth.stage3 + }, false, refresh) + end + }, + Cash = { + none = "", + stage1 = "cash_stash1", + stage2 = { + "cash_stash1", + "cash_stash2" + }, + stage3 = { + "cash_stash1", + "cash_stash2", + "cash_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Cash.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Cash.stage1, + BikerClubhouse1.Cash.stage2, + BikerClubhouse1.Cash.stage3 + }, false, refresh) + end + }, + Weed = { + none = "", + stage1 = "weed_stash1", + stage2 = { + "weed_stash1", + "weed_stash2" + }, + stage3 = { + "weed_stash1", + "weed_stash2", + "weed_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Weed.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Weed.stage1, + BikerClubhouse1.Weed.stage2, + BikerClubhouse1.Weed.stage3 + }, false, refresh) + end + }, + Coke = { + none = "", + stage1 = "coke_stash1", + stage2 = { + "coke_stash1", + "coke_stash2" + }, + stage3 = { + "coke_stash1", + "coke_stash2", + "coke_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Coke.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Coke.stage1, + BikerClubhouse1.Coke.stage2, + BikerClubhouse1.Coke.stage3 + }, false, refresh) + end + }, + Counterfeit = { + none = "", + stage1 = "counterfeit_stash1", + stage2 = { + "counterfeit_stash1", + "counterfeit_stash2" + }, + stage3 = { + "counterfeit_stash1", + "counterfeit_stash2", + "counterfeit_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Counterfeit.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Counterfeit.stage1, + BikerClubhouse1.Counterfeit.stage2, + BikerClubhouse1.Counterfeit.stage3 + }, false, refresh) + end + }, + Documents = { + none = "", + stage1 = "id_stash1", + stage2 = { + "id_stash1", + "id_stash2" + }, + stage3 = { + "id_stash1", + "id_stash2", + "id_stash3" + }, + + Set = function(stage, refresh) + BikerClubhouse1.Documents.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse1.interiorId, { + BikerClubhouse1.Documents.stage1, + BikerClubhouse1.Documents.stage2, + BikerClubhouse1.Documents.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + BikerClubhouse1.Ipl.Interior.Load() + + BikerClubhouse1.Walls.Set(BikerClubhouse1.Walls.plain, BikerClubhouse1.Walls.Color.brown) + + BikerClubhouse1.Furnitures.Set(BikerClubhouse1.Furnitures.A, 3) + BikerClubhouse1.Decoration.Set(BikerClubhouse1.Decoration.A) + BikerClubhouse1.Mural.Set(BikerClubhouse1.Mural.rideFree) + + BikerClubhouse1.ModBooth.Set(BikerClubhouse1.ModBooth.none) + BikerClubhouse1.GunLocker.Set(BikerClubhouse1.GunLocker.none) + + BikerClubhouse1.Meth.Set(BikerClubhouse1.Meth.none) + BikerClubhouse1.Cash.Set(BikerClubhouse1.Cash.none) + BikerClubhouse1.Coke.Set(BikerClubhouse1.Coke.none) + BikerClubhouse1.Weed.Set(BikerClubhouse1.Weed.none) + BikerClubhouse1.Counterfeit.Set(BikerClubhouse1.Counterfeit.none) + BikerClubhouse1.Documents.Set(BikerClubhouse1.Documents.none) + + RefreshInterior(BikerClubhouse1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse2.lua b/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse2.lua new file mode 100644 index 000000000..9aba622b3 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/clubhouse2.lua @@ -0,0 +1,402 @@ +-- Clubhouse2: 998.4809, -3164.711, -38.90733 +exports('GetBikerClubhouse2Object', function() + return BikerClubhouse2 +end) + +BikerClubhouse2 = { + interiorId = 246529, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_1_biker_dlc_int_02_milo", + + Load = function() + EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, false) + end + } + }, + Walls = { + brick = "walls_01", + plain = "walls_02", + Color = { + greenAndGray = 1, + multicolor = 2, + orangeAndGray = 3, + blue = 4, + lightBlueAndSable = 5, + greenAndRed = 6, + yellowAndGray = 7, + red = 8, + fuchsiaAndGray = 9 + }, + + Set = function(walls, color, refresh) + if color == nil then + color = 0 + end + + BikerClubhouse2.Walls.Clear(false) + + SetIplPropState(BikerClubhouse2.interiorId, walls, true, refresh) + SetInteriorEntitySetColor(BikerClubhouse2.interiorId, walls, color) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Walls.brick, + BikerClubhouse2.Walls.plain + }, false, refresh) + end + }, + LowerWalls = { + default = "lower_walls_default", + + SetColor = function(color, refresh) + SetIplPropState(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, true, refresh) + SetInteriorEntitySetColor(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, color) + end, + }, + Furnitures = { + A = "furnishings_01", + B = "furnishings_02", + -- Colors for "furnishings_01" only + Color = { + turquoise = 0, + darkBrown = 1, + brown = 2, + -- 3 equal 1 + brown2 = 4, + gray = 5, + red = 6, + darkGray = 7, + black = 8, + red2 = 9 + }, + + Set = function(furn, color, refresh) + if color == nil then + color = 0 + end + + BikerClubhouse2.Furnitures.Clear(false) + + SetIplPropState(BikerClubhouse2.interiorId, furn, true, refresh) + SetInteriorEntitySetColor(BikerClubhouse2.interiorId, furn, color) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Furnitures.A, + BikerClubhouse2.Furnitures.B + }, false, refresh) + end + }, + Decoration = { + A = "decorative_01", + B = "decorative_02", + + Set = function(deco, refresh) + BikerClubhouse2.Decoration.Clear(false) + + SetIplPropState(BikerClubhouse2.interiorId, deco, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Decoration.A, + BikerClubhouse2.Decoration.B + }, false, refresh) + end + }, + Mural = { + none = "", + death1 = "mural_01", + cityColor1 = "mural_02", + death2 = "mural_03", + cityColor2 = "mural_04", + graffitis = "mural_05", + cityColor3 = "mural_06", + cityColor4 = "mural_07", + cityBlack = "mural_08", + death3 = "mural_09", + + Set = function(mural, refresh) + BikerClubhouse2.Mural.Clear(false) + + if mural ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, mural, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Mural.death1, + BikerClubhouse2.Mural.cityColor1, + BikerClubhouse2.Mural.death2, + BikerClubhouse2.Mural.cityColor2, + BikerClubhouse2.Mural.graffitis, + BikerClubhouse2.Mural.cityColor3, + BikerClubhouse2.Mural.cityColor4, + BikerClubhouse2.Mural.cityBlack, + BikerClubhouse2.Mural.death3 + }, false, refresh) + end + }, + GunLocker = { + on = "gun_locker", + off = "no_gun_locker", + + Set = function(locker, refresh) + BikerClubhouse2.GunLocker.Clear(false) + + if locker ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, locker, true, refresh) + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.GunLocker.on, + BikerClubhouse2.GunLocker.off + }, false, refresh) + end + }, + ModBooth = { + none = "", + on = "mod_booth", + off = "no_mod_booth", + + Set = function(mod, refresh) + BikerClubhouse2.ModBooth.Clear(false) + + if mod ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, mod, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.ModBooth.on, + BikerClubhouse2.ModBooth.off + }, false, refresh) + end + }, + Meth = { + none = "", + stage1 = "meth_small", + stage2 = { + "meth_small", + "meth_medium" + }, + stage3 = { + "meth_small", + "meth_medium", + "meth_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Meth.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Meth.stage1, + BikerClubhouse2.Meth.stage2, + BikerClubhouse2.Meth.stage3 + }, false, refresh) + end + }, + Cash = { + none = "", + stage1 = "cash_small", + stage2 = { + "cash_small", + "cash_medium" + }, + stage3 = { + "cash_small", + "cash_medium", + "cash_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Cash.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Cash.stage1, + BikerClubhouse2.Cash.stage2, + BikerClubhouse2.Cash.stage3 + }, false, refresh) + end + }, + Weed = { + none = "", + stage1 = "weed_small", + stage2 = { + "weed_small", + "weed_medium" + }, + stage3 = { + "weed_small", + "weed_medium", + "weed_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Weed.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Weed.stage1, + BikerClubhouse2.Weed.stage2, + BikerClubhouse2.Weed.stage3 + }, false, refresh) + end + }, + Coke = { + none = "", + stage1 = "coke_small", + stage2 = { + "coke_small", + "coke_medium" + }, + stage3 = { + "coke_small", + "coke_medium", + "coke_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Coke.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Coke.stage1, + BikerClubhouse2.Coke.stage2, + BikerClubhouse2.Coke.stage3 + }, false, refresh) + end + }, + Counterfeit = { + none = "", + stage1 = "counterfeit_small", + stage2 = { + "counterfeit_small", + "counterfeit_medium" + }, + stage3 = { + "counterfeit_small", + "counterfeit_medium", + "counterfeit_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Counterfeit.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then + RefreshInterior(BikerClubhouse2.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Counterfeit.stage1, + BikerClubhouse2.Counterfeit.stage2, + BikerClubhouse2.Counterfeit.stage3 + }, false, refresh) + end + }, + Documents = { + none = "", + stage1 = "id_small", + stage2 = { + "id_small", + "id_medium" + }, + stage3 = { + "id_small", + "id_medium", + "id_large" + }, + + Set = function(stage, refresh) + BikerClubhouse2.Documents.Clear(false) + + if stage ~= "" then + SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh) + else + if refresh then RefreshInterior(BikerClubhouse2.interiorId) end + end + end, + Clear = function(refresh) + SetIplPropState(BikerClubhouse2.interiorId, { + BikerClubhouse2.Documents.stage1, + BikerClubhouse2.Documents.stage2, + BikerClubhouse2.Documents.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + BikerClubhouse2.Ipl.Interior.Load() + + BikerClubhouse2.Walls.Set(BikerClubhouse2.Walls.brick, BikerClubhouse2.Walls.Color.red) + BikerClubhouse2.LowerWalls.SetColor(BikerClubhouse2.Walls.Color.red) + + BikerClubhouse2.Furnitures.Set(BikerClubhouse2.Furnitures.B, BikerClubhouse2.Furnitures.Color.black) + BikerClubhouse2.Decoration.Set(BikerClubhouse2.Decoration.B) + BikerClubhouse2.Mural.Set(BikerClubhouse2.Mural.death3) + + BikerClubhouse2.ModBooth.Set(BikerClubhouse2.ModBooth.off) + BikerClubhouse2.GunLocker.Set(BikerClubhouse2.GunLocker.off) + + BikerClubhouse2.Meth.Set(BikerClubhouse2.Meth.none) + BikerClubhouse2.Cash.Set(BikerClubhouse2.Cash.none) + BikerClubhouse2.Coke.Set(BikerClubhouse2.Coke.none) + BikerClubhouse2.Weed.Set(BikerClubhouse2.Weed.none) + BikerClubhouse2.Counterfeit.Set(BikerClubhouse2.Counterfeit.none) + BikerClubhouse2.Documents.Set(BikerClubhouse2.Documents.none) + + RefreshInterior(BikerClubhouse2.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/cocaine.lua b/resources/[housing]/bob74_ipl/dlc_bikers/cocaine.lua new file mode 100644 index 000000000..448470d44 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/cocaine.lua @@ -0,0 +1,98 @@ +-- Cocaine lockup: 1093.6, -3196.6, -38.99841 +exports('GetBikerCocaineObject', function() + return BikerCocaine +end) + +BikerCocaine = { + interiorId = 247553, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_4_biker_dlc_int_ware03_milo", + + Load = function() + EnableIpl(BikerCocaine.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerCocaine.Ipl.Interior.ipl, false) + end + } + }, + Style = { + none = "", + basic = { + "set_up", + "equipment_basic", + "coke_press_basic", + "production_basic", + "table_equipment" + }, + upgrade = { + "set_up", + "equipment_upgrade", + "coke_press_upgrade", + "production_upgrade", + "table_equipment_upgrade" + }, + + Set = function(style, refresh) + BikerCocaine.Style.Clear(false) + + if style ~= "" then + SetIplPropState(BikerCocaine.interiorId, style, true, refresh) + else + if refresh then + RefreshInterior(BikerCocaine.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCocaine.interiorId, { + BikerCocaine.Style.basic, + BikerCocaine.Style.upgrade + }, false, refresh) + end + }, + Security = { + none = "", + basic = "security_low", + upgrade = "security_high", + + Set = function(security, refresh) + BikerCocaine.Security.Clear(false) + + if security ~= "" then + SetIplPropState(BikerCocaine.interiorId, security, true, refresh) + else + if refresh then + RefreshInterior(BikerCocaine.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCocaine.interiorId, { + BikerCocaine.Security.basic, + BikerCocaine.Security.upgrade + }, false, refresh) + end + }, + Details = { + cokeBasic1 = "coke_cut_01", -- On the basic tables + cokeBasic2 = "coke_cut_02", -- On the basic tables + cokeBasic3 = "coke_cut_03", -- On the basic tables + cokeUpgrade1 = "coke_cut_04", -- On the upgraded tables + cokeUpgrade2 = "coke_cut_05", -- On the upgraded tables + + Enable = function(details, state, refresh) + SetIplPropState(BikerCocaine.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + BikerCocaine.Ipl.Interior.Load() + BikerCocaine.Style.Set(BikerCocaine.Style.basic) + BikerCocaine.Security.Set(BikerCocaine.Security.none) + + RefreshInterior(BikerCocaine.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/counterfeit_cash.lua b/resources/[housing]/bob74_ipl/dlc_bikers/counterfeit_cash.lua new file mode 100644 index 000000000..b631521fc --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/counterfeit_cash.lua @@ -0,0 +1,206 @@ +-- Counterfeit cash factory: 1121.897, -3195.338, -40.4025 +exports('GetBikerCounterfeitObject', function() + return BikerCounterfeit +end) + +BikerCounterfeit = { + interiorId = 247809, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_5_biker_dlc_int_ware04_milo", + + Load = function() + EnableIpl(BikerCounterfeit.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerCounterfeit.Ipl.Interior.ipl, false) + end + } + }, + Printer = { + none = "", + basic = "counterfeit_standard_equip_no_prod", + basicProd = "counterfeit_standard_equip", + upgrade = "counterfeit_upgrade_equip_no_prod", + upgradeProd = "counterfeit_upgrade_equip", + + Set = function(printer, refresh) + BikerCounterfeit.Printer.Clear(false) + + if printer ~= "" then + SetIplPropState(BikerCounterfeit.interiorId, printer, true, refresh) + else + if refresh then + RefreshInterior(BikerCounterfeit.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Printer.basic, + BikerCounterfeit.Printer.basicProd, + BikerCounterfeit.Printer.upgrade, + BikerCounterfeit.Printer.upgradeProd + }, false, refresh) + end + }, + Security = { + basic = "counterfeit_low_security", + upgrade = "counterfeit_security", + + Set = function(security, refresh) + BikerCounterfeit.Security.Clear(false) + + SetIplPropState(BikerCounterfeit.interiorId, security, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Security.basic, + BikerCounterfeit.Security.upgrade + }, false, refresh) + end + }, + Dryer1 = { + none = "", + on = "dryera_on", + off = "dryera_off", + open = "dryera_open", + + Set = function(dryer, refresh) + BikerCounterfeit.Dryer1.Clear(false) + + if dryer ~= "" then + SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh) + else + if refresh then + RefreshInterior(BikerCounterfeit.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Dryer1.on, + BikerCounterfeit.Dryer1.off, + BikerCounterfeit.Dryer1.open + }, false, refresh) + end + }, + Dryer2 = { + none = "", + on = "dryerb_on", + off = "dryerb_off", + open = "dryerb_open", + + Set = function(dryer, refresh) + BikerCounterfeit.Dryer2.Clear(false) + + if dryer ~= "" then + SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh) + else + if refresh then + RefreshInterior(BikerCounterfeit.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Dryer2.on, + BikerCounterfeit.Dryer2.off, + BikerCounterfeit.Dryer2.open + }, false, refresh) + end + }, + Dryer3 = { + none = "", + on = "dryerc_on", + off = "dryerc_off", + open = "dryerc_open", + + Set = function(dryer, refresh) + BikerCounterfeit.Dryer3.Clear(false) + + if dryer ~= "" then + SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh) + else + if refresh then + RefreshInterior(BikerCounterfeit.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Dryer3.on, + BikerCounterfeit.Dryer3.off, + BikerCounterfeit.Dryer3.open + }, false, refresh) + end + }, + Dryer4 = { + none = "", + on = "dryerd_on", + off = "dryerd_off", + open = "dryerd_open", + + Set = function(dryer, refresh) + BikerCounterfeit.Dryer4.Clear(false) + + if dryer ~= "" then + SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh) + else + if refresh then + RefreshInterior(BikerCounterfeit.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerCounterfeit.interiorId, { + BikerCounterfeit.Dryer4.on, + BikerCounterfeit.Dryer4.off, + BikerCounterfeit.Dryer4.open + }, false, refresh) + end + }, + Details = { + Cash10 = { + A = "counterfeit_cashpile10a", + B = "counterfeit_cashpile10b", + C = "counterfeit_cashpile10c", + D = "counterfeit_cashpile10d", + }, + Cash20 = { + A = "counterfeit_cashpile20a", + B = "counterfeit_cashpile20b", + C = "counterfeit_cashpile20c", + D = "counterfeit_cashpile20d", + }, + Cash100 = { + A = "counterfeit_cashpile100a", + B = "counterfeit_cashpile100b", + C = "counterfeit_cashpile100c", + D = "counterfeit_cashpile100d", + }, + chairs = "special_chairs", -- Brown chairs at the end of the room + cutter = "money_cutter", -- Money cutting machine + furnitures = "counterfeit_setup", -- Paper, counting machines, cups + + Enable = function(details, state, refresh) + SetIplPropState(BikerCounterfeit.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + BikerCounterfeit.Ipl.Interior.Load() + BikerCounterfeit.Printer.Set(BikerCounterfeit.Printer.basicProd) + BikerCounterfeit.Security.Set(BikerCounterfeit.Security.upgrade) + BikerCounterfeit.Dryer1.Set(BikerCounterfeit.Dryer1.open) + BikerCounterfeit.Dryer2.Set(BikerCounterfeit.Dryer2.on) + BikerCounterfeit.Dryer3.Set(BikerCounterfeit.Dryer3.on) + BikerCounterfeit.Dryer4.Set(BikerCounterfeit.Dryer4.on) + BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.cutter, true) + BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.furnitures, true) + BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.Cash100, true) + + RefreshInterior(BikerCounterfeit.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/document_forgery.lua b/resources/[housing]/bob74_ipl/dlc_bikers/document_forgery.lua new file mode 100644 index 000000000..00a06dfc1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/document_forgery.lua @@ -0,0 +1,107 @@ +-- Document forgery: 1165, -3196.6, -39.01306 +exports('GetBikerDocumentForgeryObject', function() + return BikerDocumentForgery +end) + +BikerDocumentForgery = { + interiorId = 246785, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_6_biker_dlc_int_ware05_milo", + + Load = function() + EnableIpl(BikerDocumentForgery.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerDocumentForgery.Ipl.Interior.ipl, false) + end + } + }, + Style = { + basic = "interior_basic", + upgrade = "interior_upgrade", + + Set = function(style, refresh) + BikerDocumentForgery.Style.Clear(false) + + SetIplPropState(BikerDocumentForgery.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerDocumentForgery.interiorId, { + BikerDocumentForgery.Style.basic, + BikerDocumentForgery.Style.upgrade + }, false, refresh) + end + }, + Equipment = { + none = "", + basic = "equipment_basic", + upgrade = "equipment_upgrade", + + Set = function(eqpt, refresh) + BikerDocumentForgery.Equipment.Clear(false) + + if eqpt ~= "" then + SetIplPropState(BikerDocumentForgery.interiorId, eqpt, true, refresh) + else + if refresh then + RefreshInterior(BikerDocumentForgery.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerDocumentForgery.interiorId, { + BikerDocumentForgery.Equipment.basic, + BikerDocumentForgery.Equipment.upgrade + }, false, refresh) + end + }, + Security = { + basic = "security_low", + upgrade = "security_high", + + Set = function(security, refresh) + BikerDocumentForgery.Security.Clear(false) + + SetIplPropState(BikerDocumentForgery.interiorId, security, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerDocumentForgery.interiorId, { + BikerDocumentForgery.Security.basic, + BikerDocumentForgery.Security.upgrade + }, false, refresh) + end + }, + Details = { + Chairs = { + A = "chair01", + B = "chair02", + C = "chair03", + D = "chair04", + E = "chair05", + F = "chair06", + G = "chair07" + }, + production = "production", -- Papers, pencils + furnitures = "set_up", -- Printers, shredders + clutter = "clutter", -- Pizza boxes, cups + + Enable = function(details, state, refresh) + SetIplPropState(BikerDocumentForgery.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + BikerDocumentForgery.Ipl.Interior.Load() + BikerDocumentForgery.Style.Set(BikerDocumentForgery.Style.basic) + BikerDocumentForgery.Security.Set(BikerDocumentForgery.Security.basic) + BikerDocumentForgery.Equipment.Set(BikerDocumentForgery.Equipment.basic) + BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.production, false) + BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.furnitures, false) + BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.clutter, false) + BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.Chairs, true) + + RefreshInterior(BikerDocumentForgery.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/gang.lua b/resources/[housing]/bob74_ipl/dlc_bikers/gang.lua new file mode 100644 index 000000000..d0e924797 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/gang.lua @@ -0,0 +1,608 @@ +exports('GetBikerGangObject', function() + return BikerGang +end) + +AddEventHandler('onClientResourceStop', function(res) + if GetCurrentResourceName() ~= res then + return + end + + BikerGang.Clubhouse.ClearAll() +end) + +BikerGang = { + Name = { + Colors = { + black = 0, + gray = 1, + white = 2, + orange = 3, + red = 4, + green = 5, + yellow = 6, + blue = 7 + }, + Fonts = { + font1 = 0, + font2 = 1, + font3 = 2, + font4 = 3, + font5 = 4, + font6 = 5, + font7 = 6, + font8 = 7, + font9 = 8, + font10 = 9, + font11 = 10, + font12 = 11, + font13 = 12 + }, + name = "", + color = 0, + font = 0, + + Set = function(name, color, font) + BikerGang.Name.name = name + BikerGang.Name.color = color + BikerGang.Name.font = font + BikerGang.Clubhouse.ClubName.stage = 0 + end + }, + Emblem = { + Logo = { + eagle = "MPClubPreset1", + skull = "MPClubPreset2", + ace = "MPClubPreset3", + brassKnuckles = "MPClubPreset4", + UR = "MPClubPreset5", + fox = "MPClubPreset6", + city = "MPClubPreset7", + dices = "MPClubPreset8", + target = "MPClubPreset9" + }, + emblem = "MPClubPreset1", + rot = 90.0, -- Rotation for 0.0 to 360.0 + + Set = function(logo, rotation) + BikerGang.Emblem.emblem = logo + BikerGang.Emblem.rot = rotation + BikerGang.Clubhouse.Emblem.stage = 0 + end + }, + Clubhouse = { + interiorId1 = 246273, + interiorId2 = 246529, + + Members = { + President = { + needToLoad = false, + loaded = false, + renderId = -1, + textureDict = "", + pedheadshot = -1, + target = "memorial_wall_president", + prop = "bkr_prop_rt_memorial_president", + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Members.President.target, BikerGang.Clubhouse.Members.President.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.Members.President.needToLoad = state + end, + Set = function(ped) + BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.President, ped) + end, + Clear = function() + BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.President) + end + }, + VicePresident = { + needToLoad = false, + loaded = false, + renderId = -1, + textureDict = "", + pedheadshot = -1, + target = "memorial_wall_vice_president", + prop = "bkr_prop_rt_memorial_vice_pres", + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Members.VicePresident.target, BikerGang.Clubhouse.Members.VicePresident.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.Members.VicePresident.needToLoad = state + end, + Set = function(ped) + BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.VicePresident, ped) + end, + Clear = function() + BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.VicePresident) + end + }, + RoadCaptain = { + needToLoad = false, + loaded = false, + renderId = -1, + textureDict = "", + pedheadshot = -1, + target = "memorial_wall_active_01", + prop = "bkr_prop_rt_memorial_active_01", + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Members.RoadCaptain.target, BikerGang.Clubhouse.Members.RoadCaptain.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.Members.RoadCaptain.needToLoad = state + end, + Set = function(ped) + BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.RoadCaptain, ped) + end, + Clear = function() + BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.RoadCaptain) + end + }, + Enforcer = { + needToLoad = false, + loaded = false, + renderId = -1, + textureDict = "", + pedheadshot = -1, + target = "memorial_wall_active_02", + prop = "bkr_prop_rt_memorial_active_02", + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Members.Enforcer.target, BikerGang.Clubhouse.Members.Enforcer.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.Members.Enforcer.needToLoad = state + end, + Set = function(ped) + BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.Enforcer, ped) + end, + Clear = function() + BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.Enforcer) + end + }, + SergeantAtArms = { + needToLoad = false, + loaded = false, + renderId = -1, + textureDict = "", + pedheadshot = -1, + target = "memorial_wall_active_03", + prop = "bkr_prop_rt_memorial_active_03", + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Members.SergeantAtArms.target, BikerGang.Clubhouse.Members.SergeantAtArms.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.Members.SergeantAtArms.needToLoad = state + end, + Set = function(ped) + BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.SergeantAtArms, ped) + end, + Clear = function() + BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.SergeantAtArms) + end + }, + Set = function(member, ped) + member.Clear() + member.pedheadshot = GetPedheadshot(ped) + + if member.pedheadshot ~= -1 then + member.textureDict = GetPedheadshotTxdString(member.pedheadshot) + + local IsTextureDictLoaded = LoadStreamedTextureDict(member.textureDict) + + if not IsTextureDictLoaded then + print("ERROR: BikerClubhouseDrawMembers - Textures dictionnary \"" .. tostring(member.textureDict) .. "\" cannot be loaded.") + end + else + print("ERROR: BikerClubhouseDrawMembers - PedHeadShot not ready.") + end + end, + Clear = function(member) + if IsNamedRendertargetRegistered(member.target) then + ReleaseNamedRendertarget(GetHashKey(member.target)) + end + + if member.pedheadshot ~= -1 then + UnregisterPedheadshot(member.pedheadshot) + end + + if member.textureDict ~= "" then + SetStreamedTextureDictAsNoLongerNeeded(member.textureDict) + end + + member.renderId = -1 + member.textureDict = "" + member.pedheadshot = -1 + member.stage = 0 + end + }, + + ClubName = { + needToLoad = false, + loaded = false, + target = "clubname_blackboard_01a", + prop = "bkr_prop_clubhouse_blackboard_01a", + renderId = -1, + movieId = -1, + stage = 0, + + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.ClubName.target, BikerGang.Clubhouse.ClubName.prop) + end, + Enable = function(state) + BikerGang.Clubhouse.ClubName.needToLoad = state + end, + Clear = function() + if IsNamedRendertargetRegistered(BikerGang.Clubhouse.ClubName.target) then + ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.ClubName.target)) + end + + if HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.ClubName.movieId) then + SetScaleformMovieAsNoLongerNeeded(BikerGang.Clubhouse.ClubName.movieId) + end + + BikerGang.Clubhouse.ClubName.renderId = -1 + BikerGang.Clubhouse.ClubName.movieId = -1 + BikerGang.Clubhouse.ClubName.stage = 0 + end + }, + + Emblem = { + needToLoad = false, + loaded = false, + target = "clubhouse_table", + prop = "bkr_prop_rt_clubhouse_table", + renderId = -1, + movieId = -1, + stage = 0, + + Enable = function(state) + BikerGang.Clubhouse.Emblem.needToLoad = state + end, + Init = function() + DrawEmptyRect(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop) + end, + Clear = function() + if IsNamedRendertargetRegistered(BikerGang.Clubhouse.Emblem.target) then + ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.Emblem.target)) + end + + BikerGang.Clubhouse.Emblem.renderId = -1 + BikerGang.Clubhouse.Emblem.stage = 0 + end + }, + + MissionsWall = { + Missions = { + Titles = { + byThePoundUpper = "BDEAL_DEALN", + byThePound = "DEAL_DEALN", + prisonerOfWarUpper = "BIGM_RESCN", + prisonerOfWar = "CELL_BIKER_RESC", + gunsForHire = "LR_INTRO_ST", + weaponOfChoice = "CELL_BIKER_CK", + gunrunningUpper = "GB_BIGUNLOAD_U", + gunrunning = "GB_BIGUNLOAD_T", + nineTenthsOfTheLawUpper = "SB_INTRO_TITLE", + nineTenthsOfTheLaw = "SB_MENU_TITLE", + jailbreakUpper = "FP_INTRO_TITLE", + jailbreak = "FP_MENU_TITLE", + crackedUpper = "SC_INTRO_TITLE", + cracked = "SC_MENU_TITLE", + fragileGoodsUpper = "DV_SH_BIG", + fragileGoods = "DV_SH_TITLE", + torchedUpper = "BA_SH_BIG", + torched = "BA_SH_TITLE", + outriderUpper = "SHU_SH_BIG", + outrider = "SHU_SH_TITLE" + }, + Descriptions = { + byThePound = "DEAL_DEALND", + prisonerOfWar = "CELL_BIKER_RESD", + gunsForHire = "GFH_MENU_DESC", + weaponOfChoice = "CELL_BIKER_CKD", + gunrunning = "GB_BIGUNLOAD_D", + nineTenthsOfTheLaw = "SB_MENU_DESC", + jailbreak = "FP_MENU_DESC", + cracked = "SC_MENU_DESC", + fragileGoods = "DV_MENU_DESC", + torched = "BA_MENU_DESC", + outrider = "SHU_MENU_DESC" + }, + Pictures = { + byThePound = "CHM_IMG0", -- Pickup car parked + prisonerOfWar = "CHM_IMG8", -- Police with man down + gunsForHire = "CHM_IMG4", -- Limo + weaponOfChoice = "CHM_IMG10", -- Prisoner being beaten + gunrunning = "CHM_IMG3", -- Shipment + nineTenthsOfTheLaw = "CHM_IMG6", -- Wheeling + jailbreak = "CHM_IMG5", -- Prison bus + cracked = "CHM_IMG1", -- Safe + fragileGoods = "CHM_IMG2", -- Lost Van + torched = "CHM_IMG9", -- Explosive crate + outrider = "CHM_IMG7" -- Sport ride + }, + }, + needToLoad = false, + loaded = false, + target = "clubhouse_Plan_01a", + prop = "bkr_prop_rt_clubhouse_plan_01a", + renderId = -1, + movieId = -1, + stage = 0, + Position = { + none = -1, + left = 0, + middle = 1, + right = 2 + }, + + Init = function() + if not DrawEmptyRect(BikerGang.Clubhouse.MissionsWall.target, BikerGang.Clubhouse.MissionsWall.prop) then + print("ERROR: BikerGang.Clubhouse.MissionsWall.Init() - DrawEmptyRect - Timeout") + end + end, + Enable = function(state) + BikerGang.Clubhouse.MissionsWall.needToLoad = state + end, + SelectMission = function(position) + if BikerGang.Clubhouse.MissionsWall.movieId ~= -1 then + BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "SET_SELECTED_MISSION") + ScaleformMovieMethodAddParamInt(position) -- Mission index 0 to 2 (-1 = no mission) + EndScaleformMovieMethod() + end + end, + SetMission = function(position, title, desc, textDict, x, y) + if BikerGang.Clubhouse.MissionsWall.needToLoad then + if not HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then + BikerGang.Clubhouse.MissionsWall.movieId = LoadScaleform("BIKER_MISSION_WALL") + end + + if BikerGang.Clubhouse.MissionsWall.movieId ~= -1 then + if position > -1 then + BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "SET_MISSION") + ScaleformMovieMethodAddParamInt(position) -- Mission index 0 to 2 (-1 = no mission) + ScaleformMovieMethodAddParamTextureNameString(title) + ScaleformMovieMethodAddParamTextureNameString(desc) + ScaleformMovieMethodAddParamPlayerNameString(textDict) + ScaleformMovieMethodAddParamFloat(x) -- Mission 0: world coordinates X + ScaleformMovieMethodAddParamFloat(y) -- Mission 0: world coordinates Y + EndScaleformMovieMethod() + else + -- Remove all missions + for key, value in pairs(BikerGang.Clubhouse.MissionsWall.Position) do + BikerGang.Clubhouse.MissionsWall.RemoveMission(value) + end + + BikerGang.Clubhouse.MissionsWall.SelectMission(BikerGang.Clubhouse.MissionsWall.Position.none) + end + end + end + end, + RemoveMission = function(position) + BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "HIDE_MISSION") + ScaleformMovieMethodAddParamInt(position) + EndScaleformMovieMethod() + end, + Clear = function() + -- Removing missions + BikerGang.Clubhouse.MissionsWall.SelectMission(BikerGang.Clubhouse.MissionsWall.Position.none) + BikerGang.Clubhouse.MissionsWall.SetMission(BikerGang.Clubhouse.MissionsWall.Position.none) + + -- Releasing handles + if IsNamedRendertargetRegistered(BikerGang.Clubhouse.MissionsWall.prop) then + ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.MissionsWall.prop)) + end + + if HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then + SetScaleformMovieAsNoLongerNeeded(BikerGang.Clubhouse.MissionsWall.movieId) + end + + -- Resetting + BikerGang.Clubhouse.MissionsWall.renderId = -1 + BikerGang.Clubhouse.MissionsWall.movieId = -1 + BikerGang.Clubhouse.MissionsWall.stage = 0 + end + }, + + ClearAll = function() + BikerGang.Clubhouse.ClubName.Clear() + BikerGang.Clubhouse.ClubName.loaded = false + + BikerGang.Clubhouse.Emblem.Clear() + BikerGang.Clubhouse.Emblem.loaded = false + + BikerGang.Clubhouse.MissionsWall.Clear() + BikerGang.Clubhouse.MissionsWall.loaded = false + + for key, member in pairs(BikerGang.Clubhouse.Members) do + if type(member) == "table" then + member.Clear() + member.loaded = false + end + end + end + } +} + +CreateThread(function() + -- Removing the black texture + BikerGang.Clubhouse.Members.President.Init() + BikerGang.Clubhouse.Members.VicePresident.Init() + BikerGang.Clubhouse.Members.RoadCaptain.Init() + BikerGang.Clubhouse.Members.Enforcer.Init() + BikerGang.Clubhouse.Members.SergeantAtArms.Init() + + BikerGang.Clubhouse.ClubName.Init() + BikerGang.Clubhouse.Emblem.Init() + BikerGang.Clubhouse.MissionsWall.Init() + + while true do + if BikerGang.Clubhouse.ClubName.needToLoad or BikerGang.Clubhouse.Emblem.needToLoad or BikerGang.Clubhouse.MissionsWall.needToLoad or BikerGang.Clubhouse.Members.President.needToLoad or BikerGang.Clubhouse.Members.VicePresident.needToLoad or BikerGang.Clubhouse.Members.RoadCaptain.needToLoad or BikerGang.Clubhouse.Members.Enforcer.needToLoad or BikerGang.Clubhouse.Members.SergeantAtArms.needToLoad then + -- If we are inside a clubhouse, then we load + if Global.Biker.isInsideClubhouse1 or Global.Biker.isInsideClubhouse2 then + -- Club name + if BikerGang.Clubhouse.ClubName.needToLoad then + DrawClubName(BikerGang.Name.name, BikerGang.Name.color, BikerGang.Name.font) + + BikerGang.Clubhouse.ClubName.loaded = true + elseif BikerGang.Clubhouse.ClubName.loaded then + BikerGang.Clubhouse.ClubName.Clear() + BikerGang.Clubhouse.ClubName.loaded = false + end + + -- Emblem + if BikerGang.Clubhouse.Emblem.needToLoad then + DrawEmblem(BikerGang.Emblem.emblem, BikerGang.Emblem.rot) + + BikerGang.Clubhouse.Emblem.loaded = true + elseif BikerGang.Clubhouse.Emblem.loaded then + BikerGang.Clubhouse.Emblem.Clear() + BikerGang.Clubhouse.Emblem.loaded = false + end + + -- Missions wall + if BikerGang.Clubhouse.MissionsWall.needToLoad then + DrawMissions() + + BikerGang.Clubhouse.MissionsWall.loaded = true + elseif BikerGang.Clubhouse.MissionsWall.loaded then + BikerGang.Clubhouse.MissionsWall.Clear() + BikerGang.Clubhouse.MissionsWall.loaded = false + end + + -- Members: President + for key, member in pairs(BikerGang.Clubhouse.Members) do + if type(member) == "table" then + if member.needToLoad then + DrawMember(member) + member.loaded = true + elseif member.loaded then + member.Clear() + member.loaded = false + end + end + end + + Wait(0) -- We need to call all this every frame + else + -- Not in a clubhouse + Wait(1000) + end + else + -- No load needed + Wait(1000) + end + end +end) + +function DrawClubName(name, color, font) + if BikerGang.Clubhouse.ClubName.stage == 0 then + if BikerGang.Clubhouse.ClubName.renderId == -1 then + BikerGang.Clubhouse.ClubName.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.ClubName.target, BikerGang.Clubhouse.ClubName.prop) + end + + if BikerGang.Clubhouse.ClubName.movieId == -1 then + BikerGang.Clubhouse.ClubName.movieId = RequestScaleformMovie("CLUBHOUSE_NAME") + end + + BikerGang.Clubhouse.ClubName.stage = 1 + elseif BikerGang.Clubhouse.ClubName.stage == 1 then + if HasScaleformMovieLoaded(BikerGang.Clubhouse.ClubName.movieId) then + local parameters = { + p0 = {type = "string", value = name}, + p1 = {type = "int", value = color}, + p2 = {type = "int", value = font} + } + + SetupScaleform(BikerGang.Clubhouse.ClubName.movieId, "SET_CLUBHOUSE_NAME", parameters) + + BikerGang.Clubhouse.ClubName.stage = 2 + else + BikerGang.Clubhouse.ClubName.movieId = RequestScaleformMovie("CLUBHOUSE_NAME") + end + elseif BikerGang.Clubhouse.ClubName.stage == 2 then + SetTextRenderId(BikerGang.Clubhouse.ClubName.renderId) + SetScriptGfxDrawOrder(4) + SetScriptGfxDrawBehindPausemenu(true) + SetScriptGfxAlign(73, 73) + DrawScaleformMovie(BikerGang.Clubhouse.ClubName.movieId, 0.0975, 0.105, 0.235, 0.35, 255, 255, 255, 255, 0) + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + ResetScriptGfxAlign() + end +end + +function DrawEmblem(texturesDict, rotation) + if BikerGang.Clubhouse.Emblem.stage == 0 then + if BikerGang.Clubhouse.Emblem.renderId == -1 then + BikerGang.Clubhouse.Emblem.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop) + end + + local IsTextureDictLoaded = LoadStreamedTextureDict(texturesDict) + + if not IsTextureDictLoaded then + print("ERROR: DrawEmblem - Textures dictionnary cannot be loaded.") + end + + BikerGang.Clubhouse.Emblem.stage = 1 + elseif BikerGang.Clubhouse.Emblem.stage == 1 then + BikerGang.Clubhouse.Emblem.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop) + BikerGang.Clubhouse.Emblem.stage = 2 + elseif BikerGang.Clubhouse.Emblem.stage == 2 then + SetTextRenderId(BikerGang.Clubhouse.Emblem.renderId) + SetScriptGfxAlign(73, 73) + SetScriptGfxDrawOrder(4) + SetScriptGfxDrawBehindPausemenu(true) + DrawInteractiveSprite(texturesDict, texturesDict, 0.5, 0.5, 1.0, 1.0, rotation, 255, 255, 255, 255); + ResetScriptGfxAlign() + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + end +end + +function DrawMissions() + if BikerGang.Clubhouse.MissionsWall.stage == 0 then + if BikerGang.Clubhouse.MissionsWall.renderId == -1 then + BikerGang.Clubhouse.MissionsWall.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.MissionsWall.target, BikerGang.Clubhouse.MissionsWall.prop) + end + + BikerGang.Clubhouse.MissionsWall.stage = 1 + elseif BikerGang.Clubhouse.MissionsWall.stage == 1 then + if HasScaleformMovieLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then + BikerGang.Clubhouse.MissionsWall.stage = 2 + else + BikerGang.Clubhouse.MissionsWall.movieId = RequestScaleformMovie("BIKER_MISSION_WALL") + end + elseif BikerGang.Clubhouse.MissionsWall.stage == 2 then + SetTextRenderId(BikerGang.Clubhouse.MissionsWall.renderId) + SetScriptGfxDrawOrder(4) + SetScriptGfxDrawBehindPausemenu(false) + DrawScaleformMovie(BikerGang.Clubhouse.MissionsWall.movieId, 0.5, 0.5, 1.0, 1.0, 255, 255, 255, 255, 0) + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + SetScaleformFitRendertarget(BikerGang.Clubhouse.MissionsWall.movieId, true) + end +end + +function DrawMember(member) + if member.stage == 0 then + member.stage = 1 + elseif member.stage == 1 then + member.renderId = CreateNamedRenderTargetForModel(member.target, member.prop) + member.stage = 2 + elseif member.stage == 2 then + if HasStreamedTextureDictLoaded(member.textureDict) then + SetTextRenderId(member.renderId) + SetScriptGfxAlign(73, 73) + DrawInteractiveSprite(member.textureDict, member.textureDict, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) + ResetScriptGfxAlign() + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + end + end +end diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/meth.lua b/resources/[housing]/bob74_ipl/dlc_bikers/meth.lua new file mode 100644 index 000000000..7f88a9a1f --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/meth.lua @@ -0,0 +1,87 @@ +-- Meth lab: 1009.5, -3196.6, -38.99682 +exports('GetBikerMethLabObject', function() + return BikerMethLab +end) + +BikerMethLab = { + interiorId = 247041, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_2_biker_dlc_int_ware01_milo", + + Load = function() + EnableIpl(BikerMethLab.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerMethLab.Ipl.Interior.ipl, false) + end + } + }, + Style = { + none = "", + empty = "meth_lab_empty", + basic = { + "meth_lab_basic", + "meth_lab_setup" + }, + upgrade = { + "meth_lab_upgrade", + "meth_lab_setup" + }, + + Set = function(style, refresh) + BikerMethLab.Style.Clear(false) + + if style ~= "" then + SetIplPropState(BikerMethLab.interiorId, style, true, refresh) + else + if refresh then + RefreshInterior(BikerMethLab.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerMethLab.interiorId, { + BikerMethLab.Style.empty, + BikerMethLab.Style.basic, + BikerMethLab.Style.upgrade + }, false, refresh) + end + }, + Security = { + none = "", + upgrade = "meth_lab_security_high", + + Set = function(security, refresh) + BikerMethLab.Security.Clear(false) + + if security ~= "" then + SetIplPropState(BikerMethLab.interiorId, security, true, refresh) + else + if refresh then + RefreshInterior(BikerMethLab.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(BikerMethLab.interiorId, BikerMethLab.Security.upgrade, false, refresh) + end + }, + Details = { + production = "meth_lab_production", -- Products + + Enable = function(details, state, refresh) + SetIplPropState(BikerMethLab.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + BikerMethLab.Ipl.Interior.Load() + BikerMethLab.Style.Set(BikerMethLab.Style.empty) + BikerMethLab.Security.Set(BikerMethLab.Security.none) + BikerMethLab.Details.Enable(BikerMethLab.Details.production, false) + + RefreshInterior(BikerMethLab.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bikers/weed.lua b/resources/[housing]/bob74_ipl/dlc_bikers/weed.lua new file mode 100644 index 000000000..798388006 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bikers/weed.lua @@ -0,0 +1,549 @@ +-- Weed farm: 1051.491, -3196.536, -39.14842 +exports('GetBikerWeedFarmObject', function() + return BikerWeedFarm +end) + +BikerWeedFarm = { + interiorId = 247297, + + Ipl = { + Interior = { + ipl = "bkr_biker_interior_placement_interior_3_biker_dlc_int_ware02_milo", + + Load = function() + EnableIpl(BikerWeedFarm.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(BikerWeedFarm.Ipl.Interior.ipl, false) + end + }, + }, + Style = { + basic = "weed_standard_equip", + upgrade = "weed_upgrade_equip", + + Set = function(style, refresh) + BikerWeedFarm.Style.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Style.basic, + BikerWeedFarm.Style.upgrade + }, false, refresh) + end + }, + Security = { + basic = "weed_low_security", + upgrade = "weed_security_upgrade", + + Set = function(security, refresh) + BikerWeedFarm.Security.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, security, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Security.basic, + BikerWeedFarm.Security.upgrade + }, false, refresh) + end + }, + Plant1 = { + Stage = { + small = "weed_growtha_stage1", + medium = "weed_growtha_stage2", + full = "weed_growtha_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant1.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant1.Stage.small, + BikerWeedFarm.Plant1.Stage.medium, + BikerWeedFarm.Plant1.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growtha_stage23_standard", + upgrade = "light_growtha_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant1.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant1.Light.basic, + BikerWeedFarm.Plant1.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosea", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant1.Stage.Set(stage, false) + BikerWeedFarm.Plant1.Light.Set(upgrade, false) + BikerWeedFarm.Plant1.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant1.Stage.Clear() + BikerWeedFarm.Plant1.Light.Clear() + BikerWeedFarm.Plant1.Hose.Enable(false, true) + end + }, + Plant2 = { + Stage = { + small = "weed_growthb_stage1", + medium = "weed_growthb_stage2", + full = "weed_growthb_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant2.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant2.Stage.small, + BikerWeedFarm.Plant2.Stage.medium, + BikerWeedFarm.Plant2.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthb_stage23_standard", + upgrade = "light_growthb_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant2.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant2.Light.basic, + BikerWeedFarm.Plant2.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseb", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant2.Stage.Set(stage, false) + BikerWeedFarm.Plant2.Light.Set(upgrade, false) + BikerWeedFarm.Plant2.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant2.Stage.Clear() + BikerWeedFarm.Plant2.Light.Clear() + BikerWeedFarm.Plant2.Hose.Enable(false, true) + end + }, + Plant3 = { + Stage = { + small = "weed_growthc_stage1", + medium = "weed_growthc_stage2", + full = "weed_growthc_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant3.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant3.Stage.small, + BikerWeedFarm.Plant3.Stage.medium, + BikerWeedFarm.Plant3.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthc_stage23_standard", + upgrade = "light_growthc_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant3.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant3.Light.basic, + BikerWeedFarm.Plant3.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosec", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant3.Stage.Set(stage, false) + BikerWeedFarm.Plant3.Light.Set(upgrade, false) + BikerWeedFarm.Plant3.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant3.Stage.Clear() + BikerWeedFarm.Plant3.Light.Clear() + BikerWeedFarm.Plant3.Hose.Enable(false, true) + end + }, + Plant4 = { + Stage = { + small = "weed_growthd_stage1", + medium = "weed_growthd_stage2", + full = "weed_growthd_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant4.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant4.Stage.small, + BikerWeedFarm.Plant4.Stage.medium, + BikerWeedFarm.Plant4.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthd_stage23_standard", + upgrade = "light_growthd_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant4.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant4.Light.basic, + BikerWeedFarm.Plant4.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosed", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant4.Stage.Set(stage, false) + BikerWeedFarm.Plant4.Light.Set(upgrade, false) + BikerWeedFarm.Plant4.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant4.Stage.Clear() + BikerWeedFarm.Plant4.Light.Clear() + BikerWeedFarm.Plant4.Hose.Enable(false, true) + end + }, + Plant5 = { + Stage = { + small = "weed_growthe_stage1", + medium = "weed_growthe_stage2", + full = "weed_growthe_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant5.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant5.Stage.small, + BikerWeedFarm.Plant5.Stage.medium, + BikerWeedFarm.Plant5.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthe_stage23_standard", + upgrade = "light_growthe_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant5.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant5.Light.basic, + BikerWeedFarm.Plant5.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosee", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant5.Stage.Set(stage, false) + BikerWeedFarm.Plant5.Light.Set(upgrade, false) + BikerWeedFarm.Plant5.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant5.Stage.Clear() + BikerWeedFarm.Plant5.Light.Clear() + BikerWeedFarm.Plant5.Hose.Enable(false, true) + end + }, + Plant6 = { + Stage = { + small = "weed_growthf_stage1", + medium = "weed_growthf_stage2", + full = "weed_growthf_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant6.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant6.Stage.small, + BikerWeedFarm.Plant6.Stage.medium, + BikerWeedFarm.Plant6.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthf_stage23_standard", + upgrade = "light_growthf_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant6.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant6.Light.basic, + BikerWeedFarm.Plant6.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosef", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant6.Stage.Set(stage, false) + BikerWeedFarm.Plant6.Light.Set(upgrade, false) + BikerWeedFarm.Plant6.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant6.Stage.Clear() + BikerWeedFarm.Plant6.Light.Clear() + BikerWeedFarm.Plant6.Hose.Enable(false, true) + end + }, + Plant7 = { + Stage = { + small = "weed_growthg_stage1", + medium = "weed_growthg_stage2", + full = "weed_growthg_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant7.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant7.Stage.small, + BikerWeedFarm.Plant7.Stage.medium, + BikerWeedFarm.Plant7.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthg_stage23_standard", + upgrade = "light_growthg_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant7.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant7.Light.basic, + BikerWeedFarm.Plant7.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseg", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant7.Stage.Set(stage, false) + BikerWeedFarm.Plant7.Light.Set(upgrade, false) + BikerWeedFarm.Plant7.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant7.Stage.Clear() + BikerWeedFarm.Plant7.Light.Clear() + BikerWeedFarm.Plant7.Hose.Enable(false, true) + end + }, + Plant8 = { + Stage = { + small = "weed_growthh_stage1", + medium = "weed_growthh_stage2", + full = "weed_growthh_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant8.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant8.Stage.small, + BikerWeedFarm.Plant8.Stage.medium, + BikerWeedFarm.Plant8.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthh_stage23_standard", + upgrade = "light_growthh_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant8.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant8.Light.basic, + BikerWeedFarm.Plant8.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseh", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant8.Stage.Set(stage, false) + BikerWeedFarm.Plant8.Light.Set(upgrade, false) + BikerWeedFarm.Plant8.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant8.Stage.Clear() + BikerWeedFarm.Plant8.Light.Clear() + BikerWeedFarm.Plant8.Hose.Enable(false, true) + end + }, + Plant9 = { + Stage = { + small = "weed_growthi_stage1", + medium = "weed_growthi_stage2", + full = "weed_growthi_stage3", + + Set = function(stage, refresh) + BikerWeedFarm.Plant9.Stage.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant9.Stage.small, + BikerWeedFarm.Plant9.Stage.medium, + BikerWeedFarm.Plant9.Stage.full + }, false, refresh) + end + }, + Light = { + basic = "light_growthi_stage23_standard", + upgrade = "light_growthi_stage23_upgrade", + + Set = function(light, refresh) + BikerWeedFarm.Plant9.Light.Clear(false) + + SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(BikerWeedFarm.interiorId, { + BikerWeedFarm.Plant9.Light.basic, + BikerWeedFarm.Plant9.Light.upgrade + }, false, refresh) + end + }, + Hose = { + Enable = function(state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, "weed_hosei", state, refresh) + end + }, + Set = function(stage, upgrade, refresh) + BikerWeedFarm.Plant9.Stage.Set(stage, false) + BikerWeedFarm.Plant9.Light.Set(upgrade, false) + BikerWeedFarm.Plant9.Hose.Enable(true, true) + end, + Clear = function(refresh) + BikerWeedFarm.Plant9.Stage.Clear() + BikerWeedFarm.Plant9.Light.Clear() + BikerWeedFarm.Plant9.Hose.Enable(false, true) + end + }, + Details = { + production = "weed_production", -- Weed on the tables + fans = "weed_set_up", -- Fans + mold buckets + drying = "weed_drying", -- Drying weed hooked to the ceiling + chairs = "weed_chairs", -- Chairs at the tables + + Enable = function(details, state, refresh) + SetIplPropState(BikerWeedFarm.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + BikerWeedFarm.Ipl.Interior.Load() + BikerWeedFarm.Style.Set(BikerWeedFarm.Style.upgrade) + BikerWeedFarm.Security.Set(BikerWeedFarm.Security.basic) + BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.drying, false) + BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.chairs, false) + BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.production, false) + + BikerWeedFarm.Details.Enable({ + BikerWeedFarm.Details.production, + BikerWeedFarm.Details.chairs, + BikerWeedFarm.Details.drying + }, true) + + BikerWeedFarm.Plant1.Set(BikerWeedFarm.Plant1.Stage.medium, BikerWeedFarm.Plant1.Light.basic) + BikerWeedFarm.Plant2.Set(BikerWeedFarm.Plant2.Stage.full, BikerWeedFarm.Plant2.Light.basic) + BikerWeedFarm.Plant3.Set(BikerWeedFarm.Plant3.Stage.medium, BikerWeedFarm.Plant3.Light.basic) + BikerWeedFarm.Plant4.Set(BikerWeedFarm.Plant4.Stage.full, BikerWeedFarm.Plant4.Light.basic) + BikerWeedFarm.Plant5.Set(BikerWeedFarm.Plant5.Stage.medium, BikerWeedFarm.Plant5.Light.basic) + BikerWeedFarm.Plant6.Set(BikerWeedFarm.Plant6.Stage.full, BikerWeedFarm.Plant6.Light.basic) + BikerWeedFarm.Plant7.Set(BikerWeedFarm.Plant7.Stage.medium, BikerWeedFarm.Plant7.Light.basic) + BikerWeedFarm.Plant8.Set(BikerWeedFarm.Plant8.Stage.full, BikerWeedFarm.Plant8.Light.basic) + BikerWeedFarm.Plant9.Set(BikerWeedFarm.Plant9.Stage.full, BikerWeedFarm.Plant9.Light.basic) + + RefreshInterior(BikerWeedFarm.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_bounties/base.lua b/resources/[housing]/bob74_ipl/dlc_bounties/base.lua new file mode 100644 index 000000000..b14658017 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bounties/base.lua @@ -0,0 +1,4 @@ +CreateThread(function() + RequestIpl("m24_1_legacyfixes") + RequestIpl("m24_1_pizzasigns") +end) \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_bounties/carrier.lua b/resources/[housing]/bob74_ipl/dlc_bounties/carrier.lua new file mode 100644 index 000000000..953ea87f3 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bounties/carrier.lua @@ -0,0 +1,25 @@ +-- Aircraft carrier: -3208.03, 3954.54, 14.0 +exports('GetSummerCarrierObject', function() + return SummerCarrier +end) + +SummerCarrier = { + ipl = { + "m24_1_carrier", + "m24_1_carrier_int1", + "m24_1_carrier_int2", + "m24_1_carrier_int3", + "m24_1_carrier_int4", + "m24_1_carrier_int5", + "m24_1_carrier_int6", + "m24_1_carrier_ladders" + }, + + Enable = function(state) + EnableIpl(SummerCarrier.ipl, state) + end, + + LoadDefault = function() + SummerCarrier.Enable(true) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_bounties/office.lua b/resources/[housing]/bob74_ipl/dlc_bounties/office.lua new file mode 100644 index 000000000..d22ce8d63 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_bounties/office.lua @@ -0,0 +1,114 @@ +-- Bail office: 565.886, -2688.761, -50.0 +exports('GetSummerOfficeObject', function() + return SummerOffice +end) + +SummerOffice = { + interiorId = 295425, + + Ipl = { + Exterior = { + ipl = { + "m24_1_bailoffice_davis", + "m24_1_bailoffice_delperro", + "m24_1_bailoffice_missionrow", + "m24_1_bailoffice_paletobay", + "m24_1_bailoffice_vinewood" + }, + + Load = function() + EnableIpl(SummerOffice.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(SummerOffice.Ipl.Exterior.ipl, false) + end + } + }, + + Style = { + vintage = "set_style_01", + patterns = "set_style_02", + teak = "set_style_03", + + Set = function(style, refresh) + SummerOffice.Style.Clear(false) + + SetIplPropState(SummerOffice.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(SummerOffice.interiorId, { + SummerOffice.Style.vintage, + SummerOffice.Style.patterns, + SummerOffice.Style.teak + }, false, refresh) + end + }, + + Desk = { + files = "set_no_staff", + computers = "set_staff_upgrade", + + Set = function(style, refresh) + SummerOffice.Desk.Clear(false) + + SetIplPropState(SummerOffice.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(SummerOffice.interiorId, { + SummerOffice.Desk.files, + SummerOffice.Desk.computers + }, false, refresh) + end + }, + + Gunsafe = { + cabinet = "set_gunsafe_off", + gunsafe = "set_gunsafe_on", + + Set = function(style, refresh) + SummerOffice.Gunsafe.Clear(false) + + SetIplPropState(SummerOffice.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(SummerOffice.interiorId, { + SummerOffice.Gunsafe.cabinet, + SummerOffice.Gunsafe.gunsafe + }, false, refresh) + end + }, + + Trophy = { + plaque = "set_trophy_10x", + badge = "set_trophy_24x", + handcuffs = "set_trophy_100x", + + Enable = function(trophy, state, refresh) + SetIplPropState(SummerOffice.interiorId, trophy, state, refresh) + end + }, + + Plant = { + plant = "set_new_plant", + + Enable = function(state, refresh) + SetIplPropState(SummerOffice.interiorId, SummerOffice.Plant.plant, state, refresh) + end + }, + + LoadDefault = function() + SummerOffice.Ipl.Exterior.Load() + + SummerOffice.Style.Set(SummerOffice.Style.teak, false) + SummerOffice.Desk.Set(SummerOffice.Desk.files, false) + SummerOffice.Gunsafe.Set(SummerOffice.Gunsafe.cabinet, false) + + SummerOffice.Trophy.Enable(SummerOffice.Trophy.plaque, true, false) + SummerOffice.Trophy.Enable(SummerOffice.Trophy.badge, true, false) + SummerOffice.Trophy.Enable(SummerOffice.Trophy.handcuffs, true, false) + + SummerOffice.Plant.Enable(true, false) + + RefreshInterior(SummerOffice.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_casino/arcade.lua b/resources/[housing]/bob74_ipl/dlc_casino/arcade.lua new file mode 100644 index 000000000..3695b0ce0 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_casino/arcade.lua @@ -0,0 +1,173 @@ +-- Arcade: 2732.000, -380.000, -50.000 +exports('GetDiamondArcadeObject', function() + return DiamondArcade +end) + +DiamondArcade = { + interiorId = 278273, + + Style = { + derelict = { + "entity_set_arcade_set_derelict", + "entity_set_arcade_set_derelict_carpet", + "entity_set_arcade_set_derelict_clean_up" + }, + normal = "entity_set_constant_geometry", + + Set = function(style, refresh) + DiamondArcade.Style.Clear(false) + + SetIplPropState(DiamondArcade.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcade.interiorId, { + DiamondArcade.Style.derelict, + DiamondArcade.Style.normal + }, false, refresh) + end + }, + + Ceiling = { + flat = "entity_set_arcade_set_ceiling_flat", + mirror = "entity_set_arcade_set_ceiling_mirror", + beams = "entity_set_arcade_set_ceiling_beams", + + Set = function(ceiling, refresh) + DiamondArcade.Ceiling.Clear(false) + + SetIplPropState(DiamondArcade.interiorId, ceiling, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcade.interiorId, { + DiamondArcade.Ceiling.flat, + DiamondArcade.Ceiling.mirror, + DiamondArcade.Ceiling.beams + }, false, refresh) + end + }, + + Mural = { + edgy = "entity_set_mural_option_01", + stripes = "entity_set_mural_option_02", + kawaii = "entity_set_mural_option_03", + thought = "entity_set_mural_option_04", + forever = "entity_set_mural_option_05", + wireframed = "entity_set_mural_option_06", + colors = "entity_set_mural_option_07", + realm = "entity_set_mural_option_08", + + Set = function(mural, refresh) + DiamondArcade.Mural.Clear(false) + + SetIplPropState(DiamondArcade.interiorId, mural, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcade.interiorId, { + DiamondArcade.Mural.edgy, + DiamondArcade.Mural.stripes, + DiamondArcade.Mural.kawaii, + DiamondArcade.Mural.thought, + DiamondArcade.Mural.forever, + DiamondArcade.Mural.wireframed, + DiamondArcade.Mural.colors, + DiamondArcade.Mural.realm + }, false, refresh) + end + }, + + Floor = { + proper = "entity_set_floor_option_01", + scale = "entity_set_floor_option_02", + rainbow = "entity_set_floor_option_03", + lab = "entity_set_floor_option_04", + intergalactic = "entity_set_floor_option_05", + stars = "entity_set_floor_option_06", + playthings = "entity_set_floor_option_07", + thunderclap = "entity_set_floor_option_08", + + Set = function(floor, refresh) + DiamondArcade.Floor.Clear(false) + + SetIplPropState(DiamondArcade.interiorId, floor, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcade.interiorId, { + DiamondArcade.Floor.proper, + DiamondArcade.Floor.scale, + DiamondArcade.Floor.rainbow, + DiamondArcade.Floor.lab, + DiamondArcade.Floor.intergalactic, + DiamondArcade.Floor.stars, + DiamondArcade.Floor.playthings, + DiamondArcade.Floor.thunderclap + }, false, refresh) + end + }, + + Trophy = { + claw = "entity_set_arcade_set_trophy_claw", + love = "entity_set_arcade_set_trophy_love", + teller = "entity_set_arcade_set_trophy_teller", + gunner = "entity_set_arcade_set_trophy_gunner", + king = "entity_set_arcade_set_trophy_king", + racer = "entity_set_arcade_set_trophy_racer", + patriot = "entity_set_arcade_set_trophy_patriot", + monkey = "entity_set_arcade_set_trophy_monkey", + brawler = "entity_set_arcade_set_trophy_brawler", + retro = "entity_set_arcade_set_trophy_retro", + cabs = "entity_set_arcade_set_trophy_cabs", + strife = "entity_set_arcade_set_trophy_strife", + + Enable = function(trophy, state, refresh) + SetIplPropState(DiamondArcade.interiorId, trophy, state, refresh) + end + }, + + Plushie = { + purple = "entity_set_plushie_01", + green = "entity_set_plushie_02", + blue = "entity_set_plushie_03", + orange = "entity_set_plushie_04", + yellow = "entity_set_plushie_05", + red = "entity_set_plushie_06", + princess = "entity_set_plushie_07", + wasabi = "entity_set_plushie_08", + master = "entity_set_plushie_09", + + Enable = function(plushie, state, refresh) + SetIplPropState(DiamondArcade.interiorId, plushie, state, refresh) + end + }, + + Details = { + tv = "entity_set_big_screen", + screens = "entity_set_screens", + + Enable = function(details, state, refresh) + SetIplPropState(DiamondArcade.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + DiamondArcade.Style.Set(DiamondArcade.Style.normal, false) + DiamondArcade.Ceiling.Set(DiamondArcade.Ceiling.flat, false) + DiamondArcade.Mural.Set(DiamondArcade.Mural.forever, false); + DiamondArcade.Floor.Set(DiamondArcade.Floor.proper, false) + + DiamondArcade.Trophy.Enable(DiamondArcade.Trophy.claw, true, false) + DiamondArcade.Trophy.Enable(DiamondArcade.Trophy.teller, true, false) + DiamondArcade.Trophy.Enable(DiamondArcade.Trophy.gunner, true, false) + DiamondArcade.Trophy.Enable(DiamondArcade.Trophy.brawler, true, false) + DiamondArcade.Trophy.Enable(DiamondArcade.Trophy.cabs, true, false) + + DiamondArcade.Plushie.Enable(DiamondArcade.Plushie.purple, true, false) + DiamondArcade.Plushie.Enable(DiamondArcade.Plushie.princess, true, false) + DiamondArcade.Plushie.Enable(DiamondArcade.Plushie.wasabi, true, false) + DiamondArcade.Plushie.Enable(DiamondArcade.Plushie.master, true, false) + + DiamondArcade.Details.Enable(DiamondArcade.Details.tv, true, false) + DiamondArcade.Details.Enable(DiamondArcade.Details.screens, true, false) + + RefreshInterior(DiamondArcade.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_casino/arcade_basement.lua b/resources/[housing]/bob74_ipl/dlc_casino/arcade_basement.lua new file mode 100644 index 000000000..46a036192 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_casino/arcade_basement.lua @@ -0,0 +1,106 @@ +-- Arcade basement: 2710.0, -360.780, -56.0 +exports('GetDiamondArcadeBasementObject', function() + return DiamondArcadeBasement +end) + +DiamondArcadeBasement = { + interiorId = 278529, + + Style = { + derelict = "set_plan_pre_setup", + normal = { + "set_plan_setup", + "set_plan_scribbles" + }, + + Set = function(style, refresh) + DiamondArcadeBasement.Style.Clear(false) + + SetIplPropState(DiamondArcadeBasement.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcadeBasement.interiorId, { + DiamondArcadeBasement.Style.derelict, + DiamondArcadeBasement.Style.normal + }, false, refresh) + end + }, + + Garage = { + garage = "set_plan_garage", + wall = "set_plan_wall", + + Set = function(garage, refresh) + DiamondArcadeBasement.Garage.Clear(false) + + SetIplPropState(DiamondArcadeBasement.interiorId, garage, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcadeBasement.interiorId, { + DiamondArcadeBasement.Garage.garage, + DiamondArcadeBasement.Garage.wall + }, false, refresh) + end + }, + + Bed = { + bed = "set_plan_bed", + trash = "set_plan_no_bed", + + Set = function(bed, refresh) + DiamondArcadeBasement.Bed.Clear(false) + + SetIplPropState(DiamondArcadeBasement.interiorId, bed, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DiamondArcadeBasement.interiorId, { + DiamondArcadeBasement.Bed.bed, + DiamondArcadeBasement.Bed.trash + }, false, refresh) + end + }, + + Details = { + computer = "set_plan_computer", + cabinets = "set_plan_arcade_x4", + plans = "set_plan_plans", + casino = "set_plan_casino", + keypad = "set_plan_keypad", + vault = "set_plan_vault", + mechanic = "set_plan_mechanic", + hacker = "set_plan_hacker", + weapons = "set_plan_weapons", + vaultLaser = "set_plan_vault_laser", + vaultDrill = "set_plan_vault_drill", + drill = "set_plan_electric_drill", + explosives = "set_plan_plastic_explosives", + dongle = "set_plan_hacking_device", + cockroaches = "set_plan_cockroaches", + stealthOutfits = "set_plan_stealth_outfits", + securityOutfits = "set_plan_gruppe_sechs_outfits", + helmet = "set_plan_fireman_helmet", + drone = "set_plan_drone_parts", + keycards = "set_plan_vault_keycard_01a", + keycard1 = "set_plan_swipe_card_01a", + keycard2 = "set_plan_swipe_card_01b", + vaultLaser2 = "set_plan_vault_laser_alt", + vaultDrill2 = "set_plan_vault_drill_alt", + + Enable = function(details, state, refresh) + SetIplPropState(DiamondArcadeBasement.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + DiamondArcadeBasement.Style.Set(DiamondArcadeBasement.Style.normal, false) + DiamondArcadeBasement.Garage.Set(DiamondArcadeBasement.Garage.garage, false) + DiamondArcadeBasement.Bed.Set(DiamondArcadeBasement.Bed.bed, false) + + DiamondArcadeBasement.Details.Enable(DiamondArcadeBasement.Details.computer, true, false) + DiamondArcadeBasement.Details.Enable(DiamondArcadeBasement.Details.plans, true, false) + DiamondArcadeBasement.Details.Enable(DiamondArcadeBasement.Details.mechanic, true, false) + DiamondArcadeBasement.Details.Enable(DiamondArcadeBasement.Details.cockroaches, true, false) + + RefreshInterior(DiamondArcadeBasement.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_casino/casino.lua b/resources/[housing]/bob74_ipl/dlc_casino/casino.lua new file mode 100644 index 000000000..0b38d0437 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_casino/casino.lua @@ -0,0 +1,70 @@ +exports('GetDiamondCasinoObject', function() + return DiamondCasino +end) + +DiamondCasino = { + Ipl = { + Building = { + ipl = { + "hei_dlc_windows_casino", + "hei_dlc_casino_aircon", + "vw_dlc_casino_door", + "hei_dlc_casino_door" + }, + + Load = function() + EnableIpl(DiamondCasino.Ipl.Building.ipl, true) + end, + Remove = function() + EnableIpl(DiamondCasino.Ipl.Building.ipl, false) + end + }, + Main = { + ipl = "vw_casino_main", + + -- Normal Version: 1110.20, 216.60 -49.45 + -- Heist Version: 2490.67, -280.40, -58.71 + + Load = function() + EnableIpl(DiamondCasino.Ipl.Main.ipl, true) + end, + Remove = function() + EnableIpl(DiamondCasino.Ipl.Main.ipl, false) + end + }, + Garage = { + ipl = "vw_casino_garage", + + -- Loading Bay Garage: 2536.276, -278.98, -64.722 + -- Vault Lobby: 2483.151, -278.58, -70.694 + -- Vault: 2516.765, -238.056, -70.737 + + Load = function() + EnableIpl(DiamondCasino.Ipl.Garage.ipl, true) + end, + Remove = function() + EnableIpl(DiamondCasino.Ipl.Garage.ipl, false) + end + }, + Carpark = { + ipl = "vw_casino_carpark", + + -- Carpark Garage: 1380.000 200.000 -50.000 + -- VIP Carpark Garage: 1295.000 230.000 -50.000 + + Load = function() + EnableIpl(DiamondCasino.Ipl.Carpark.ipl, true) + end, + Remove = function() + EnableIpl(DiamondCasino.Ipl.Carpark.ipl, false) + end + } + }, + + LoadDefault = function() + DiamondCasino.Ipl.Building.Load() + DiamondCasino.Ipl.Main.Load() + DiamondCasino.Ipl.Carpark.Load() + DiamondCasino.Ipl.Garage.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_casino/penthouse.lua b/resources/[housing]/bob74_ipl/dlc_casino/penthouse.lua new file mode 100644 index 000000000..ec41d6698 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_casino/penthouse.lua @@ -0,0 +1,335 @@ +exports('GetDiamondPenthouseObject', function() + return DiamondPenthouse +end) + +-- Penthouse: 976.636 70.295 115.164 + +DiamondPenthouse = { + interiorId = 274689, + + Ipl = { + Interior = { + ipl = "vw_casino_penthouse", + + Load = function() + EnableIpl(DiamondPenthouse.Ipl.Interior.ipl, true) + SetIplPropState(DiamondPenthouse.interiorId, "Set_Pent_Tint_Shell", true, true) + end, + Remove = function() + EnableIpl(DiamondPenthouse.Ipl.Interior.ipl, false) + end + } + }, + Colors = { + default = 0, + sharp = 1, + vibrant = 2, + timeless = 3 + }, + Interior = { + Walls = { + SetColor = function(color, refresh) + SetInteriorEntitySetColor(DiamondPenthouse.interiorId, "Set_Pent_Tint_Shell", color) + + if refresh then + RefreshInterior(DiamondPenthouse.interiorId) + end + end + }, + Pattern = { + pattern01 = "Set_Pent_Pattern_01", + pattern02 = "Set_Pent_Pattern_02", + pattern03 = "Set_Pent_Pattern_03", + pattern04 = "Set_Pent_Pattern_04", + pattern05 = "Set_Pent_Pattern_05", + pattern06 = "Set_Pent_Pattern_06", + pattern07 = "Set_Pent_Pattern_07", + pattern08 = "Set_Pent_Pattern_08", + pattern09 = "Set_Pent_Pattern_09", + + Set = function(pattern, refresh) + DiamondPenthouse.Interior.Pattern.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, pattern, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Pattern) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end, + SetColor = function(pattern, color, refresh) + SetInteriorEntitySetColor(DiamondPenthouse.interiorId, pattern, color) + + if refresh then + RefreshInterior(DiamondPenthouse.interiorId) + end + end + }, + SpaBar = { + open = "Set_Pent_Spa_Bar_Open", + closed = "Set_Pent_Spa_Bar_Closed", + + Set = function(state, refresh) + DiamondPenthouse.Interior.SpaBar.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, state, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.SpaBar) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + MediaBar = { + open = "Set_Pent_Media_Bar_Open", + closed = "Set_Pent_Media_Bar_Closed", + + Set = function(state, refresh) + DiamondPenthouse.Interior.MediaBar.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, state, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.MediaBar) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Dealer = { + open = "Set_Pent_Dealer", + closed = "Set_Pent_NoDealer", + + Set = function(state, refresh) + DiamondPenthouse.Interior.Dealer.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, state, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Dealer) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Arcade = { + none = "", + retro = "Set_Pent_Arcade_Retro", + modern = "Set_Pent_Arcade_Modern", + + Set = function(arcade, refresh) + DiamondPenthouse.Interior.Arcade.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, arcade, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Arcade) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Clutter = { + bar = "Set_Pent_Bar_Clutter", + clutter01 = "Set_Pent_Clutter_01", + clutter02 = "Set_Pent_Clutter_02", + clutter03 = "Set_Pent_Clutter_03", + + Set = function(clutter, refresh) + DiamondPenthouse.Interior.Clutter.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, clutter, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Clutter) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + BarLight = { + none = "", + light0 = "set_pent_bar_light_0", + light1 = "set_pent_bar_light_01", + light2 = "set_pent_bar_light_02", + + Set = function(light, refresh) + DiamondPenthouse.Interior.BarLight.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, light, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.BarLight) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + BarParty = { + none = "", + party0 = "set_pent_bar_party_0", + party1 = "set_pent_bar_party_1", + party2 = "set_pent_bar_party_2", + partyafter = "set_pent_bar_party_after", + + Set = function(party, refresh) + DiamondPenthouse.Interior.BarParty.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, party, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.BarParty) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Blockers = { + Guest = { + enabled = "Set_Pent_GUEST_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Guest.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Guest) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Lounge = { + enabled = "Set_Pent_LOUNGE_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Lounge.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Lounge) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Office = { + enabled = "Set_Pent_OFFICE_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Office.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Office) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Cinema = { + enabled = "Set_Pent_CINE_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Cinema.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Cinema) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Spa = { + enabled = "Set_Pent_SPA_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Spa.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Spa) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + Bar = { + enabled = "Set_Pent_BAR_BLOCKER", + disabled = "", + + Set = function(blocker, refresh) + DiamondPenthouse.Interior.Blockers.Bar.Clear(false) + + SetIplPropState(DiamondPenthouse.interiorId, blocker, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(DiamondPenthouse.Interior.Blockers.Bar) do + if type(value) == "string" then + SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh) + end + end + end + }, + EnableAllBlockers = function() + DiamondPenthouse.Interior.Blockers.Bar.Set(DiamondPenthouse.Interior.Blockers.Bar.enabled) + DiamondPenthouse.Interior.Blockers.Guest.Set(DiamondPenthouse.Interior.Blockers.Guest.enabled) + DiamondPenthouse.Interior.Blockers.Spa.Set(DiamondPenthouse.Interior.Blockers.Spa.enabled) + DiamondPenthouse.Interior.Blockers.Cinema.Set(DiamondPenthouse.Interior.Blockers.Cinema.enabled) + DiamondPenthouse.Interior.Blockers.Lounge.Set(DiamondPenthouse.Interior.Blockers.Lounge.enabled) + DiamondPenthouse.Interior.Blockers.Office.Set(DiamondPenthouse.Interior.Blockers.Office.enabled) + end, + DisableAllBlockers = function() + DiamondPenthouse.Interior.Blockers.Bar.Set(DiamondPenthouse.Interior.Blockers.Bar.disabled) + DiamondPenthouse.Interior.Blockers.Guest.Set(DiamondPenthouse.Interior.Blockers.Guest.disabled) + DiamondPenthouse.Interior.Blockers.Spa.Set(DiamondPenthouse.Interior.Blockers.Spa.disabled) + DiamondPenthouse.Interior.Blockers.Cinema.Set(DiamondPenthouse.Interior.Blockers.Cinema.disabled) + DiamondPenthouse.Interior.Blockers.Lounge.Set(DiamondPenthouse.Interior.Blockers.Lounge.disabled) + DiamondPenthouse.Interior.Blockers.Office.Set(DiamondPenthouse.Interior.Blockers.Office.disabled) + end + } + }, + + LoadDefault = function() + local styleColor = DiamondPenthouse.Colors.sharp + local stylePattern = DiamondPenthouse.Interior.Pattern.pattern01 + + DiamondPenthouse.Ipl.Interior.Load() + + DiamondPenthouse.Interior.Walls.SetColor(styleColor) + DiamondPenthouse.Interior.Pattern.Set(stylePattern) + DiamondPenthouse.Interior.Pattern.SetColor(stylePattern, styleColor) + + DiamondPenthouse.Interior.SpaBar.Set(DiamondPenthouse.Interior.SpaBar.open) + DiamondPenthouse.Interior.MediaBar.Set(DiamondPenthouse.Interior.MediaBar.open) + DiamondPenthouse.Interior.Dealer.Set(DiamondPenthouse.Interior.Dealer.open) + + RefreshInterior(DiamondPenthouse.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_cayoperico/base.lua b/resources/[housing]/bob74_ipl/dlc_cayoperico/base.lua new file mode 100644 index 000000000..8ed230a2a --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_cayoperico/base.lua @@ -0,0 +1,3 @@ +CreateThread(function() + RequestIpl("h4_ch2_mansion_final") +end) \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_cayoperico/nightclub.lua b/resources/[housing]/bob74_ipl/dlc_cayoperico/nightclub.lua new file mode 100644 index 000000000..a2c35d0da --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_cayoperico/nightclub.lua @@ -0,0 +1,207 @@ +-- The Music Locker: 1550.0, 250.0, -50.0 +exports('GetCayoPericoNightclub', function() + return CayoPericoNightclub +end) + +CayoPericoNightclub = { + interiorId = 281089, + + Ipl = { + Posters = { + palmstraxx = "h4_clubposter_palmstraxx", + moodymann = "h4_clubposter_moodymann", + keinemusik = "h4_clubposter_keinemusik", + + Enable = function(poster, state) + EnableIpl(poster, state) + end + } + }, + + Security = { + security = "int01_ba_security_upgrade", + + Enable = function(state, refresh) + SetIplPropState(CayoPericoNightclub.interiorId, CayoPericoNightclub.Security.security, state, refresh) + end + }, + + Speakers = { + basic = "int01_ba_equipment_setup", + upgrade = { + "int01_ba_equipment_setup", + "int01_ba_equipment_upgrade" + }, + + Set = function(speakers, refresh) + CayoPericoNightclub.Speakers.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, speakers, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoNightclub.interiorId, { + CayoPericoNightclub.Speakers.basic, + CayoPericoNightclub.Speakers.upgrade + }, false, refresh) + end + }, + + Podium = { + podium = "int01_ba_style02_podium", + + Enable = function(state, refresh) + SetIplPropState(CayoPericoNightclub.interiorId, CayoPericoNightclub.Podium.podium, state, refresh) + end + }, + + Turntables = { + style01 = "int01_ba_dj01", + style02 = "int01_ba_dj02", + style03 = "int01_ba_dj03", + style04 = "int01_ba_dj04", + style05 = "int01_ba_dj_palms_trax", + style06 = "int01_ba_dj_keinemusik", + style07 = "int01_ba_dj_moodyman", + + Set = function(style, refresh) + CayoPericoNightclub.Turntables.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, style, true, refresh) + end, + Clear = function(refresh) + for key, value in pairs(CayoPericoNightclub.Turntables) do + if type(value) == "string" then + SetIplPropState(CayoPericoNightclub.interiorId, value, false, refresh) + end + end + end + }, + + Bar = { + bar = "int01_ba_bar_content", + + Enable = function(state, refresh) + SetIplPropState(CayoPericoNightclub.interiorId, CayoPericoNightclub.Bar.bar, state, refresh) + end + }, + + Screen = { + front = "int01_ba_lights_screen", + back = "int01_ba_screen", + + Enable = function(screen, state, refresh) + SetIplPropState(CayoPericoNightclub.interiorId, screen, state, refresh) + end + }, + + Lights = { + Droplets = { + style01 = "dj_01_lights_01", + style02 = "dj_02_lights_01", + style03 = "dj_03_lights_01", + style04 = "dj_04_lights_01", + + Set = function(lights, refresh) + CayoPericoNightclub.Lights.Droplets.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, lights, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoNightclub.interiorId, { + CayoPericoNightclub.Lights.Droplets.style01, + CayoPericoNightclub.Lights.Droplets.style02, + CayoPericoNightclub.Lights.Droplets.style03, + CayoPericoNightclub.Lights.Droplets.style04 + }, false, refresh) + end + }, + + Neons = { + style01 = "dj_01_lights_02", + style02 = "dj_02_lights_02", + style03 = "dj_03_lights_02", + style04 = "dj_04_lights_02", + + Set = function(lights, refresh) + CayoPericoNightclub.Lights.Neons.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, lights, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoNightclub.interiorId, { + CayoPericoNightclub.Lights.Neons.style01, + CayoPericoNightclub.Lights.Neons.style02, + CayoPericoNightclub.Lights.Neons.style03, + CayoPericoNightclub.Lights.Neons.style04 + }, false, refresh) + end + }, + + Bands = { + style01 = "dj_01_lights_03", + style02 = "dj_02_lights_03", + style03 = "dj_03_lights_03", + style04 = "dj_04_lights_03", + + Set = function(lights, refresh) + CayoPericoNightclub.Lights.Bands.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, lights, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoNightclub.interiorId, { + CayoPericoNightclub.Lights.Bands.style01, + CayoPericoNightclub.Lights.Bands.style02, + CayoPericoNightclub.Lights.Bands.style03, + CayoPericoNightclub.Lights.Bands.style04 + }, false, refresh) + end + }, + + Lasers = { + style01 = "dj_01_lights_04", + style02 = "dj_02_lights_04", + style03 = "dj_03_lights_04", + style04 = "dj_04_lights_04", + + Set = function(lights, refresh) + CayoPericoNightclub.Lights.Lasers.Clear(false) + + SetIplPropState(CayoPericoNightclub.interiorId, lights, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoNightclub.interiorId, { + CayoPericoNightclub.Lights.Lasers.style01, + CayoPericoNightclub.Lights.Lasers.style02, + CayoPericoNightclub.Lights.Lasers.style03, + CayoPericoNightclub.Lights.Lasers.style04 + }, false, refresh) + end + }, + + Clear = function(refresh) + CayoPericoNightclub.Lights.Droplets.Clear(refresh) + CayoPericoNightclub.Lights.Neons.Clear(refresh) + CayoPericoNightclub.Lights.Bands.Clear(refresh) + CayoPericoNightclub.Lights.Lasers.Clear(refresh) + end + }, + + LoadDefault = function() + -- Interior + CayoPericoNightclub.Security.Enable(true, false) + CayoPericoNightclub.Speakers.Set(CayoPericoNightclub.Speakers.basic, false) + CayoPericoNightclub.Podium.Enable(true, false) + CayoPericoNightclub.Turntables.Set(CayoPericoNightclub.Turntables.style01, false) + CayoPericoNightclub.Bar.Enable(true, false) + CayoPericoNightclub.Screen.Enable(CayoPericoNightclub.Screen.front, true, false) + CayoPericoNightclub.Lights.Lasers.Set(CayoPericoNightclub.Lights.Lasers.style04, false) + + -- Exterior + CayoPericoNightclub.Ipl.Posters.Enable(CayoPericoNightclub.Ipl.Posters.palmstraxx, true) + CayoPericoNightclub.Ipl.Posters.Enable(CayoPericoNightclub.Ipl.Posters.moodymann, true) + CayoPericoNightclub.Ipl.Posters.Enable(CayoPericoNightclub.Ipl.Posters.keinemusik, true) + + RefreshInterior(CayoPericoNightclub.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_cayoperico/submarine.lua b/resources/[housing]/bob74_ipl/dlc_cayoperico/submarine.lua new file mode 100644 index 000000000..1cac6c0f7 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_cayoperico/submarine.lua @@ -0,0 +1,71 @@ +-- Submarine: 1560.0, 400.0, -50.0 +exports('GetCayoPericoSubmarine', function() + return CayoPericoSubmarine +end) + +CayoPericoSubmarine = { + interiorId = 281345, + + Workshop = { + brig = "entity_set_brig", + workshop = "entity_set_weapons", + + Set = function(room, refresh) + CayoPericoSubmarine.Workshop.Clear(false) + + SetIplPropState(CayoPericoSubmarine.interiorId, room, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoSubmarine.interiorId, { + CayoPericoSubmarine.Workshop.brig, + CayoPericoSubmarine.Workshop.workshop + }, false, refresh) + end + }, + + Chairs = { + chairs = "entity_set_guide", + + Enable = function(state, refresh) + SetIplPropState(CayoPericoSubmarine.interiorId, CayoPericoSubmarine.Chairs.chairs, state, refresh) + end + }, + + Lights = { + on = "entity_set_hatch_lights_on", + off = "entity_set_hatch_lights_off", + + Set = function(lights, refresh) + CayoPericoSubmarine.Lights.Clear(false) + + SetIplPropState(CayoPericoSubmarine.interiorId, lights, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(CayoPericoSubmarine.interiorId, { + CayoPericoSubmarine.Lights.on, + CayoPericoSubmarine.Lights.off + }, false, refresh) + end + }, + + Details = { + bomb = "entity_set_demolition", + torch = "entity_set_acetylene", + cutter = "entity_set_plasma", + fingerprint = "entity_set_fingerprint", + suppressors = "entity_set_suppressors", + jammer = "entity_set_jammer", + + Enable = function(details, state, refresh) + SetIplPropState(CayoPericoSubmarine.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + CayoPericoSubmarine.Workshop.Set(CayoPericoSubmarine.Workshop.brig, false) + CayoPericoSubmarine.Chairs.Enable(true, false) + CayoPericoSubmarine.Lights.Set(CayoPericoSubmarine.Lights.off, false) + + RefreshInterior(CayoPericoSubmarine.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_chopshop/base.lua b/resources/[housing]/bob74_ipl/dlc_chopshop/base.lua new file mode 100644 index 000000000..005d1c341 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_chopshop/base.lua @@ -0,0 +1,7 @@ +CreateThread(function() + RequestIpl("m23_2_acp_collision_fixes_01") + RequestIpl("m23_2_acp_collision_fixes_02") + RequestIpl("m23_2_tug_collision") + RequestIpl("m23_2_hei_yacht_collision_fixes") + RequestIpl("m23_2_vinewood_garage") +end) diff --git a/resources/[housing]/bob74_ipl/dlc_chopshop/cargoship.lua b/resources/[housing]/bob74_ipl/dlc_chopshop/cargoship.lua new file mode 100644 index 000000000..b3050eed6 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_chopshop/cargoship.lua @@ -0,0 +1,24 @@ +-- Cargo ship: -344.4349, -4062.832, 17.000 +exports('GetChopShopCargoShipObject', function() + return ChopShopCargoShip +end) + +ChopShopCargoShip = { + Ipl = { + ipl = { + "m23_2_cargoship", + "m23_2_cargoship_bridge" + }, + + Load = function() + EnableIpl(ChopShopCargoShip.Ipl.ipl, true) + end, + Remove = function() + EnableIpl(ChopShopCargoShip.Ipl.ipl, false) + end + }, + + LoadDefault = function() + ChopShopCargoShip.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_chopshop/cartel_garage.lua b/resources/[housing]/bob74_ipl/dlc_chopshop/cartel_garage.lua new file mode 100644 index 000000000..7ec8fc677 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_chopshop/cartel_garage.lua @@ -0,0 +1,22 @@ +-- Cartel Garage: 1220.133, -2277.844, -50.000 +exports('GetChopShopCartelGarageObject', function() + return ChopShopCartelGarage +end) + +ChopShopCartelGarage = { + interiorId = 293633, + + Entities = { + entities = "mp2023_02_dlc_int_6_cb", + + Enable = function(state, refresh) + SetIplPropState(ChopShopCartelGarage.interiorId, ChopShopCartelGarage.Entities.entities, state, refresh) + end + }, + + LoadDefault = function() + ChopShopCartelGarage.Entities.Enable(true, false) + + RefreshInterior(ChopShopCartelGarage.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_chopshop/lifeguard.lua b/resources/[housing]/bob74_ipl/dlc_chopshop/lifeguard.lua new file mode 100644 index 000000000..557eab18f --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_chopshop/lifeguard.lua @@ -0,0 +1,21 @@ +-- Lifeguard: -1488.153, -1021.166, 5.000 +exports('GetChopShopLifeguardObject', function() + return ChopShopLifeguard +end) + +ChopShopLifeguard = { + Ipl = { + ipl = "m23_2_lifeguard_access", + + Load = function() + EnableIpl(ChopShopLifeguard.Ipl.ipl, true) + end, + Remove = function() + EnableIpl(ChopShopLifeguard.Ipl.ipl, false) + end + }, + + LoadDefault = function() + ChopShopLifeguard.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_chopshop/salvage.lua b/resources/[housing]/bob74_ipl/dlc_chopshop/salvage.lua new file mode 100644 index 000000000..ce6c157bf --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_chopshop/salvage.lua @@ -0,0 +1,115 @@ +-- Salvage Yard: 1077.276, -2274.876, -50.000 +exports('GetChopShopSalvageObject', function() + return ChopShopSalvage +end) + +ChopShopSalvage = { + interiorId = 293377, + + Ipl = { + Exterior = { + ipl = { + "m23_2_sp1_03_reds", + "m23_2_sc1_03_reds", + "m23_2_id2_04_reds", + "m23_2_cs1_05_reds", + "m23_2_cs4_11_reds", + }, + + Load = function() + EnableIpl(ChopShopSalvage.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(ChopShopSalvage.Ipl.Exterior.ipl, false) + end + } + }, + + Style = { + basic = { + "set_mechanic_basic", + "set_safe_basic" + }, + upgrade = { + "set_mechanic_upgrade", + "set_safe_upgrade" + }, + + Set = function(style, refresh) + ChopShopSalvage.Style.Clear(false) + + SetIplPropState(ChopShopSalvage.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(ChopShopSalvage.interiorId, { + ChopShopSalvage.Style.basic, + ChopShopSalvage.Style.upgrade + }, false, refresh) + end + }, + + Lift1 = { + down = "set_car_lift_01_down", + up = "set_car_lift_01_up", + + Set = function(lift, refresh) + ChopShopSalvage.Lift1.Clear(false) + + SetIplPropState(ChopShopSalvage.interiorId, lift, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(ChopShopSalvage.interiorId, { + ChopShopSalvage.Lift1.down, + ChopShopSalvage.Lift1.up + }, false, refresh) + end + }, + + Lift2 = { + down = "set_car_lift_02_down", + up = "set_car_lift_02_up", + + Set = function(lift, refresh) + ChopShopSalvage.Lift2.Clear(false) + + SetIplPropState(ChopShopSalvage.interiorId, lift, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(ChopShopSalvage.interiorId, { + ChopShopSalvage.Lift2.down, + ChopShopSalvage.Lift2.up + }, false, refresh) + end + }, + + Tint = { + gray = 1, + red = 2, + blue = 3, + orange = 4, + yellow = 5, + green = 6, + pink = 7, + teal = 8, + darkGray = 9, + + SetColor = function(color, refresh) + SetIplPropState(ChopShopSalvage.interiorId, "set_tint_b", true, refresh) + SetInteriorEntitySetColor(ChopShopSalvage.interiorId, "set_tint_b", color) + end + }, + + LoadDefault = function() + -- Exterior + ChopShopSalvage.Ipl.Exterior.Load() + + -- Interior + ChopShopSalvage.Tint.SetColor(ChopShopSalvage.Tint.gray, false) + ChopShopSalvage.Style.Set(ChopShopSalvage.Style.upgrade, false) + + ChopShopSalvage.Lift1.Set(ChopShopSalvage.Lift1.up, false) + ChopShopSalvage.Lift2.Set(ChopShopSalvage.Lift2.up, false) + + RefreshInterior(ChopShopSalvage.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_doomsday/facility.lua b/resources/[housing]/bob74_ipl/dlc_doomsday/facility.lua new file mode 100644 index 000000000..069c6f89d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_doomsday/facility.lua @@ -0,0 +1,421 @@ +-- DoomsdayFacility: 345.00000000 4842.00000000 -60.00000000 +exports('GetDoomsdayFacilityObject', function() + return DoomsdayFacility +end) + +DoomsdayFacility = { + interiorId = 269313, + + Ipl = { + Interior = { + ipl = "xm_x17dlc_int_placement_interior_33_x17dlc_int_02_milo_", + + Load = function(color) + EnableIpl(DoomsdayFacility.Ipl.Interior.ipl, true) + SetIplPropState(DoomsdayFacility.interiorId, "set_int_02_shell", true, true) + end, + Remove = function() + EnableIpl(DoomsdayFacility.Ipl.Interior.ipl, false) + end + }, + Exterior = { + ipl = { + "xm_hatch_01_cutscene", -- 1286.924 2846.06 49.39426 + "xm_hatch_02_cutscene", -- 18.633 2610.834 86.0 + "xm_hatch_03_cutscene", -- 2768.574 3919.924 45.82 + "xm_hatch_04_cutscene", -- 3406.90 5504.77 26.28 + "xm_hatch_06_cutscene", -- 1.90 6832.18 15.82 + "xm_hatch_07_cutscene", -- -2231.53 2418.42 12.18 + "xm_hatch_08_cutscene", -- -6.92 3327.0 41.63 + "xm_hatch_09_cutscene", -- 2073.62 1748.77 104.51 + "xm_hatch_10_cutscene", -- 1874.35 284.34 164.31 + "xm_hatch_closed", -- Closed hatches (all) + "xm_siloentranceclosed_x17", -- Closed silo: 598.4869 5556.846 716.7615 + "xm_bunkerentrance_door", -- Bunker entrance closed door: 2050.85 2950.0 47.75 + "xm_hatches_terrain", -- Terrain adjustments for facilities (all) + silo + "xm_hatches_terrain_lod" + }, + + Load = function() + EnableIpl(DoomsdayFacility.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(DoomsdayFacility.Ipl.Exterior.ipl, false) + end + } + }, + Colors = { + utility = 1, + expertise = 2, + altitude = 3, + power = 4, + authority = 5, + influence = 6, + order = 7, + empire = 8, + supremacy = 9 + }, + Walls = { + SetColor = function(color, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, "set_int_02_shell", color) + + if refresh then + RefreshInterior(DoomsdayFacility.interiorId) + end + end + }, + Decals = { + none = "", + style01 = "set_int_02_decal_01", + style02 = "set_int_02_decal_02", + style03 = "set_int_02_decal_03", + style04 = "set_int_02_decal_04", + style05 = "set_int_02_decal_05", + style06 = "set_int_02_decal_06", + style07 = "set_int_02_decal_07", + style08 = "set_int_02_decal_08", + style09 = "set_int_02_decal_09", + + Set = function(decal, refresh) + DoomsdayFacility.Decals.Clear(refresh) + + if decal ~= "" then + SetIplPropState(DoomsdayFacility.interiorId, decal, true, refresh) + else + if refresh then + RefreshInterior(DoomsdayFacility.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(DoomsdayFacility.interiorId, { + DoomsdayFacility.Decals.style01, DoomsdayFacility.Decals.style02, DoomsdayFacility.Decals.style03, + DoomsdayFacility.Decals.style04, DoomsdayFacility.Decals.style05, DoomsdayFacility.Decals.style06, + DoomsdayFacility.Decals.style07, DoomsdayFacility.Decals.style08, DoomsdayFacility.Decals.style09 + }, false, refresh) + end + }, + Lounge = { + utility = "set_int_02_lounge1", + prestige = "set_int_02_lounge2", + premier = "set_int_02_lounge3", + + Set = function(lounge, color, refresh) + DoomsdayFacility.Lounge.Clear(false) + + SetIplPropState(DoomsdayFacility.interiorId, lounge, true, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, lounge, color) + end, + Clear = function(refresh) + SetIplPropState(DoomsdayFacility.interiorId, { + DoomsdayFacility.Lounge.utility, + DoomsdayFacility.Lounge.prestige, + DoomsdayFacility.Lounge.premier + }, false, refresh) + end + }, + Sleeping = { + none = "set_int_02_no_sleep", + utility = "set_int_02_sleep", + prestige = "set_int_02_sleep2", + premier = "set_int_02_sleep3", + + Set = function(sleep, color, refresh) + DoomsdayFacility.Sleeping.Clear(false) + + SetIplPropState(DoomsdayFacility.interiorId, sleep, true, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, sleep, color) + end, + Clear = function(refresh) + SetIplPropState(DoomsdayFacility.interiorId, { + DoomsdayFacility.Sleeping.none, + DoomsdayFacility.Sleeping.utility, + DoomsdayFacility.Sleeping.prestige, + DoomsdayFacility.Sleeping.premier + }, false, refresh) + end + }, + Security = { + off = "set_int_02_no_security", + on = "set_int_02_security", + + Set = function(security, color, refresh) + DoomsdayFacility.Security.Clear(false) + + SetIplPropState(DoomsdayFacility.interiorId, security, true, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, security, color) + end, + Clear = function(refresh) + SetIplPropState(DoomsdayFacility.interiorId, { + DoomsdayFacility.Security.off, + DoomsdayFacility.Security.on + }, false, refresh) + end + }, + Cannon = { + off = "set_int_02_no_cannon", + on = "set_int_02_cannon", + + Set = function(cannon, color, refresh) + DoomsdayFacility.Cannon.Clear(false) + + SetIplPropState(DoomsdayFacility.interiorId, cannon, true, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, cannon, color) + end, + Clear = function(refresh) + SetIplPropState(DoomsdayFacility.interiorId, { + DoomsdayFacility.Cannon.off, + DoomsdayFacility.Cannon.on + }, false, refresh) + end + }, + PrivacyGlass = { + controlModelHash = `xm_prop_x17_tem_control_01`, + + Bedroom = { + Enable = function(state) + local handle = GetClosestObjectOfType(367.99, 4827.745, -59.0, 1.0, `xm_prop_x17_l_glass_03`, false, false, false) + + if state then + if handle == 0 then + local model = `xm_prop_x17_l_glass_03` + + RequestModel(model) + while not HasModelLoaded(model) do + Wait(0) + end + + local privacyGlass = CreateObject(model, 367.99, 4827.745, -59.0, false, false, false) + + SetEntityAsMissionEntity(privacyGlass, true, 0) + SetEntityCompletelyDisableCollision(privacyGlass, false, 0) + SetEntityInvincible(privacyGlass, true) + SetEntityAlpha(privacyGlass, 254, false) + end + else + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end, + + Control = { + position = vector3(372.115, 4827.504, -58.47), + rotation = vector3(0.0, 0.0, 0.0), + + Enable = function(state) + local handle = GetClosestObjectOfType(DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.x, DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.y, DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.z, 1.0, DoomsdayFacility.PrivacyGlass.controlModelHash, false, false, false) + + if state then + if handle == 0 then + RequestModel(DoomsdayFacility.PrivacyGlass.controlModelHash) + while not HasModelLoaded(DoomsdayFacility.PrivacyGlass.controlModelHash) do + Wait(0) + end + + local privacyGlass = CreateObjectNoOffset(DoomsdayFacility.PrivacyGlass.controlModelHash, DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.x, DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.y, DoomsdayFacility.PrivacyGlass.Bedroom.Control.position.z, false, false, false) + + SetEntityRotation(privacyGlass, DoomsdayFacility.PrivacyGlass.Bedroom.Control.rotation.x, DoomsdayFacility.PrivacyGlass.Bedroom.Control.rotation.y, DoomsdayFacility.PrivacyGlass.Bedroom.Control.rotation.z, 2, true) + FreezeEntityPosition(privacyGlass, true) + SetEntityAsMissionEntity(privacyGlass, false, false) + end + else + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end, + } + }, + Lounge = { + Glasses = { + { + modelHash = `xm_prop_x17_l_door_glass_01`, + entityHash = `xm_prop_x17_l_door_frame_01`, + entityPos = vector3(359.22, 4846.043, -58.85) + }, + { + modelHash = `xm_prop_x17_l_door_glass_01`, + entityHash = `xm_prop_x17_l_door_frame_01`, + entityPos = vector3(369.066, 4846.273, -58.85) + }, + { + modelHash = `xm_prop_x17_l_glass_01`, + entityHash = `xm_prop_x17_l_frame_01`, + entityPos = vector3(358.843, 4845.103, -60.0) + }, + { + modelHash = `xm_prop_x17_l_glass_02`, + entityHash = `xm_prop_x17_l_frame_02`, + entityPos = vector3(366.309, 4847.281, -60.0) + }, + { + modelHash = `xm_prop_x17_l_glass_03`, + entityHash = `xm_prop_x17_l_frame_03`, + entityPos = vector3(371.194, 4841.27, -60.0) + } + }, + + Enable = function(state) + for key, glass in pairs(DoomsdayFacility.PrivacyGlass.Lounge.Glasses) do + local handle = GetClosestObjectOfType(glass.entityPos.x, glass.entityPos.y, glass.entityPos.z, 1.0, glass.modelHash, false, false, false) + + if state then + if handle == 0 then + local entityToAttach = GetClosestObjectOfType(glass.entityPos.x, glass.entityPos.y, glass.entityPos.z, 1.0, glass.entityHash, false, false, false) + + if entityToAttach ~= 0 then + RequestModel(glass.modelHash) + while not HasModelLoaded(glass.modelHash) do + Wait(0) + end + + local privacyGlass = CreateObject(glass.modelHash, glass.entityPos.x, glass.entityPos.y, glass.entityPos.z, false, false, false) + + SetEntityAsMissionEntity(privacyGlass, true, false) + SetEntityCompletelyDisableCollision(privacyGlass, false, 0) + SetEntityInvincible(privacyGlass, true) + SetEntityAlpha(privacyGlass, 254, false) + AttachEntityToEntity(privacyGlass, entityToAttach, -1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 2, 1) + end + end + else + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end + end, + + Control = { + position = vector3(367.317, 4846.729, -58.448), + rotation = vector3(0.0, 0.0, -16.0), + + Enable = function(state) + local handle = GetClosestObjectOfType(DoomsdayFacility.PrivacyGlass.Lounge.Control.position.x, DoomsdayFacility.PrivacyGlass.Lounge.Control.position.y, DoomsdayFacility.PrivacyGlass.Lounge.Control.position.z, 1.0, DoomsdayFacility.PrivacyGlass.controlModelHash, false, false, false) + + if state then + if handle == 0 then + RequestModel(DoomsdayFacility.PrivacyGlass.controlModelHash) + while not HasModelLoaded(DoomsdayFacility.PrivacyGlass.controlModelHash) do + Wait(0) + end + + local privacyGlass = CreateObjectNoOffset(DoomsdayFacility.PrivacyGlass.controlModelHash, DoomsdayFacility.PrivacyGlass.Lounge.Control.position.x, DoomsdayFacility.PrivacyGlass.Lounge.Control.position.y, DoomsdayFacility.PrivacyGlass.Lounge.Control.position.z, false, false, false) + + SetEntityRotation(privacyGlass, DoomsdayFacility.PrivacyGlass.Lounge.Control.rotation.x, DoomsdayFacility.PrivacyGlass.Lounge.Control.rotation.y, DoomsdayFacility.PrivacyGlass.Lounge.Control.rotation.z, 2, true) + FreezeEntityPosition(privacyGlass, true) + SetEntityAsMissionEntity(privacyGlass, false, false) + end + else + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end + } + } + }, + Details = { + KhanjaliParts = { + A = "Set_Int_02_Parts_Panther1", + B = "Set_Int_02_Parts_Panther2", + C = "Set_Int_02_Parts_Panther3" + }, + RiotParts = { + A = "Set_Int_02_Parts_Riot1", + B = "Set_Int_02_Parts_Riot2", + C = "Set_Int_02_Parts_Riot3" + }, + ChenoParts = { + A = "Set_Int_02_Parts_Cheno1", + B = "Set_Int_02_Parts_Cheno2", + C = "Set_Int_02_Parts_Cheno3" + }, + ThrusterParts = { + A = "Set_Int_02_Parts_Thruster1", + B = "Set_Int_02_Parts_Thruster2", + C = "Set_Int_02_Parts_Thruster3" + }, + AvengerParts = { + A = "Set_Int_02_Parts_Avenger1", + B = "Set_Int_02_Parts_Avenger2", + C = "Set_Int_02_Parts_Avenger3" + }, + Outfits = { + paramedic = "Set_Int_02_outfit_paramedic", + morgue = "Set_Int_02_outfit_morgue", + serverFarm = "Set_Int_02_outfit_serverfarm", + iaa = "Set_Int_02_outfit_iaa", + stealAvenger = "Set_Int_02_outfit_steal_avenger", + foundry = "Set_Int_02_outfit_foundry", + riot = "Set_Int_02_outfit_riot_van", + stromberg = "Set_Int_02_outfit_stromberg", + submarine = "Set_Int_02_outfit_sub_finale", + predator = "Set_Int_02_outfit_predator", + khanjali = "Set_Int_02_outfit_khanjali", + volatol = "Set_Int_02_outfit_volatol" + }, + Trophies = { + eagle = "set_int_02_trophy1", + iaa = "set_int_02_trophy_iaa", + submarine = "set_int_02_trophy_sub", + + SetColor = function(color, refresh) + SetInteriorEntitySetColor(DoomsdayFacility.interiorId, "set_int_02_trophy_sub", color) + + if refresh then + RefreshInterior(DoomsdayFacility.interiorId) + end + end + }, + Clutter = { + A = "set_int_02_clutter1", + B = "set_int_02_clutter2", + C = "set_int_02_clutter3", + D = "set_int_02_clutter4", + E = "set_int_02_clutter5" + }, + crewEmblem = "set_int_02_crewemblem", + + Enable = function(details, state, refresh) + SetIplPropState(DoomsdayFacility.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + DoomsdayFacility.Ipl.Exterior.Load() + DoomsdayFacility.Ipl.Interior.Load() + + DoomsdayFacility.Walls.SetColor(DoomsdayFacility.Colors.utility) + DoomsdayFacility.Decals.Set(DoomsdayFacility.Decals.style01) + DoomsdayFacility.Lounge.Set(DoomsdayFacility.Lounge.premier, DoomsdayFacility.Colors.utility) + DoomsdayFacility.Sleeping.Set(DoomsdayFacility.Sleeping.premier, DoomsdayFacility.Colors.utility) + DoomsdayFacility.Security.Set(DoomsdayFacility.Security.on, DoomsdayFacility.Colors.utility) + DoomsdayFacility.Cannon.Set(DoomsdayFacility.Cannon.on, DoomsdayFacility.Colors.utility) + + -- Privacy glass remote + DoomsdayFacility.PrivacyGlass.Bedroom.Control.Enable(true) + DoomsdayFacility.PrivacyGlass.Lounge.Control.Enable(true) + + DoomsdayFacility.Details.Enable(DoomsdayFacility.Details.crewEmblem, false) + + DoomsdayFacility.Details.Enable(DoomsdayFacility.Details.AvengerParts, true) + + DoomsdayFacility.Details.Enable(DoomsdayFacility.Details.Outfits, true) + + DoomsdayFacility.Details.Enable(DoomsdayFacility.Details.Trophies, true) + DoomsdayFacility.Details.Trophies.SetColor(DoomsdayFacility.Colors.utility) + + DoomsdayFacility.Details.Enable({ + DoomsdayFacility.Details.Clutter.A, + DoomsdayFacility.Details.Clutter.B + }, true) + + RefreshInterior(DoomsdayFacility.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_drugwars/base.lua b/resources/[housing]/bob74_ipl/dlc_drugwars/base.lua new file mode 100644 index 000000000..ed67d0dd1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_drugwars/base.lua @@ -0,0 +1,5 @@ +CreateThread(function() + RequestIpl("xm3_collision_fixes") + RequestIpl("xm3_sum2_fix") + RequestIpl("xm3_security_fix") +end) diff --git a/resources/[housing]/bob74_ipl/dlc_drugwars/freakshop.lua b/resources/[housing]/bob74_ipl/dlc_drugwars/freakshop.lua new file mode 100644 index 000000000..7d95059cd --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_drugwars/freakshop.lua @@ -0,0 +1,51 @@ +-- Freakshop: 570.9713, -420.0727, -70.000 +exports('GetDrugWarsFreakshopObject', function() + return DrugWarsFreakshop +end) + +DrugWarsFreakshop = { + interiorId = 290817, + + Ipl = { + Exterior = { + ipl = { + "xm3_warehouse", + "xm3_warehouse_grnd" + }, + + Load = function() + EnableIpl(DrugWarsFreakshop.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(DrugWarsFreakshop.Ipl.Exterior.ipl, false) + end + } + }, + + Door = { + opened = "entity_set_roller_door_open", + closed = "entity_set_roller_door_closed", + + Set = function(door, refresh) + DrugWarsFreakshop.Door.Clear() + + SetIplPropState(DrugWarsFreakshop.interiorId, door, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DrugWarsFreakshop.interiorId, { + DrugWarsFreakshop.Door.opened, + DrugWarsFreakshop.Door.closed + }, false, refresh) + end + }, + + LoadDefault = function() + -- Exterior + DrugWarsFreakshop.Ipl.Exterior.Load() + + -- Interior + DrugWarsFreakshop.Door.Set(DrugWarsFreakshop.Door.closed, false) + + RefreshInterior(DrugWarsFreakshop.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_drugwars/garage.lua b/resources/[housing]/bob74_ipl/dlc_drugwars/garage.lua new file mode 100644 index 000000000..78879b60d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_drugwars/garage.lua @@ -0,0 +1,115 @@ +-- Eclipse Boulevard Garage: 519.2477, -2618.788, -50.000 +exports('GetDrugWarsGarageObject', function() + return DrugWarsGarage +end) + +DrugWarsGarage = { + interiorId = 290561, + + Ipl = { + Exterior = { + ipl = "xm3_garage_fix", + + Load = function() + EnableIpl(DrugWarsGarage.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(DrugWarsGarage.Ipl.Exterior.ipl, false) + end + } + }, + + Banner = { + model = `ss1_13_clth_ss1_13`, + position = vector3(-277.1116, 281.5493, 98.6691), + + Hide = function() + CreateModelHide(DrugWarsGarage.Banner.position, 10.0, DrugWarsGarage.Banner.model, true) + end, + Restore = function() + RemoveModelHide(DrugWarsGarage.Banner.position, 10.0, DrugWarsGarage.Banner.model, false) + end + }, + + Numbering = { + none = "", + level1 = "entity_set_numbers_01", + level2 = "entity_set_numbers_02", + level3 = "entity_set_numbers_03", + level4 = "entity_set_numbers_04", + level5 = "entity_set_numbers_05", + + Set = function(num, refresh) + DrugWarsGarage.Numbering.Clear(false) + + if num ~= "" then + SetIplPropState(DrugWarsGarage.interiorId, num, true, refresh) + else + if refresh then + RefreshInterior(DrugWarsGarage.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(DrugWarsGarage.interiorId, { + DrugWarsGarage.Numbering.level1, + DrugWarsGarage.Numbering.level2, + DrugWarsGarage.Numbering.level3, + DrugWarsGarage.Numbering.level4, + DrugWarsGarage.Numbering.level5 + }, false, refresh) + end + }, + + Style = { + immaculate = "entity_set_shell_01", + industrial = "entity_set_shell_02", + indulgent = "entity_set_shell_03", + + Set = function(style, refresh) + DrugWarsGarage.Style.Clear(false) + + SetIplPropState(DrugWarsGarage.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(DrugWarsGarage.interiorId, { + DrugWarsGarage.Style.immaculate, + DrugWarsGarage.Style.industrial, + DrugWarsGarage.Style.indulgent + }, false, refresh) + end + }, + + Tint = { + white = 1, + gray = 2, + black = 3, + purple = 4, + orange = 5, + yellow = 6, + blue = 7, + red = 8, + green = 9, + lightBlue = 10, + lightRed = 11, + lightGreen = 12, + + SetColor = function(color, refresh) + SetIplPropState(DrugWarsGarage.interiorId, "entity_set_tint_01", true, refresh) + SetInteriorEntitySetColor(DrugWarsGarage.interiorId, "entity_set_tint_01", color) + end + }, + + LoadDefault = function() + -- Exterior + DrugWarsGarage.Ipl.Exterior.Load() + DrugWarsGarage.Banner.Hide() + + -- Interior + DrugWarsGarage.Numbering.Set(DrugWarsGarage.Numbering.level1, false) + DrugWarsGarage.Style.Set(DrugWarsGarage.Style.immaculate, false) + DrugWarsGarage.Tint.SetColor(DrugWarsGarage.Tint.white, false) + + RefreshInterior(DrugWarsGarage.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_drugwars/lab.lua b/resources/[housing]/bob74_ipl/dlc_drugwars/lab.lua new file mode 100644 index 000000000..953cdd2dc --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_drugwars/lab.lua @@ -0,0 +1,38 @@ +-- Acid Lab: 483.4252, -2625.071, -50.000 +exports('GetDrugWarsLabObject', function() + return DrugWarsLab +end) + +DrugWarsLab = { + interiorId = 290305, + + Details = { + products = { + "set_product_01", + "set_product_02", + "set_product_03", + "set_product_04", + "set_product_05" + }, + supplies = { + "set_supplies_01", + "set_supplies_02", + "set_supplies_03", + "set_supplies_04", + "set_supplies_05", + }, + equipment = "set_equipment_upgrade", + + Enable = function(details, state, refresh) + SetIplPropState(DrugWarsLab.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + DrugWarsLab.Details.Enable(DrugWarsLab.Details.products, true, false) + DrugWarsLab.Details.Enable(DrugWarsLab.Details.supplies, true, false) + DrugWarsLab.Details.Enable(DrugWarsLab.Details.equipment, true, false) + + RefreshInterior(DrugWarsLab.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_drugwars/traincrash.lua b/resources/[housing]/bob74_ipl/dlc_drugwars/traincrash.lua new file mode 100644 index 000000000..e7b6f8fac --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_drugwars/traincrash.lua @@ -0,0 +1,12 @@ +-- Train crash: 2630.595, 1458.144, 25.3669 +exports('GetDrugWarsTrainCrashObject', function() + return DrugWarsTrainCrash +end) + +DrugWarsTrainCrash = { + ipl = "xm3_train_crash", + + Enable = function(state) + EnableIpl(DrugWarsTrainCrash.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_executive/apartment1.lua b/resources/[housing]/bob74_ipl/dlc_executive/apartment1.lua new file mode 100644 index 000000000..8aa25f681 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_executive/apartment1.lua @@ -0,0 +1,136 @@ +-- Apartment 1: -787.78050000 334.92320000 215.83840000 +exports('GetExecApartment1Object', function() + return ExecApartment1 +end) + +ExecApartment1 = { + currentInteriorId = -1, + + Style = { + Theme = { + modern = { + interiorId = 227329, + ipl = "apa_v_mp_h_01_a" + }, + moody = { + interiorId = 228097, + ipl = "apa_v_mp_h_02_a" + }, + vibrant = { + interiorId = 228865, + ipl = "apa_v_mp_h_03_a" + }, + sharp = { + interiorId = 229633, + ipl = "apa_v_mp_h_04_a" + }, + monochrome = { + interiorId = 230401, + ipl = "apa_v_mp_h_05_a" + }, + seductive = { + interiorId = 231169, + ipl = "apa_v_mp_h_06_a" + }, + regal = { + interiorId = 231937, + ipl = "apa_v_mp_h_07_a" + }, + aqua = { + interiorId = 232705, + ipl = "apa_v_mp_h_08_a" + } + }, + + Set = function(style, refresh) + if type(style) == "table" then + ExecApartment1.Style.Clear() + ExecApartment1.currentInteriorId = style.interiorId + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for key, value in pairs(ExecApartment1.Style.Theme) do + SetIplPropState(value.interiorId, { + "Apart_Hi_Strip_A", + "Apart_Hi_Strip_B", + "Apart_Hi_Strip_C" + }, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Booze_A", + "Apart_Hi_Booze_B", + "Apart_Hi_Booze_C" + }, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Smokes_A", + "Apart_Hi_Smokes_B", + "Apart_Hi_Smokes_C" + }, false, true) + EnableIpl(value.ipl, false) + end + end + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment1.currentInteriorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment1.currentInteriorId, details, state, refresh) + end + }, + Smoke = { + none = "", + stage1 = "Apart_Hi_Smokes_A", + stage2 = "Apart_Hi_Smokes_B", + stage3 = "Apart_Hi_Smokes_C", + + Set = function(smoke, refresh) + ExecApartment1.Smoke.Clear(false) + + if smoke ~= nil then + SetIplPropState(ExecApartment1.currentInteriorId, smoke, true, refresh) + else + if refresh then + RefreshInterior(ExecApartment1.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(ExecApartment1.currentInteriorId, { + ExecApartment1.Smoke.stage1, + ExecApartment1.Smoke.stage2, + ExecApartment1.Smoke.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + ExecApartment1.Style.Set(ExecApartment1.Style.Theme.modern, true) + ExecApartment1.Strip.Enable({ + ExecApartment1.Strip.A, + ExecApartment1.Strip.B, + ExecApartment1.Strip.C + }, false) + ExecApartment1.Booze.Enable({ + ExecApartment1.Booze.A, + ExecApartment1.Booze.B, + ExecApartment1.Booze.C + }, false) + ExecApartment1.Smoke.Set(ExecApartment1.Smoke.none) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_executive/apartment2.lua b/resources/[housing]/bob74_ipl/dlc_executive/apartment2.lua new file mode 100644 index 000000000..0b2987166 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_executive/apartment2.lua @@ -0,0 +1,135 @@ +-- Apartment 2: -773.22580000 322.82520000 194.88620000 +exports('GetExecApartment2Object', function() + return ExecApartment2 +end) + +ExecApartment2 = { + currentInteriorId = -1, + + Style = { + Theme = { + modern = { + interiorId = 227585, + ipl = "apa_v_mp_h_01_b" + }, + moody = { + interiorId = 228353, + ipl = "apa_v_mp_h_02_b" + }, + vibrant = { + interiorId = 229121, + ipl = "apa_v_mp_h_03_b" + }, + sharp = { + interiorId = 229889, + ipl = "apa_v_mp_h_04_b" + }, + monochrome = { + interiorId = 230657, + ipl = "apa_v_mp_h_05_b" + }, + seductive = { + interiorId = 231425, + ipl = "apa_v_mp_h_06_b" + }, + regal = { + interiorId = 232193, + ipl = "apa_v_mp_h_07_b" + }, + aqua = { + interiorId = 232961, + ipl = "apa_v_mp_h_08_b" + } + }, + + Set = function(style, refresh) + if type(style) == "table" then + ExecApartment2.Style.Clear() + ExecApartment2.currentInteriorId = style.interiorId + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for key, value in pairs(ExecApartment2.Style.Theme) do + SetIplPropState(value.interiorId, { + "Apart_Hi_Strip_A", + "Apart_Hi_Strip_B", + "Apart_Hi_Strip_C"}, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Booze_A", + "Apart_Hi_Booze_B", + "Apart_Hi_Booze_C" + }, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Smokes_A", + "Apart_Hi_Smokes_B", + "Apart_Hi_Smokes_C" + }, false, true) + EnableIpl(value.ipl, false) + end + end + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment2.currentInteriorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment2.currentInteriorId, details, state, refresh) + end + }, + Smoke = { + none = "", + stage1 = "Apart_Hi_Smokes_A", + stage2 = "Apart_Hi_Smokes_B", + stage3 = "Apart_Hi_Smokes_C", + + Set = function(smoke, refresh) + ExecApartment2.Smoke.Clear(false) + + if smoke ~= nil then + SetIplPropState(ExecApartment2.currentInteriorId, smoke, true, refresh) + else + if refresh then + RefreshInterior(ExecApartment2.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(ExecApartment2.currentInteriorId, { + ExecApartment2.Smoke.stage1, + ExecApartment2.Smoke.stage2, + ExecApartment2.Smoke.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + ExecApartment2.Style.Set(ExecApartment2.Style.Theme.seductive, true) + ExecApartment2.Strip.Enable({ + ExecApartment2.Strip.A, + ExecApartment2.Strip.B, + ExecApartment2.Strip.C + }, false) + ExecApartment2.Booze.Enable({ + ExecApartment2.Booze.A, + ExecApartment2.Booze.B, + ExecApartment2.Booze.C + }, false) + ExecApartment2.Smoke.Set(ExecApartment2.Smoke.none) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_executive/apartment3.lua b/resources/[housing]/bob74_ipl/dlc_executive/apartment3.lua new file mode 100644 index 000000000..5a008c9ec --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_executive/apartment3.lua @@ -0,0 +1,136 @@ +-- Apartment 3: -787.78050000 334.92320000 186.11340000 +exports('GetExecApartment3Object', function() + return ExecApartment3 +end) + +ExecApartment3 = { + currentInteriorId = -1, + + Style = { + Theme = { + modern = { + interiorId = 227841, + ipl = "apa_v_mp_h_01_c" + }, + moody = { + interiorId = 228609, + ipl = "apa_v_mp_h_02_c" + }, + vibrant = { + interiorId = 229377, + ipl = "apa_v_mp_h_03_c" + }, + sharp = { + interiorId = 230145, + ipl = "apa_v_mp_h_04_c" + }, + monochrome = { + interiorId = 230913, + ipl = "apa_v_mp_h_05_c" + }, + seductive = { + interiorId = 231681, + ipl = "apa_v_mp_h_06_c" + }, + regal = { + interiorId = 232449, + ipl = "apa_v_mp_h_07_c" + }, + aqua = { + interiorId = 233217, + ipl = "apa_v_mp_h_08_c" + } + }, + + Set = function(style, refresh) + if type(style) == "table" then + ExecApartment3.Style.Clear() + ExecApartment3.currentInteriorId = style.interiorId + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for key, value in pairs(ExecApartment3.Style.Theme) do + SetIplPropState(value.interiorId, { + "Apart_Hi_Strip_A", + "Apart_Hi_Strip_B", + "Apart_Hi_Strip_C" + }, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Booze_A", + "Apart_Hi_Booze_B", + "Apart_Hi_Booze_C" + }, false) + SetIplPropState(value.interiorId, { + "Apart_Hi_Smokes_A", + "Apart_Hi_Smokes_B", + "Apart_Hi_Smokes_C" + }, false, true) + EnableIpl(value.ipl, false) + end + end + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment3.currentInteriorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(ExecApartment3.currentInteriorId, details, state, refresh) + end + }, + Smoke = { + none = "", + stage1 = "Apart_Hi_Smokes_A", + stage2 = "Apart_Hi_Smokes_B", + stage3 = "Apart_Hi_Smokes_C", + + Set = function(smoke, refresh) + ExecApartment3.Smoke.Clear(false) + + if smoke ~= nil then + SetIplPropState(ExecApartment3.currentInteriorId, smoke, true, refresh) + else + if refresh then + RefreshInterior(ExecApartment3.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(ExecApartment3.currentInteriorId, { + ExecApartment3.Smoke.stage1, + ExecApartment3.Smoke.stage2, + ExecApartment3.Smoke.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + ExecApartment3.Style.Set(ExecApartment3.Style.Theme.sharp, true) + ExecApartment3.Strip.Enable({ + ExecApartment3.Strip.A, + ExecApartment3.Strip.B, + ExecApartment3.Strip.C + }, false) + ExecApartment3.Booze.Enable({ + ExecApartment3.Booze.A, + ExecApartment3.Booze.B, + ExecApartment3.Booze.C + }, false) + ExecApartment3.Smoke.Set(ExecApartment3.Smoke.none) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_finance/office1.lua b/resources/[housing]/bob74_ipl/dlc_finance/office1.lua new file mode 100644 index 000000000..755df0edd --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_finance/office1.lua @@ -0,0 +1,324 @@ +-- Office 1: -141.1987, -620.913, 168.8205 (Arcadius Business Centre) +exports('GetFinanceOffice1Object', function() + return FinanceOffice1 +end) + +FinanceOffice1 = { + currentInteriorId = -1, + currentSafeDoors = { + hashL = "", + hashR = "" + }, + + Style = { + Theme = { + warm = { + interiorId = 236289, + ipl = "ex_dt1_02_office_01a", + safe = "ex_prop_safedoor_office1a" + }, + classical = { + interiorId = 236545, + ipl = "ex_dt1_02_office_01b", + safe = "ex_prop_safedoor_office1b" + }, + vintage = { + interiorId = 236801, + ipl = "ex_dt1_02_office_01c", + safe = "ex_prop_safedoor_office1c" + }, + contrast = { + interiorId = 237057, + ipl = "ex_dt1_02_office_02a", + safe = "ex_prop_safedoor_office2a" + }, + rich = { + interiorId = 237313, + ipl = "ex_dt1_02_office_02b", + safe = "ex_prop_safedoor_office2a" + }, + cool = { + interiorId = 237569, + ipl = "ex_dt1_02_office_02c", + safe = "ex_prop_safedoor_office2a" + }, + ice = { + interiorId = 237825, + ipl = "ex_dt1_02_office_03a", + safe = "ex_prop_safedoor_office3a" + }, + conservative = { + interiorId = 238081, + ipl = "ex_dt1_02_office_03b", + safe = "ex_prop_safedoor_office3a" + }, + polished = { + interiorId = 238337, + ipl = "ex_dt1_02_office_03c", + safe = "ex_prop_safedoor_office3c" + } + }, + Set = function(style, refresh) + if refresh == nil then + refresh = false + end + + if type(style) == "table" then + FinanceOffice1.Style.Clear() + FinanceOffice1.currentInteriorId = style.interiorId + FinanceOffice1.currentSafeDoors = { + hashL = GetHashKey(style.safe .. "_l"), + hashR = GetHashKey(style.safe .. "_r") + } + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for themeKey, themeValue in pairs(FinanceOffice1.Style.Theme) do + for swagKey, swagValue in pairs(FinanceOffice1.Swag) do + if type(swagValue) == "table" then + SetIplPropState(themeValue.interiorId, { + swagValue.A, + swagValue.B, + swagValue.C + }, false) + end + end + + SetIplPropState(themeValue.interiorId, "office_chairs", false, false) + SetIplPropState(themeValue.interiorId, "office_booze", false, true) + + FinanceOffice1.currentSafeDoors = { + hashL = 0, + hashR = 0 + } + + EnableIpl(themeValue.ipl, false) + end + end + }, + Safe = { + doorHeadingL = 96.0, -- Only need the heading of the Left door to get the Right ones + Position = vector3(-124.25, -641.30, 168.870), -- Approximately between the two doors + -- These values are checked from "doorHandler.lua" and + isLeftDoorOpen = false, + isRightDoorOpen = false, + + -- Safe door API + Open = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice1.Safe.isLeftDoorOpen = true + elseif doorSide:lower() == "right" then + FinanceOffice1.Safe.isRightDoorOpen = true + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + Close = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice1.Safe.isLeftDoorOpen = false + elseif doorSide:lower() == "right" then + FinanceOffice1.Safe.isRightDoorOpen = false + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + + -- Internal use only + SetDoorState = function(doorSide, open) + local doorHandle = 0 + local heading = FinanceOffice1.Safe.doorHeadingL + + if doorSide:lower() == "left" then + doorHandle = FinanceOffice1.Safe.GetDoorHandle(FinanceOffice1.currentSafeDoors.hashL) + + if open then + heading = heading - 90.0 + end + elseif doorSide:lower() == "right" then + doorHandle = FinanceOffice1.Safe.GetDoorHandle(FinanceOffice1.currentSafeDoors.hashR) + heading = heading - 180 + + if open then + heading = heading + 90.0 + end + end + + if doorHandle == 0 then + print("[bob74_ipl] Warning: " .. doorSide .. " safe door handle is 0") + return + end + + SetEntityHeading(doorHandle, heading) + end, + + -- /!\ handle changes whenever the interior is refreshed /!\ + GetDoorHandle = function(doorHash) + local timeout = 4 + local doorHandle = GetClosestObjectOfType(FinanceOffice1.Safe.Position.x, FinanceOffice1.Safe.Position.y, FinanceOffice1.Safe.Position.z, 5.0, doorHash, false, false, false) + + while doorHandle == 0 do + Wait(25) + + doorHandle = GetClosestObjectOfType(FinanceOffice1.Safe.Position.x, FinanceOffice1.Safe.Position.y, FinanceOffice1.Safe.Position.z, 5.0, doorHash, false, false, false) + timeout = timeout - 1 + + if timeout <= 0 then + break + end + end + + return doorHandle + end + }, + Swag = { + Cash = { + A = "cash_set_01", + B = "cash_set_02", + C = "cash_set_03", + D = "cash_set_04", + E = "cash_set_05", + F = "cash_set_06", + G = "cash_set_07", + H = "cash_set_08", + I = "cash_set_09", + J = "cash_set_10", + K = "cash_set_11", + L = "cash_set_12", + M = "cash_set_13", + N = "cash_set_14", + O = "cash_set_15", + P = "cash_set_16", + Q = "cash_set_17", + R = "cash_set_18", + S = "cash_set_19", + T = "cash_set_20", + U = "cash_set_21", + V = "cash_set_22", + W = "cash_set_23", + X = "cash_set_24" + }, + BoozeCigs = { + A = "swag_booze_cigs", + B = "swag_booze_cigs2", + C = "swag_booze_cigs3" + }, + Counterfeit = { + A = "swag_counterfeit", + B = "swag_counterfeit2", + C = "swag_counterfeit3" + }, + DrugBags = { + A = "swag_drugbags", + B = "swag_drugbags2", + C = "swag_drugbags3" + }, + DrugStatue = { + A = "swag_drugstatue", + B = "swag_drugstatue2", + C = "swag_drugstatue3" + }, + Electronic = { + A = "swag_electronic", + B = "swag_electronic2", + C = "swag_electronic3" + }, + FurCoats = { + A = "swag_furcoats", + B = "swag_furcoats2", + C = "swag_furcoats3" + }, + Gems = { + A = "swag_gems", + B = "swag_gems2", + C = "swag_gems3" + }, + Guns = { + A = "swag_guns", + B = "swag_guns2", + C = "swag_guns3" + }, + Ivory = { + A = "swag_ivory", + B = "swag_ivory2", + C = "swag_ivory3" + }, + Jewel = { + A = "swag_jewelwatch", + B = "swag_jewelwatch2", + C = "swag_jewelwatch3" + }, + Med = { + A = "swag_med", + B = "swag_med2", + C = "swag_med3" + }, + Painting = { + A = "swag_art", + B = "swag_art2", + C = "swag_art3" + }, + Pills = { + A = "swag_pills", + B = "swag_pills2", + C = "swag_pills3" + }, + Silver = { + A = "swag_silver", + B = "swag_silver2", + C = "swag_silver3" + }, + + Enable = function(details, state, refresh) + SetIplPropState(FinanceOffice1.currentInteriorId, details, state, refresh) + end + }, + Chairs = { + off = "", + on = "office_chairs", + + Set = function(chairs, refresh) + FinanceOffice1.Chairs.Clear(false) + + if chairs ~= nil then + SetIplPropState(FinanceOffice1.currentInteriorId, chairs, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice1.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice1.currentInteriorId, FinanceOffice1.Chairs.on, false, refresh) + end + }, + Booze = { + off = "", + on = "office_booze", + + Set = function(booze, refresh) + FinanceOffice1.Booze.Clear(false) + + if booze ~= nil then + SetIplPropState(FinanceOffice1.currentInteriorId, booze, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice1.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice1.currentInteriorId, FinanceOffice1.Booze.on, false, refresh) + end + }, + + LoadDefault = function() + FinanceOffice1.Style.Set(FinanceOffice1.Style.Theme.polished) + FinanceOffice1.Chairs.Set(FinanceOffice1.Chairs.on, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_finance/office2.lua b/resources/[housing]/bob74_ipl/dlc_finance/office2.lua new file mode 100644 index 000000000..608a789ae --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_finance/office2.lua @@ -0,0 +1,324 @@ +-- Office 2: -75.8466, -826.9893, 243.3859 (Maze Bank Building) +exports('GetFinanceOffice2Object', function() + return FinanceOffice2 +end) + +FinanceOffice2 = { + currentInteriorId = -1, + currentSafeDoors = { + hashL = "", + hashR = "" + }, + + Style = { + Theme = { + warm = { + interiorId = 238593, + ipl = "ex_dt1_11_office_01a", + safe = "ex_prop_safedoor_office1a" + }, + classical = { + interiorId = 238849, + ipl = "ex_dt1_11_office_01b", + safe = "ex_prop_safedoor_office1b" + }, + vintage = { + interiorId = 239105, + ipl = "ex_dt1_11_office_01c", + safe = "ex_prop_safedoor_office1c" + }, + contrast = { + interiorId = 239361, + ipl = "ex_dt1_11_office_02a", + safe = "ex_prop_safedoor_office2a" + }, + rich = { + interiorId = 239617, + ipl = "ex_dt1_11_office_02b", + safe = "ex_prop_safedoor_office2a" + }, + cool = { + interiorId = 239873, + ipl = "ex_dt1_11_office_02c", + safe = "ex_prop_safedoor_office2a" + }, + ice = { + interiorId = 240129, + ipl = "ex_dt1_11_office_03a", + safe = "ex_prop_safedoor_office3a" + }, + conservative = { + interiorId = 240385, + ipl = "ex_dt1_11_office_03b", + safe = "ex_prop_safedoor_office3a" + }, + polished = { + interiorId = 240641, + ipl = "ex_dt1_11_office_03c", + safe = "ex_prop_safedoor_office3c" + } + }, + Set = function(style, refresh) + if refresh == nil then + refresh = false + end + + if type(style) == "table" then + FinanceOffice2.Style.Clear() + FinanceOffice2.currentInteriorId = style.interiorId + FinanceOffice2.currentSafeDoors = { + hashL = GetHashKey(style.safe .. "_l"), + hashR = GetHashKey(style.safe .. "_r") + } + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for themeKey, themeValue in pairs(FinanceOffice2.Style.Theme) do + for swagKey, swagValue in pairs(FinanceOffice2.Swag) do + if type(swagValue) == "table" then + SetIplPropState(themeValue.interiorId, { + swagValue.A, + swagValue.B, + swagValue.C + }, false) + end + end + + SetIplPropState(themeValue.interiorId, "office_chairs", false, false) + SetIplPropState(themeValue.interiorId, "office_booze", false, true) + + FinanceOffice2.currentSafeDoors = { + hashL = 0, + hashR = 0 + } + + EnableIpl(themeValue.ipl, false) + end + end + }, + Safe = { + doorHeadingL = 250.0, -- Only need the heading of the Left door to get the Right ones + Position = vector3(-82.593, -801.0, 243.385), -- Approximately between the two doors + -- These values are checked from "doorHandler.lua" and + isLeftDoorOpen = false, + isRightDoorOpen = false, + + -- Safe door API + Open = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice2.Safe.isLeftDoorOpen = true + elseif doorSide:lower() == "right" then + FinanceOffice2.Safe.isRightDoorOpen = true + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + Close = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice2.Safe.isLeftDoorOpen = false + elseif doorSide:lower() == "right" then + FinanceOffice2.Safe.isRightDoorOpen = false + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + + -- Internal use only + SetDoorState = function(doorSide, open) + local doorHandle = 0 + local heading = FinanceOffice2.Safe.doorHeadingL + + if doorSide:lower() == "left" then + doorHandle = FinanceOffice2.Safe.GetDoorHandle(FinanceOffice2.currentSafeDoors.hashL) + + if open then + heading = heading - 90.0 + end + elseif doorSide:lower() == "right" then + doorHandle = FinanceOffice2.Safe.GetDoorHandle(FinanceOffice2.currentSafeDoors.hashR) + heading = heading - 180 + + if open then + heading = heading + 90.0 + end + end + + if doorHandle == 0 then + print("[bob74_ipl] Warning: " .. doorSide .. " safe door handle is 0") + return + end + + SetEntityHeading(doorHandle, heading) + end, + + -- /!\ handle changes whenever the interior is refreshed /!\ + GetDoorHandle = function(doorHash) + local timeout = 4 + local doorHandle = GetClosestObjectOfType(FinanceOffice2.Safe.Position.x, FinanceOffice2.Safe.Position.y, FinanceOffice2.Safe.Position.z, 5.0, doorHash, false, false, false) + + while doorHandle == 0 do + Wait(25) + + doorHandle = GetClosestObjectOfType(FinanceOffice2.Safe.Position.x, FinanceOffice2.Safe.Position.y, FinanceOffice2.Safe.Position.z, 5.0, doorHash, false, false, false) + timeout = timeout - 1 + + if timeout <= 0 then + break + end + end + + return doorHandle + end + }, + Swag = { + Cash = { + A = "cash_set_01", + B = "cash_set_02", + C = "cash_set_03", + D = "cash_set_04", + E = "cash_set_05", + F = "cash_set_06", + G = "cash_set_07", + H = "cash_set_08", + I = "cash_set_09", + J = "cash_set_10", + K = "cash_set_11", + L = "cash_set_12", + M = "cash_set_13", + N = "cash_set_14", + O = "cash_set_15", + P = "cash_set_16", + Q = "cash_set_17", + R = "cash_set_18", + S = "cash_set_19", + T = "cash_set_20", + U = "cash_set_21", + V = "cash_set_22", + W = "cash_set_23", + X = "cash_set_24" + }, + BoozeCigs = { + A = "swag_booze_cigs", + B = "swag_booze_cigs2", + C = "swag_booze_cigs3" + }, + Counterfeit = { + A = "swag_counterfeit", + B = "swag_counterfeit2", + C = "swag_counterfeit3" + }, + DrugBags = { + A = "swag_drugbags", + B = "swag_drugbags2", + C = "swag_drugbags3" + }, + DrugStatue = { + A = "swag_drugstatue", + B = "swag_drugstatue2", + C = "swag_drugstatue3" + }, + Electronic = { + A = "swag_electronic", + B = "swag_electronic2", + C = "swag_electronic3" + }, + FurCoats = { + A = "swag_furcoats", + B = "swag_furcoats2", + C = "swag_furcoats3" + }, + Gems = { + A = "swag_gems", + B = "swag_gems2", + C = "swag_gems3" + }, + Guns = { + A = "swag_guns", + B = "swag_guns2", + C = "swag_guns3" + }, + Ivory = { + A = "swag_ivory", + B = "swag_ivory2", + C = "swag_ivory3" + }, + Jewel = { + A = "swag_jewelwatch", + B = "swag_jewelwatch2", + C = "swag_jewelwatch3" + }, + Med = { + A = "swag_med", + B = "swag_med2", + C = "swag_med3" + }, + Painting = { + A = "swag_art", + B = "swag_art2", + C = "swag_art3" + }, + Pills = { + A = "swag_pills", + B = "swag_pills2", + C = "swag_pills3" + }, + Silver = { + A = "swag_silver", + B = "swag_silver2", + C = "swag_silver3" + }, + + Enable = function(details, state, refresh) + SetIplPropState(FinanceOffice2.currentInteriorId, details, state, refresh) + end + }, + Chairs = { + off = "", + on = "office_chairs", + + Set = function(chairs, refresh) + FinanceOffice2.Chairs.Clear(false) + + if chairs ~= nil then + SetIplPropState(FinanceOffice2.currentInteriorId, chairs, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice2.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice2.currentInteriorId, FinanceOffice2.Chairs.on, false, refresh) + end + }, + Booze = { + off = "", + on = "office_booze", + + Set = function(booze, refresh) + FinanceOffice2.Booze.Clear(false) + + if booze ~= nil then + SetIplPropState(FinanceOffice2.currentInteriorId, booze, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice2.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice2.currentInteriorId, FinanceOffice2.Booze.on, false, refresh) + end + }, + + LoadDefault = function() + FinanceOffice2.Style.Set(FinanceOffice2.Style.Theme.warm) + FinanceOffice2.Chairs.Set(FinanceOffice2.Chairs.on, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_finance/office3.lua b/resources/[housing]/bob74_ipl/dlc_finance/office3.lua new file mode 100644 index 000000000..e20970316 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_finance/office3.lua @@ -0,0 +1,324 @@ +-- Office 3: -1579.756, -565.0661, 108.523 (Lom Bank) +exports('GetFinanceOffice3Object', function() + return FinanceOffice3 +end) + +FinanceOffice3 = { + currentInteriorId = -1, + currentSafeDoors = { + hashL = "", + hashR = "" + }, + + Style = { + Theme = { + warm = { + interiorId = 240897, + ipl = "ex_sm_13_office_01a", + safe = "ex_prop_safedoor_office1a" + }, + classical = { + interiorId = 241153, + ipl = "ex_sm_13_office_01b", + safe = "ex_prop_safedoor_office1b" + }, + vintage = { + interiorId = 241409, + ipl = "ex_sm_13_office_01c", + safe = "ex_prop_safedoor_office1c" + }, + contrast = { + interiorId = 241665, + ipl = "ex_sm_13_office_02a", + safe = "ex_prop_safedoor_office2a" + }, + rich = { + interiorId = 241921, + ipl = "ex_sm_13_office_02b", + safe = "ex_prop_safedoor_office2a" + }, + cool = { + interiorId = 242177, + ipl = "ex_sm_13_office_02c", + safe = "ex_prop_safedoor_office2a" + }, + ice = { + interiorId = 242433, + ipl = "ex_sm_13_office_03a", + safe = "ex_prop_safedoor_office3a" + }, + conservative = { + interiorId = 242689, + ipl = "ex_sm_13_office_03b", + safe = "ex_prop_safedoor_office3a" + }, + polished = { + interiorId = 242945, + ipl = "ex_sm_13_office_03c", + safe = "ex_prop_safedoor_office3c" + } + }, + Set = function(style, refresh) + if refresh == nil then + refresh = false + end + + if type(style) == "table" then + FinanceOffice3.Style.Clear() + FinanceOffice3.currentInteriorId = style.interiorId + FinanceOffice3.currentSafeDoors = { + hashL = GetHashKey(style.safe .. "_l"), + hashR = GetHashKey(style.safe .. "_r") + } + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for themeKey, themeValue in pairs(FinanceOffice3.Style.Theme) do + for swagKey, swagValue in pairs(FinanceOffice3.Swag) do + if type(swagValue) == "table" then + SetIplPropState(themeValue.interiorId, { + swagValue.A, + swagValue.B, + swagValue.C + }, false) + end + end + + SetIplPropState(themeValue.interiorId, "office_chairs", false, false) + SetIplPropState(themeValue.interiorId, "office_booze", false, true) + + FinanceOffice3.currentSafeDoors = { + hashL = 0, + hashR = 0 + } + + EnableIpl(themeValue.ipl, false) + end + end + }, + Safe = { + doorHeadingL = 126.0, -- Only need the heading of the Left door to get the Right ones + Position = vector3(-1554.08, -573.7122, 108.5272), -- Approximately between the two doors + -- These values are checked from "doorHandler.lua" and + isLeftDoorOpen = false, + isRightDoorOpen = false, + + -- Safe door API + Open = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice3.Safe.isLeftDoorOpen = true + elseif doorSide:lower() == "right" then + FinanceOffice3.Safe.isRightDoorOpen = true + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + Close = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice3.Safe.isLeftDoorOpen = false + elseif doorSide:lower() == "right" then + FinanceOffice3.Safe.isRightDoorOpen = false + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + + -- Internal use only + SetDoorState = function(doorSide, open) + local doorHandle = 0 + local heading = FinanceOffice3.Safe.doorHeadingL + + if doorSide:lower() == "left" then + doorHandle = FinanceOffice3.Safe.GetDoorHandle(FinanceOffice3.currentSafeDoors.hashL) + + if open then + heading = heading - 90.0 + end + elseif doorSide:lower() == "right" then + doorHandle = FinanceOffice3.Safe.GetDoorHandle(FinanceOffice3.currentSafeDoors.hashR) + heading = heading - 180 + + if open then + heading = heading + 90.0 + end + end + + if doorHandle == 0 then + print("[bob74_ipl] Warning: " .. doorSide .. " safe door handle is 0") + return + end + + SetEntityHeading(doorHandle, heading) + end, + + -- /!\ handle changes whenever the interior is refreshed /!\ + GetDoorHandle = function(doorHash) + local timeout = 4 + local doorHandle = GetClosestObjectOfType(FinanceOffice3.Safe.Position.x, FinanceOffice3.Safe.Position.y, FinanceOffice3.Safe.Position.z, 5.0, doorHash, false, false, false) + + while doorHandle == 0 do + Wait(25) + + doorHandle = GetClosestObjectOfType(FinanceOffice3.Safe.Position.x, FinanceOffice3.Safe.Position.y, FinanceOffice3.Safe.Position.z, 5.0, doorHash, false, false, false) + timeout = timeout - 1 + + if timeout <= 0 then + break + end + end + + return doorHandle + end + }, + Swag = { + Cash = { + A = "cash_set_01", + B = "cash_set_02", + C = "cash_set_03", + D = "cash_set_04", + E = "cash_set_05", + F = "cash_set_06", + G = "cash_set_07", + H = "cash_set_08", + I = "cash_set_09", + J = "cash_set_10", + K = "cash_set_11", + L = "cash_set_12", + M = "cash_set_13", + N = "cash_set_14", + O = "cash_set_15", + P = "cash_set_16", + Q = "cash_set_17", + R = "cash_set_18", + S = "cash_set_19", + T = "cash_set_20", + U = "cash_set_21", + V = "cash_set_22", + W = "cash_set_23", + X = "cash_set_24" + }, + BoozeCigs = { + A = "swag_booze_cigs", + B = "swag_booze_cigs2", + C = "swag_booze_cigs3" + }, + Counterfeit = { + A = "swag_counterfeit", + B = "swag_counterfeit2", + C = "swag_counterfeit3" + }, + DrugBags = { + A = "swag_drugbags", + B = "swag_drugbags2", + C = "swag_drugbags3" + }, + DrugStatue = { + A = "swag_drugstatue", + B = "swag_drugstatue2", + C = "swag_drugstatue3" + }, + Electronic = { + A = "swag_electronic", + B = "swag_electronic2", + C = "swag_electronic3" + }, + FurCoats = { + A = "swag_furcoats", + B = "swag_furcoats2", + C = "swag_furcoats3" + }, + Gems = { + A = "swag_gems", + B = "swag_gems2", + C = "swag_gems3" + }, + Guns = { + A = "swag_guns", + B = "swag_guns2", + C = "swag_guns3" + }, + Ivory = { + A = "swag_ivory", + B = "swag_ivory2", + C = "swag_ivory3" + }, + Jewel = { + A = "swag_jewelwatch", + B = "swag_jewelwatch2", + C = "swag_jewelwatch3" + }, + Med = { + A = "swag_med", + B = "swag_med2", + C = "swag_med3" + }, + Painting = { + A = "swag_art", + B = "swag_art2", + C = "swag_art3" + }, + Pills = { + A = "swag_pills", + B = "swag_pills2", + C = "swag_pills3" + }, + Silver = { + A = "swag_silver", + B = "swag_silver2", + C = "swag_silver3" + }, + + Enable = function(details, state, refresh) + SetIplPropState(FinanceOffice3.currentInteriorId, details, state, refresh) + end + }, + Chairs = { + off = "", + on = "office_chairs", + + Set = function(chairs, refresh) + FinanceOffice3.Chairs.Clear(false) + + if chairs ~= nil then + SetIplPropState(FinanceOffice3.currentInteriorId, chairs, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice3.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice3.currentInteriorId, FinanceOffice3.Chairs.on, false, refresh) + end + }, + Booze = { + off = "", + on = "office_booze", + + Set = function(booze, refresh) + FinanceOffice3.Booze.Clear(false) + + if booze ~= nil then + SetIplPropState(FinanceOffice3.currentInteriorId, booze, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice3.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice3.currentInteriorId, FinanceOffice3.Booze.on, false, refresh) + end + }, + + LoadDefault = function() + FinanceOffice3.Style.Set(FinanceOffice3.Style.Theme.conservative) + FinanceOffice3.Chairs.Set(FinanceOffice3.Chairs.on, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_finance/office4.lua b/resources/[housing]/bob74_ipl/dlc_finance/office4.lua new file mode 100644 index 000000000..1c6fd8a45 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_finance/office4.lua @@ -0,0 +1,324 @@ +-- Office 4: -1392.667, -480.4736, 72.04217 (Maze Bank West) +exports('GetFinanceOffice4Object', function() + return FinanceOffice4 +end) + +FinanceOffice4 = { + currentInteriorId = -1, + currentSafeDoors = { + hashL = "", + hashR = "" + }, + + Style = { + Theme = { + warm = { + interiorId = 243201, + ipl = "ex_sm_15_office_01a", + safe = "ex_prop_safedoor_office1a" + }, + classical = { + interiorId = 243457, + ipl = "ex_sm_15_office_01b", + safe = "ex_prop_safedoor_office1b" + }, + vintage = { + interiorId = 243713, + ipl = "ex_sm_15_office_01c", + safe = "ex_prop_safedoor_office1c" + }, + contrast = { + interiorId = 243969, + ipl = "ex_sm_15_office_02a", + safe = "ex_prop_safedoor_office2a" + }, + rich = { + interiorId = 244225, + ipl = "ex_sm_15_office_02b", + safe = "ex_prop_safedoor_office2a" + }, + cool = { + interiorId = 244481, + ipl = "ex_sm_15_office_02c", + safe = "ex_prop_safedoor_office2a" + }, + ice = { + interiorId = 244737, + ipl = "ex_sm_15_office_03a", + safe = "ex_prop_safedoor_office3a" + }, + conservative = { + interiorId = 244993, + ipl = "ex_sm_15_office_03b", + safe = "ex_prop_safedoor_office3a" + }, + polished = { + interiorId = 245249, + ipl = "ex_sm_15_office_03c", + safe = "ex_prop_safedoor_office3c" + } + }, + Set = function(style, refresh) + if refresh == nil then + refresh = false + end + + if type(style) == "table" then + FinanceOffice4.Style.Clear() + FinanceOffice4.currentInteriorId = style.interiorId + FinanceOffice4.currentSafeDoors = { + hashL = GetHashKey(style.safe .. "_l"), + hashR = GetHashKey(style.safe .. "_r") + } + + EnableIpl(style.ipl, true) + + if refresh then + RefreshInterior(style.interiorId) + end + end + end, + Clear = function() + for themeKey, themeValue in pairs(FinanceOffice4.Style.Theme) do + for swagKey, swagValue in pairs(FinanceOffice4.Swag) do + if type(swagValue) == "table" then + SetIplPropState(themeValue.interiorId, { + swagValue.A, + swagValue.B, + swagValue.C + }, false) + end + end + + SetIplPropState(themeValue.interiorId, "office_chairs", false, false) + SetIplPropState(themeValue.interiorId, "office_booze", false, true) + + FinanceOffice4.currentSafeDoors = { + hashL = 0, + hashR = 0 + } + + EnableIpl(themeValue.ipl, false) + end + end + }, + Safe = { + doorHeadingL = 188.0, -- Only need the heading of the Left door to get the Right ones + Position = vector3(-1372.905, -462.08, 72.05), -- Approximately between the two doors + -- These values are checked from "doorHandler.lua" and + isLeftDoorOpen = false, + isRightDoorOpen = false, + + -- Safe door API + Open = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice4.Safe.isLeftDoorOpen = true + elseif doorSide:lower() == "right" then + FinanceOffice4.Safe.isRightDoorOpen = true + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + Close = function(doorSide) + if doorSide:lower() == "left" then + FinanceOffice4.Safe.isLeftDoorOpen = false + elseif doorSide:lower() == "right" then + FinanceOffice4.Safe.isRightDoorOpen = false + else + print("[bob74_ipl] Warning: " .. doorSide .. " is not a correct value. Valid values are: left right") + end + end, + + -- Internal use only + SetDoorState = function(doorSide, open) + local doorHandle = 0 + local heading = FinanceOffice4.Safe.doorHeadingL + + if doorSide:lower() == "left" then + doorHandle = FinanceOffice4.Safe.GetDoorHandle(FinanceOffice4.currentSafeDoors.hashL) + + if open then + heading = heading - 90.0 + end + elseif doorSide:lower() == "right" then + doorHandle = FinanceOffice4.Safe.GetDoorHandle(FinanceOffice4.currentSafeDoors.hashR) + heading = heading - 180 + + if open then + heading = heading + 90.0 + end + end + + if doorHandle == 0 then + print("[bob74_ipl] Warning: " .. doorSide .. " safe door handle is 0") + return + end + + SetEntityHeading(doorHandle, heading) + end, + + -- /!\ handle changes whenever the interior is refreshed /!\ + GetDoorHandle = function(doorHash) + local timeout = 4 + local doorHandle = GetClosestObjectOfType(FinanceOffice4.Safe.Position.x, FinanceOffice4.Safe.Position.y, FinanceOffice4.Safe.Position.z, 5.0, doorHash, false, false, false) + + while doorHandle == 0 do + Wait(25) + + doorHandle = GetClosestObjectOfType(FinanceOffice4.Safe.Position.x, FinanceOffice4.Safe.Position.y, FinanceOffice4.Safe.Position.z, 5.0, doorHash, false, false, false) + timeout = timeout - 1 + + if timeout <= 0 then + break + end + end + + return doorHandle + end + }, + Swag = { + Cash = { + A = "cash_set_01", + B = "cash_set_02", + C = "cash_set_03", + D = "cash_set_04", + E = "cash_set_05", + F = "cash_set_06", + G = "cash_set_07", + H = "cash_set_08", + I = "cash_set_09", + J = "cash_set_10", + K = "cash_set_11", + L = "cash_set_12", + M = "cash_set_13", + N = "cash_set_14", + O = "cash_set_15", + P = "cash_set_16", + Q = "cash_set_17", + R = "cash_set_18", + S = "cash_set_19", + T = "cash_set_20", + U = "cash_set_21", + V = "cash_set_22", + W = "cash_set_23", + X = "cash_set_24" + }, + BoozeCigs = { + A = "swag_booze_cigs", + B = "swag_booze_cigs2", + C = "swag_booze_cigs3" + }, + Counterfeit = { + A = "swag_counterfeit", + B = "swag_counterfeit2", + C = "swag_counterfeit3" + }, + DrugBags = { + A = "swag_drugbags", + B = "swag_drugbags2", + C = "swag_drugbags3" + }, + DrugStatue = { + A = "swag_drugstatue", + B = "swag_drugstatue2", + C = "swag_drugstatue3" + }, + Electronic = { + A = "swag_electronic", + B = "swag_electronic2", + C = "swag_electronic3" + }, + FurCoats = { + A = "swag_furcoats", + B = "swag_furcoats2", + C = "swag_furcoats3" + }, + Gems = { + A = "swag_gems", + B = "swag_gems2", + C = "swag_gems3" + }, + Guns = { + A = "swag_guns", + B = "swag_guns2", + C = "swag_guns3" + }, + Ivory = { + A = "swag_ivory", + B = "swag_ivory2", + C = "swag_ivory3" + }, + Jewel = { + A = "swag_jewelwatch", + B = "swag_jewelwatch2", + C = "swag_jewelwatch3" + }, + Med = { + A = "swag_med", + B = "swag_med2", + C = "swag_med3" + }, + Painting = { + A = "swag_art", + B = "swag_art2", + C = "swag_art3" + }, + Pills = { + A = "swag_pills", + B = "swag_pills2", + C = "swag_pills3" + }, + Silver = { + A = "swag_silver", + B = "swag_silver2", + C = "swag_silver3" + }, + + Enable = function(details, state, refresh) + SetIplPropState(FinanceOffice4.currentInteriorId, details, state, refresh) + end + }, + Chairs = { + off = "", + on = "office_chairs", + + Set = function(chairs, refresh) + FinanceOffice4.Chairs.Clear(false) + + if chairs ~= nil then + SetIplPropState(FinanceOffice4.currentInteriorId, chairs, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice4.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice4.currentInteriorId, FinanceOffice4.Chairs.on, false, refresh) + end + }, + Booze = { + off = "", + on = "office_booze", + + Set = function(booze, refresh) + FinanceOffice4.Booze.Clear(false) + + if booze ~= nil then + SetIplPropState(FinanceOffice4.currentInteriorId, booze, true, refresh) + else + if refresh then + RefreshInterior(FinanceOffice4.currentInteriorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FinanceOffice4.currentInteriorId, FinanceOffice4.Booze.on, false, refresh) + end + }, + + LoadDefault = function() + FinanceOffice4.Style.Set(FinanceOffice4.Style.Theme.cool) + FinanceOffice4.Chairs.Set(FinanceOffice4.Chairs.on, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_finance/organization.lua b/resources/[housing]/bob74_ipl/dlc_finance/organization.lua new file mode 100644 index 000000000..d4928d1d8 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_finance/organization.lua @@ -0,0 +1,162 @@ +exports('GetFinanceOrganizationObject', function() + return FinanceOrganization +end) + +AddEventHandler('onClientResourceStop', function(res) + if GetCurrentResourceName() ~= res then + return + end + + FinanceOrganization.Office.Clear() +end) + +FinanceOrganization = { + Name = { + Colors = { + black = 0, + gray = 1, + yellow = 2, + blue = 3, + orange = 5, + red = 6, + green = 7 + }, + Fonts = { + font1 = 0, + font2 = 1, + font3 = 2, + font4 = 3, + font5 = 4, + font6 = 5, + font7 = 6, + font8 = 7, + font9 = 8, + font10 = 9, + font11 = 10, + font12 = 11, + font13 = 12 + }, + Style = { + normal = 3, + light = 1 + }, + name = "", + style = 0, + color = 0, + font = 0, + + Set = function(name, style, color, font) + FinanceOrganization.Name.name = name + FinanceOrganization.Name.style = style + FinanceOrganization.Name.color = color + FinanceOrganization.Name.font = font + FinanceOrganization.Office.stage = 0 + end + }, + Office = { + needToLoad = false, + loaded = false, + target = "prop_ex_office_text", + prop = "ex_prop_ex_office_text", + renderId = -1, + movieId = -1, + stage = 0, + + Init = function() + DrawEmptyRect(FinanceOrganization.Office.target, FinanceOrganization.Office.prop) + end, + Enable = function(state) + FinanceOrganization.Office.needToLoad = state + end, + Clear = function() + if IsNamedRendertargetRegistered(FinanceOrganization.Office.target) then + ReleaseNamedRendertarget(GetHashKey(FinanceOrganization.Office.target)) + end + + if HasScaleformMovieFilenameLoaded(FinanceOrganization.Office.movieId) then + SetScaleformMovieAsNoLongerNeeded(FinanceOrganization.Office.movieId) + end + + FinanceOrganization.Office.renderId = -1 + FinanceOrganization.Office.movieId = -1 + FinanceOrganization.Office.stage = 0 + end + } +} + +CreateThread(function() + FinanceOrganization.Office.Init() + + while true do + if FinanceOrganization.Office.needToLoad then + -- Need to load + if Global.FinanceOffices.isInsideOffice1 or Global.FinanceOffices.isInsideOffice2 or Global.FinanceOffices.isInsideOffice3 or Global.FinanceOffices.isInsideOffice4 then + DrawOrganizationName(FinanceOrganization.Name.name, FinanceOrganization.Name.style, FinanceOrganization.Name.color, FinanceOrganization.Name.font) + + FinanceOrganization.Office.loaded = true + + Wait(0) -- We need to call all this every frame + else + Wait(1000) -- We are not inside an office + end + elseif FinanceOrganization.Office.loaded then + -- Loaded and need to unload + FinanceOrganization.Office.Clear() + FinanceOrganization.Office.loaded = false + + Wait(1000) -- We can wait longer when we don't need to display text + else + -- Not needed to load + Wait(1000) -- We can wait longer when we don't need to display text + end + end +end) + +function DrawOrganizationName(name, style, color, font) + if FinanceOrganization.Office.stage == 0 then + if FinanceOrganization.Office.renderId == -1 then + FinanceOrganization.Office.renderId = CreateNamedRenderTargetForModel(FinanceOrganization.Office.target, FinanceOrganization.Office.prop) + end + + if FinanceOrganization.Office.movieId == -1 then + FinanceOrganization.Office.movieId = RequestScaleformMovie("ORGANISATION_NAME") + end + + FinanceOrganization.Office.stage = 1 + elseif FinanceOrganization.Office.stage == 1 then + if HasScaleformMovieLoaded(FinanceOrganization.Office.movieId) then + local parameters = { + p0 = { + type = "string", + value = name + }, + p1 = { + type = "int", + value = style + }, + p2 = { + type = "int", + value = color + }, + p3 = { + type = "int", + value = font + } + } + + SetupScaleform(FinanceOrganization.Office.movieId, "SET_ORGANISATION_NAME", parameters) + + FinanceOrganization.Office.stage = 2 + else + FinanceOrganization.Office.movieId = RequestScaleformMovie("ORGANISATION_NAME") + end + elseif FinanceOrganization.Office.stage == 2 then + SetTextRenderId(FinanceOrganization.Office.renderId) + SetScriptGfxDrawOrder(4) + SetScriptGfxDrawBehindPausemenu(true) + SetScriptGfxAlign(73, 73) + DrawScaleformMovie(FinanceOrganization.Office.movieId, 0.196, 0.245, 0.46, 0.66, 255, 255, 255, 255, 0) + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + ResetScriptGfxAlign() + end +end diff --git a/resources/[housing]/bob74_ipl/dlc_gunrunning/bunkers.lua b/resources/[housing]/bob74_ipl/dlc_gunrunning/bunkers.lua new file mode 100644 index 000000000..c68866e48 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_gunrunning/bunkers.lua @@ -0,0 +1,155 @@ +exports('GetGunrunningBunkerObject', function() + return GunrunningBunker +end) + +GunrunningBunker = { + interiorId = 258561, + + Ipl = { + Interior = { + ipl = "gr_grdlc_interior_placement_interior_1_grdlc_int_02_milo_", + + -- Load interiors IPLs. + Load = function() + EnableIpl(GunrunningBunker.Ipl.Interior.ipl, true) + end, + -- Remove interiors IPLs. + Remove = function() + EnableIpl(GunrunningBunker.Ipl.Interior.ipl, false) + end + }, + Exterior = { + ipl = { + "gr_case0_bunkerclosed", -- Desert: 848.6175, 2996.567, 45.81612 + "gr_case1_bunkerclosed",-- SmokeTree: 2126.785, 3335.04, 48.21422 + "gr_case2_bunkerclosed", -- Scrapyard: 2493.654, 3140.399, 51.28789 + "gr_case3_bunkerclosed", -- Oilfields: 481.0465, 2995.135, 43.96672 + "gr_case4_bunkerclosed", -- RatonCanyon: -391.3216, 4363.728, 58.65862 + "gr_case5_bunkerclosed", -- Grapeseed: 1823.961, 4708.14, 42.4991 + "gr_case6_bunkerclosed", -- Farmhouse: 1570.372, 2254.549, 78.89397 + "gr_case7_bunkerclosed", -- Paletto: -783.0755, 5934.686, 24.31475 + "gr_case9_bunkerclosed", -- Route68: 24.43542, 2959.705, 58.35517 + "gr_case10_bunkerclosed", -- Zancudo: -3058.714, 3329.19, 12.5844 + "gr_case11_bunkerclosed" -- Great Ocean Highway: -3180.466, 1374.192, 19.9597 + }, + + -- Load exteriors IPLs. + Load = function() + EnableIpl(GunrunningBunker.Ipl.Exterior.ipl, true) + end, + -- Remove exteriors IPLs. + Remove = function() + EnableIpl(GunrunningBunker.Ipl.Exterior.ipl, false) + end + } + }, + Style = { + default = "Bunker_Style_A", + blue = "Bunker_Style_B", + yellow = "Bunker_Style_C", + + -- Set the style (color) of the bunker. + -- style: Wall color (values: GunrunningBunker.Style.default / GunrunningBunker.Style.blue / GunrunningBunker.Style.yellow) + -- refresh: Reload the whole interior (values: true / false) + Set = function(style, refresh) + GunrunningBunker.Style.Clear(false) + + SetIplPropState(GunrunningBunker.interiorId, style, true, refresh) + end, + -- Removes the style. + -- refresh: Reload the whole interior (values: true / false) + Clear = function(refresh) + SetIplPropState(GunrunningBunker.interiorId, { + GunrunningBunker.Style.default, + GunrunningBunker.Style.blue, + GunrunningBunker.Style.yellow + }, false, refresh) + end + }, + Tier = { + default = "standard_bunker_set", + upgrade = "upgrade_bunker_set", + + -- Set the tier (quality) of the bunker. + -- tier: Upgrade state (values: GunrunningBunker.Tier.default / GunrunningBunker.Tier.upgrade) + -- refresh: Reload the whole interior (values: true / false) + Set = function(tier, refresh) + GunrunningBunker.Tier.Clear(false) + + SetIplPropState(GunrunningBunker.interiorId, tier, true, refresh) + end, + -- Removes the tier. + -- refresh: Reload the whole interior (values: true / false) + Clear = function(refresh) + SetIplPropState(GunrunningBunker.interiorId, { + GunrunningBunker.Tier.default, + GunrunningBunker.Tier.upgrade + }, false, refresh) + end + }, + Security = { + noEntryGate = "", + default = "standard_security_set", + upgrade = "security_upgrade", + + -- Set the security stage of the bunker. + -- security: Upgrade state (values: GunrunningBunker.Security.default / GunrunningBunker.Security.upgrade) + -- refresh: Reload the whole interior (values: true / false) + Set = function(security, refresh) + GunrunningBunker.Security.Clear(false) + + if security ~= "" then + SetIplPropState(GunrunningBunker.interiorId, security, true, refresh) + else + if refresh then + RefreshInterior(GunrunningBunker.interiorId) + end + end + end, + -- Removes the security. + -- refresh: Reload the whole interior (values: true / false) + Clear = function(refresh) + SetIplPropState(GunrunningBunker.interiorId, { + GunrunningBunker.Security.default, + GunrunningBunker.Security.upgrade + }, false, refresh) + end + }, + Details = { + office = "Office_Upgrade_set", -- Office interior + officeLocked = "Office_blocker_set", -- Metal door blocking access to the office + locker = "gun_locker_upgrade", -- Locker next to the office door + rangeLights = "gun_range_lights", -- Lights next to the shooting range + rangeWall = "gun_wall_blocker", -- Wall blocking access to the shooting range + rangeLocked = "gun_range_blocker_set", -- Metal door blocking access to the shooting range + schematics = "Gun_schematic_set", -- Gun schematic on the table and whiteboard + + -- Enable or disable a detail. + -- details: Prop to enable or disable (values: GunrunningBunker.Details.office / GunrunningBunker.Details.officeLocked / GunrunningBunker.Details.locker...) + -- state: Enable or Disable (values: true / false) + -- refresh: Reload the whole interior (values: true / false) + Enable = function(details, state, refresh) + SetIplPropState(GunrunningBunker.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GunrunningBunker.Ipl.Interior.Load() + GunrunningBunker.Ipl.Exterior.Load() + + GunrunningBunker.Style.Set(GunrunningBunker.Style.default) + GunrunningBunker.Tier.Set(GunrunningBunker.Tier.default) + GunrunningBunker.Security.Set(GunrunningBunker.Security.default) + + GunrunningBunker.Details.Enable(GunrunningBunker.Details.office, true) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.officeLocked, false) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.locker, true) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.rangeLights, true) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.rangeWall, false) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.rangeLocked, false) + GunrunningBunker.Details.Enable(GunrunningBunker.Details.schematics, false) + + -- Must be called in order to spawn or remove the props + RefreshInterior(GunrunningBunker.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_gunrunning/yacht.lua b/resources/[housing]/bob74_ipl/dlc_gunrunning/yacht.lua new file mode 100644 index 000000000..c45a02876 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_gunrunning/yacht.lua @@ -0,0 +1,57 @@ +-- Gunrunning Yacht: -1363.724, 6734.108, 2.44598 +exports('GetGunrunningYachtObject', function() + return GunrunningYacht +end) + +GunrunningYacht = { + ipl = { + "gr_heist_yacht2", + "gr_heist_yacht2_bar", + "gr_heist_yacht2_bar_lod", + "gr_heist_yacht2_bedrm", + "gr_heist_yacht2_bedrm_lod", + "gr_heist_yacht2_bridge", + "gr_heist_yacht2_bridge_lod", + "gr_heist_yacht2_enginrm", + "gr_heist_yacht2_enginrm_lod", + "gr_heist_yacht2_lod", + "gr_heist_yacht2_lounge", + "gr_heist_yacht2_lounge_lod", + "gr_heist_yacht2_slod", + }, + + Enable = function(state) + EnableIpl(GunrunningYacht.ipl, state) + end, + Water = { + modelHash = `apa_mp_apa_yacht_jacuzzi_ripple1`, + + Enable = function(state) + local handle = GetClosestObjectOfType(-1369.0, 6736.0, 5.40, 5.0, GunrunningYacht.Water.modelHash, false, false, false) + + if state then + -- Enable + if handle == 0 then + RequestModel(GunrunningYacht.Water.modelHash) + while not HasModelLoaded(GunrunningYacht.Water.modelHash) do + Wait(0) + end + + local water = CreateObjectNoOffset(GunrunningYacht.Water.modelHash, -1369.0, 6736.0, 5.40, false, false, false) + + SetEntityAsMissionEntity(water, false, false) + end + else + -- Disable + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end + }, + + LoadDefault = function() + GunrunningYacht.Enable(true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_heists/carrier.lua b/resources/[housing]/bob74_ipl/dlc_heists/carrier.lua new file mode 100644 index 000000000..22326acfc --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_heists/carrier.lua @@ -0,0 +1,28 @@ +-- Heist Carrier: 3082.3117 -4717.1191 15.2622 +exports('GetHeistCarrierObject', function() + return HeistCarrier +end) + +HeistCarrier = { + ipl = { + "hei_carrier", + "hei_carrier_int1", + "hei_carrier_int1_lod", + "hei_carrier_int2", + "hei_carrier_int2_lod", + "hei_carrier_int3", + "hei_carrier_int3_lod", + "hei_carrier_int4", + "hei_carrier_int4_lod", + "hei_carrier_int5", + "hei_carrier_int5_lod", + "hei_carrier_int6", + "hei_carrier_int6_lod", + "hei_carrier_lod", + "hei_carrier_slod" + }, + + Enable = function(state) + EnableIpl(HeistCarrier.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_heists/yacht.lua b/resources/[housing]/bob74_ipl/dlc_heists/yacht.lua new file mode 100644 index 000000000..fc7f42cdf --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_heists/yacht.lua @@ -0,0 +1,57 @@ +-- Heist Yatch: -2043.974,-1031.582, 11.981 +exports('GetHeistYachtObject', function() + return HeistYacht +end) + +HeistYacht = { + ipl = { + "hei_yacht_heist", + "hei_yacht_heist_bar", + "hei_yacht_heist_bar_lod", + "hei_yacht_heist_bedrm", + "hei_yacht_heist_bedrm_lod", + "hei_yacht_heist_bridge", + "hei_yacht_heist_bridge_lod", + "hei_yacht_heist_enginrm", + "hei_yacht_heist_enginrm_lod", + "hei_yacht_heist_lod", + "hei_yacht_heist_lounge", + "hei_yacht_heist_lounge_lod", + "hei_yacht_heist_slod" + }, + + Enable = function(state) + EnableIpl(HeistYacht.ipl, state) + end, + Water = { + modelHash = `apa_mp_apa_yacht_jacuzzi_ripple1`, + + Enable = function(state) + local handle = GetClosestObjectOfType(-2023.773, -1038.0, 5.40, 5.0, HeistYacht.Water.modelHash, false, false, false) + + if state then + -- Enable + if handle == 0 then + RequestModel(HeistYacht.Water.modelHash) + while not HasModelLoaded(HeistYacht.Water.modelHash) do + Wait(0) + end + + local water = CreateObjectNoOffset(HeistYacht.Water.modelHash, -2023.773, -1038.0, 5.40, false, false, false) + + SetEntityAsMissionEntity(water, false, false) + end + else + -- Disable + if handle ~= 0 then + SetEntityAsMissionEntity(handle, false, false) + DeleteEntity(handle) + end + end + end + }, + + LoadDefault = function() + HeistYacht.Enable(true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment1.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment1.lua new file mode 100644 index 000000000..84a3b423b --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment1.lua @@ -0,0 +1,69 @@ +-- Apartment 1: -1462.28100000, -539.62760000, 72.44434000 +exports('GetHLApartment1Object', function() + return HLApartment1 +end) + +HLApartment1 = { + interiorId = 145921, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo_", + + Load = function() + EnableIpl(HLApartment1.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment1.Ipl.Interior.ipl, false) + end + } + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment1.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment1.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment1.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment1.Ipl.Interior.Load() + HLApartment1.Strip.Enable({ + HLApartment1.Strip.A, + HLApartment1.Strip.B, + HLApartment1.Strip.C + }, false) + HLApartment1.Booze.Enable({ + HLApartment1.Booze.A, + HLApartment1.Booze.B, + HLApartment1.Booze.C + }, false) + HLApartment1.Smoke.Enable({ + HLApartment1.Smoke.A, + HLApartment1.Smoke.B, + HLApartment1.Smoke.C + }, false) + + RefreshInterior(HLApartment1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment2.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment2.lua new file mode 100644 index 000000000..d92e1ce5d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment2.lua @@ -0,0 +1,69 @@ +-- Apartment 2: -914.90260000, -374.87310000, 112.6748 +exports('GetHLApartment2Object', function() + return HLApartment2 +end) + +HLApartment2 = { + interiorId = 146177, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__1", + + Load = function() + EnableIpl(HLApartment2.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment2.Ipl.Interior.ipl, false) + end + }, + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment2.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment2.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment2.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment2.Ipl.Interior.Load() + HLApartment2.Strip.Enable({ + HLApartment2.Strip.A, + HLApartment2.Strip.B, + HLApartment2.Strip.C + }, false) + HLApartment2.Booze.Enable({ + HLApartment2.Booze.A, + HLApartment2.Booze.B, + HLApartment2.Booze.C + }, false) + HLApartment2.Smoke.Enable({ + HLApartment2.Smoke.A, + HLApartment2.Smoke.B, + HLApartment2.Smoke.C + }, false) + + RefreshInterior(HLApartment2.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment3.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment3.lua new file mode 100644 index 000000000..533ffe48e --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment3.lua @@ -0,0 +1,69 @@ +-- Apartment 3: -609.56690000, 51.28212000, 96.60023000 +exports('GetHLApartment3Object', function() + return HLApartment3 +end) + +HLApartment3 = { + interiorId = 146689, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__2", + + Load = function() + EnableIpl(HLApartment3.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment3.Ipl.Interior.ipl, false) + end + } + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment3.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment3.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment3.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment3.Ipl.Interior.Load() + HLApartment3.Strip.Enable({ + HLApartment3.Strip.A, + HLApartment3.Strip.B, + HLApartment3.Strip.C + }, false) + HLApartment3.Booze.Enable({ + HLApartment3.Booze.A, + HLApartment3.Booze.B, + HLApartment3.Booze.C + }, false) + HLApartment3.Smoke.Enable({ + HLApartment3.Smoke.A, + HLApartment3.Smoke.B, + HLApartment3.Smoke.C + }, false) + + RefreshInterior(HLApartment3.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment4.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment4.lua new file mode 100644 index 000000000..cc449785d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment4.lua @@ -0,0 +1,69 @@ +-- Apartment 4: -778.50610000, 331.31600000, 210.39720 +exports('GetHLApartment4Object', function() + return HLApartment4 +end) + +HLApartment4 = { + interiorId = 146945, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__3", + + Load = function() + EnableIpl(HLApartment4.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment4.Ipl.Interior.ipl, false) + end + }, + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment4.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment4.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment4.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment4.Ipl.Interior.Load() + HLApartment4.Strip.Enable({ + HLApartment4.Strip.A, + HLApartment4.Strip.B, + HLApartment4.Strip.C + }, false) + HLApartment4.Booze.Enable({ + HLApartment4.Booze.A, + HLApartment4.Booze.B, + HLApartment4.Booze.C + }, false) + HLApartment4.Smoke.Enable({ + HLApartment4.Smoke.A, + HLApartment4.Smoke.B, + HLApartment4.Smoke.C + }, false) + + RefreshInterior(HLApartment4.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment5.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment5.lua new file mode 100644 index 000000000..fa690a4b8 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment5.lua @@ -0,0 +1,69 @@ +-- Apartment 5: -22.61353000, -590.14320000, 78.430910 +exports('GetHLApartment5Object', function() + return HLApartment5 +end) + +HLApartment5 = { + interiorId = 147201, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__4", + + Load = function() + EnableIpl(HLApartment5.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment5.Ipl.Interior.ipl, false) + end + }, + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment5.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment5.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment5.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment5.Ipl.Interior.Load() + HLApartment5.Strip.Enable({ + HLApartment5.Strip.A, + HLApartment5.Strip.B, + HLApartment5.Strip.C + }, false) + HLApartment5.Booze.Enable({ + HLApartment5.Booze.A, + HLApartment5.Booze.B, + HLApartment5.Booze.C + }, false) + HLApartment5.Smoke.Enable({ + HLApartment5.Smoke.A, + HLApartment5.Smoke.B, + HLApartment5.Smoke.C + }, false) + + RefreshInterior(HLApartment5.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_high_life/apartment6.lua b/resources/[housing]/bob74_ipl/dlc_high_life/apartment6.lua new file mode 100644 index 000000000..9058416b4 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_high_life/apartment6.lua @@ -0,0 +1,69 @@ +-- Apartment 6: -609.56690000, 51.28212000, -183.98080 +exports('GetHLApartment6Object', function() + return HLApartment6 +end) + +HLApartment6 = { + interiorId = 147457, + + Ipl = { + Interior = { + ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__5", + + Load = function() + EnableIpl(HLApartment6.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(HLApartment6.Ipl.Interior.ipl, false) + end + } + }, + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment6.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment6.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(HLApartment6.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + HLApartment6.Ipl.Interior.Load() + HLApartment6.Strip.Enable({ + HLApartment6.Strip.A, + HLApartment6.Strip.B, + HLApartment6.Strip.C + }, false) + HLApartment6.Booze.Enable({ + HLApartment6.Booze.A, + HLApartment6.Booze.B, + HLApartment6.Booze.C + }, false) + HLApartment6.Smoke.Enable({ + HLApartment6.Smoke.A, + HLApartment6.Smoke.B, + HLApartment6.Smoke.C + }, false) + + RefreshInterior(HLApartment6.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_import/garage1.lua b/resources/[housing]/bob74_ipl/dlc_import/garage1.lua new file mode 100644 index 000000000..ff9eceb30 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_import/garage1.lua @@ -0,0 +1,202 @@ +-- Garage 1: Arcadius Business Centre +exports('GetImportCEOGarage1Object', function() + return ImportCEOGarage1 +end) + +ImportCEOGarage1 = { + Part = { + Garage1 = { -- -191.0133, -579.1428, 135.0000 + interiorId = 253441, + ipl = "imp_dt1_02_cargarage_a" + }, + Garage2 = { -- -117.4989, -568.1132, 135.0000 + interiorId = 253697, + ipl = "imp_dt1_02_cargarage_b" + }, + Garage3 = { -- -136.0780, -630.1852, 135.0000 + interiorId = 253953, + ipl = "imp_dt1_02_cargarage_c" + }, + ModShop = { -- -146.6166, -596.6301, 166.0000 + interiorId = 254209, + ipl = "imp_dt1_02_modgarage" + }, + + Load = function(part) + EnableIpl(part.ipl, true) + end, + Remove = function(part) + EnableIpl(part.ipl, false) + end, + Clear = function() + EnableIpl({ + ImportCEOGarage1.Part.Garage1.ipl, + ImportCEOGarage1.Part.Garage2.ipl, + ImportCEOGarage1.Part.Garage3.ipl + }, false) + end, + }, + Style = { + concrete = "garage_decor_01", + plain = "garage_decor_02", + marble = "garage_decor_03", + wooden = "garage_decor_04", + + Set = function(part, style, refresh) + ImportCEOGarage1.Style.Clear(part) + + SetIplPropState(part.interiorId, style, true, refresh) + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage1.Style.concrete, + ImportCEOGarage1.Style.plain, + ImportCEOGarage1.Style.marble, + ImportCEOGarage1.Style.wooden + }, false, true) + end + }, + Numbering = { + none = "", + Level1 = { + style1 = "numbering_style01_n1", + style2 = "numbering_style02_n1", + style3 = "numbering_style03_n1", + style4 = "numbering_style04_n1", + style5 = "numbering_style05_n1", + style6 = "numbering_style06_n1", + style7 = "numbering_style07_n1", + style8 = "numbering_style08_n1", + style9 = "numbering_style09_n1" + }, + Level2 = { + style1 = "numbering_style01_n2", + style2 = "numbering_style02_n2", + style3 = "numbering_style03_n2", + style4 = "numbering_style04_n2", + style5 = "numbering_style05_n2", + style6 = "numbering_style06_n2", + style7 = "numbering_style07_n2", + style8 = "numbering_style08_n2", + style9 = "numbering_style09_n2" + }, + Level3 = { + style1 = "numbering_style01_n3", + style2 = "numbering_style02_n3", + style3 = "numbering_style03_n3", + style4 = "numbering_style04_n3", + style5 = "numbering_style05_n3", + style6 = "numbering_style06_n3", + style7 = "numbering_style07_n3", + style8 = "numbering_style08_n3", + style9 = "numbering_style09_n3" + }, + + Set = function(part, num, refresh) + ImportCEOGarage1.Numbering.Clear(part) + + if num ~= nil then + SetIplPropState(part.interiorId, num, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage1.Numbering.Level1, + ImportCEOGarage1.Numbering.Level2, + ImportCEOGarage1.Numbering.Level3 + }, false, true) + end + }, + Lighting = { + none = "", + style1 = "lighting_option01", + style2 = "lighting_option02", + style3 = "lighting_option03", + style4 = "lighting_option04", + style5 = "lighting_option05", + style6 = "lighting_option06", + style7 = "lighting_option07", + style8 = "lighting_option08", + style9 = "lighting_option09", + + Set = function(part, light, refresh) + ImportCEOGarage1.Lighting.Clear(part) + + if light ~= nil then + SetIplPropState(part.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage1.Lighting.style1, ImportCEOGarage1.Lighting.style2, ImportCEOGarage1.Lighting.style3, + ImportCEOGarage1.Lighting.style4, ImportCEOGarage1.Lighting.style5, ImportCEOGarage1.Lighting.style6, + ImportCEOGarage1.Lighting.style7, ImportCEOGarage1.Lighting.style8, ImportCEOGarage1.Lighting.style9 + }, false, true) + end + }, + ModShop = { + Floor = { + default = "", + city = "floor_vinyl_01", + seabed = "floor_vinyl_02", + aliens = "floor_vinyl_03", + clouds = "floor_vinyl_04", + money = "floor_vinyl_05", + zebra = "floor_vinyl_06", + blackWhite = "floor_vinyl_07", + barcode = "floor_vinyl_08", + paintbrushBW = "floor_vinyl_09", + grid = "floor_vinyl_10", + splashes = "floor_vinyl_11", + squares = "floor_vinyl_12", + mosaic = "floor_vinyl_13", + paintbrushColor = "floor_vinyl_14", + curvesColor = "floor_vinyl_15", + marbleBrown = "floor_vinyl_16", + marbleBlue = "floor_vinyl_17", + marbleBW = "floor_vinyl_18", + maze = "floor_vinyl_19", + + Set = function(floor, refresh) + ImportCEOGarage1.ModShop.Floor.Clear() + + if floor ~= nil then + SetIplPropState(ImportCEOGarage1.Part.ModShop.interiorId, floor, true, refresh) + else + if refresh then + RefreshInterior(ImportCEOGarage1.Part.ModShop.interiorId) + end + end + end, + Clear = function() + SetIplPropState(ImportCEOGarage1.Part.ModShop.interiorId, { + ImportCEOGarage1.ModShop.Floor.city, ImportCEOGarage1.ModShop.Floor.seabed, ImportCEOGarage1.ModShop.Floor.aliens, + ImportCEOGarage1.ModShop.Floor.clouds, ImportCEOGarage1.ModShop.Floor.money, ImportCEOGarage1.ModShop.Floor.zebra, + ImportCEOGarage1.ModShop.Floor.blackWhite, ImportCEOGarage1.ModShop.Floor.barcode, ImportCEOGarage1.ModShop.Floor.paintbrushBW, + ImportCEOGarage1.ModShop.Floor.grid, ImportCEOGarage1.ModShop.Floor.splashes, ImportCEOGarage1.ModShop.Floor.squares, + ImportCEOGarage1.ModShop.Floor.mosaic, ImportCEOGarage1.ModShop.Floor.paintbrushColor, ImportCEOGarage1.ModShop.Floor.curvesColor, + ImportCEOGarage1.ModShop.Floor.marbleBrown, ImportCEOGarage1.ModShop.Floor.marbleBlue, ImportCEOGarage1.ModShop.Floor.marbleBW, + ImportCEOGarage1.ModShop.Floor.maze + }, false, true) + end + } + }, + + LoadDefault = function() + ImportCEOGarage1.Part.Load(ImportCEOGarage1.Part.Garage1) + ImportCEOGarage1.Style.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Style.concrete) + ImportCEOGarage1.Numbering.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Numbering.Level1.style1) + ImportCEOGarage1.Lighting.Set(ImportCEOGarage1.Part.Garage1, ImportCEOGarage1.Lighting.style1, true) + + ImportCEOGarage1.Part.Load(ImportCEOGarage1.Part.ModShop) + ImportCEOGarage1.ModShop.Floor.Set(ImportCEOGarage1.ModShop.Floor.default, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_import/garage2.lua b/resources/[housing]/bob74_ipl/dlc_import/garage2.lua new file mode 100644 index 000000000..a58917aba --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_import/garage2.lua @@ -0,0 +1,201 @@ +-- Garage 2: Maze Bank Building +exports('GetImportCEOGarage2Object', function() + return ImportCEOGarage2 +end) + +ImportCEOGarage2 = { + Part = { + Garage1 = { -- -84.2193, -823.0851, 221.0000 + interiorId = 254465, + ipl = "imp_dt1_11_cargarage_a" + }, + Garage2 = { -- -69.8627, -824.7498, 221.0000 + interiorId = 254721, + ipl = "imp_dt1_11_cargarage_b" + }, + Garage3 = { -- -80.4318, -813.2536, 221.0000 + interiorId = 254977, + ipl = "imp_dt1_11_cargarage_c" + }, + ModShop = { -- -73.9039, -821.6204, 284.0000 + interiorId = 255233, + ipl = "imp_dt1_11_modgarage" + }, + + Load = function(part) + EnableIpl(part.ipl, true) + end, + Remove = function(part) + EnableIpl(part.ipl, false) + end, + Clear = function() + EnableIpl({ + ImportCEOGarage2.Part.Garage1.ipl, + ImportCEOGarage2.Part.Garage2.ipl, + ImportCEOGarage2.Part.Garage3.ipl + }, false) + end, + }, + Style = { + concrete = "garage_decor_01", + plain = "garage_decor_02", + marble = "garage_decor_03", + wooden = "garage_decor_04", + + Set = function(part, style, refresh) + ImportCEOGarage2.Style.Clear(part) + + SetIplPropState(part.interiorId, style, true, refresh) + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage2.Style.concrete, + ImportCEOGarage2.Style.plain, + ImportCEOGarage2.Style.marble, + ImportCEOGarage2.Style.wooden + }, false, true) + end + }, + Numbering = { + none = "", + Level1 = { + style1 = "numbering_style01_n1", + style2 = "numbering_style02_n1", + style3 = "numbering_style03_n1", + style4 = "numbering_style04_n1", + style5 = "numbering_style05_n1", + style6 = "numbering_style06_n1", + style7 = "numbering_style07_n1", + style8 = "numbering_style08_n1", + style9 = "numbering_style09_n1" + }, + Level2 = { + style1 = "numbering_style01_n2", + style2 = "numbering_style02_n2", + style3 = "numbering_style03_n2", + style4 = "numbering_style04_n2", + style5 = "numbering_style05_n2", + style6 = "numbering_style06_n2", + style7 = "numbering_style07_n2", + style8 = "numbering_style08_n2", + style9 = "numbering_style09_n2" + }, + Level3 = { + style1 = "numbering_style01_n3", + style2 = "numbering_style02_n3", + style3 = "numbering_style03_n3", + style4 = "numbering_style04_n3", + style5 = "numbering_style05_n3", + style6 = "numbering_style06_n3", + style7 = "numbering_style07_n3", + style8 = "numbering_style08_n3", + style9 = "numbering_style09_n3" + }, + Set = function(part, num, refresh) + ImportCEOGarage2.Numbering.Clear(part) + + if num ~= nil then + SetIplPropState(part.interiorId, num, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage2.Numbering.Level1, + ImportCEOGarage2.Numbering.Level2, + ImportCEOGarage2.Numbering.Level3 + }, false, true) + end + }, + Lighting = { + none = "", + style1 = "lighting_option01", + style2 = "lighting_option02", + style3 = "lighting_option03", + style4 = "lighting_option04", + style5 = "lighting_option05", + style6 = "lighting_option06", + style7 = "lighting_option07", + style8 = "lighting_option08", + style9 = "lighting_option09", + + Set = function(part, light, refresh) + ImportCEOGarage2.Lighting.Clear(part) + + if light ~= nil then + SetIplPropState(part.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage2.Lighting.style1, ImportCEOGarage2.Lighting.style2, ImportCEOGarage2.Lighting.style3, + ImportCEOGarage2.Lighting.style4, ImportCEOGarage2.Lighting.style5, ImportCEOGarage2.Lighting.style6, + ImportCEOGarage2.Lighting.style7, ImportCEOGarage2.Lighting.style8, ImportCEOGarage2.Lighting.style9 + }, false, true) + end + }, + ModShop = { + Floor = { + default = "", + city = "floor_vinyl_01", + seabed = "floor_vinyl_02", + aliens = "floor_vinyl_03", + clouds = "floor_vinyl_04", + money = "floor_vinyl_05", + zebra = "floor_vinyl_06", + blackWhite = "floor_vinyl_07", + barcode = "floor_vinyl_08", + paintbrushBW = "floor_vinyl_09", + grid = "floor_vinyl_10", + splashes = "floor_vinyl_11", + squares = "floor_vinyl_12", + mosaic = "floor_vinyl_13", + paintbrushColor = "floor_vinyl_14", + curvesColor = "floor_vinyl_15", + marbleBrown = "floor_vinyl_16", + marbleBlue = "floor_vinyl_17", + marbleBW = "floor_vinyl_18", + maze = "floor_vinyl_19", + + Set = function(floor, refresh) + ImportCEOGarage2.ModShop.Floor.Clear() + + if floor ~= nil then + SetIplPropState(ImportCEOGarage2.Part.ModShop.interiorId, floor, true, refresh) + else + if refresh then + RefreshInterior(ImportCEOGarage2.Part.ModShop.interiorId) + end + end + end, + Clear = function() + SetIplPropState(ImportCEOGarage2.Part.ModShop.interiorId, { + ImportCEOGarage2.ModShop.Floor.city, ImportCEOGarage2.ModShop.Floor.seabed, ImportCEOGarage2.ModShop.Floor.aliens, + ImportCEOGarage2.ModShop.Floor.clouds, ImportCEOGarage2.ModShop.Floor.money, ImportCEOGarage2.ModShop.Floor.zebra, + ImportCEOGarage2.ModShop.Floor.blackWhite, ImportCEOGarage2.ModShop.Floor.barcode, ImportCEOGarage2.ModShop.Floor.paintbrushBW, + ImportCEOGarage2.ModShop.Floor.grid, ImportCEOGarage2.ModShop.Floor.splashes, ImportCEOGarage2.ModShop.Floor.squares, + ImportCEOGarage2.ModShop.Floor.mosaic, ImportCEOGarage2.ModShop.Floor.paintbrushColor, ImportCEOGarage2.ModShop.Floor.curvesColor, + ImportCEOGarage2.ModShop.Floor.marbleBrown, ImportCEOGarage2.ModShop.Floor.marbleBlue, ImportCEOGarage2.ModShop.Floor.marbleBW, + ImportCEOGarage2.ModShop.Floor.maze + }, false, true) + end + } + }, + + LoadDefault = function() + ImportCEOGarage2.Part.Load(ImportCEOGarage2.Part.Garage1) + ImportCEOGarage2.Style.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Style.concrete, false) + ImportCEOGarage2.Numbering.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Numbering.Level1.style1, false) + ImportCEOGarage2.Lighting.Set(ImportCEOGarage2.Part.Garage1, ImportCEOGarage2.Lighting.style1, true) + + ImportCEOGarage2.Part.Load(ImportCEOGarage2.Part.ModShop) + ImportCEOGarage2.ModShop.Floor.Set(ImportCEOGarage2.ModShop.Floor.default, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_import/garage3.lua b/resources/[housing]/bob74_ipl/dlc_import/garage3.lua new file mode 100644 index 000000000..8ab7a0c83 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_import/garage3.lua @@ -0,0 +1,201 @@ +-- Garage 3: Lom Bank +exports('GetImportCEOGarage3Object', function() + return ImportCEOGarage3 +end) + +ImportCEOGarage3 = { + Part = { + Garage1 = { -- -1581.1120, -567.2450, 85.5000 + interiorId = 255489, + ipl = "imp_sm_13_cargarage_a" + }, + Garage2 = { -- -1568.7390, -562.0455, 85.5000 + interiorId = 255745, + ipl = "imp_sm_13_cargarage_b" + }, + Garage3 = { -- -1563.5570, -574.4314, 85.5000 + interiorId = 256001, + ipl = "imp_sm_13_cargarage_c" + }, + ModShop = { -- -1578.0230, -576.4251, 104.2000 + interiorId = 256257, + ipl = "imp_sm_13_modgarage" + }, + + Load = function(part) + EnableIpl(part.ipl, true) + end, + Remove = function(part) + EnableIpl(part.ipl, false) + end, + Clear = function() + EnableIpl({ + ImportCEOGarage3.Part.Garage1.ipl, + ImportCEOGarage3.Part.Garage2.ipl, + ImportCEOGarage3.Part.Garage3.ipl + }, false) + end, + }, + Style = { + concrete = "garage_decor_01", + plain = "garage_decor_02", + marble = "garage_decor_03", + wooden = "garage_decor_04", + + Set = function(part, style, refresh) + ImportCEOGarage3.Style.Clear(part) + + SetIplPropState(part.interiorId, style, true, refresh) + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage3.Style.concrete, + ImportCEOGarage3.Style.plain, + ImportCEOGarage3.Style.marble, + ImportCEOGarage3.Style.wooden + }, false, true) + end + }, + Numbering = { + none = "", + Level1 = { + style1 = "numbering_style01_n1", + style2 = "numbering_style02_n1", + style3 = "numbering_style03_n1", + style4 = "numbering_style04_n1", + style5 = "numbering_style05_n1", + style6 = "numbering_style06_n1", + style7 = "numbering_style07_n1", + style8 = "numbering_style08_n1", + style9 = "numbering_style09_n1" + }, + Level2 = { + style1 = "numbering_style01_n2", + style2 = "numbering_style02_n2", + style3 = "numbering_style03_n2", + style4 = "numbering_style04_n2", + style5 = "numbering_style05_n2", + style6 = "numbering_style06_n2", + style7 = "numbering_style07_n2", + style8 = "numbering_style08_n2", + style9 = "numbering_style09_n2" + }, + Level3 = { + style1 = "numbering_style01_n3", + style2 = "numbering_style02_n3", + style3 = "numbering_style03_n3", + style4 = "numbering_style04_n3", + style5 = "numbering_style05_n3", + style6 = "numbering_style06_n3", + style7 = "numbering_style07_n3", + style8 = "numbering_style08_n3", + style9 = "numbering_style09_n3" + }, + Set = function(part, num, refresh) + ImportCEOGarage3.Numbering.Clear(part) + + if num ~= nil then + SetIplPropState(part.interiorId, num, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage3.Numbering.Level1, + ImportCEOGarage3.Numbering.Level2, + ImportCEOGarage3.Numbering.Level3 + }, false, true) + end + }, + Lighting = { + none = "", + style1 = "lighting_option01", + style2 = "lighting_option02", + style3 = "lighting_option03", + style4 = "lighting_option04", + style5 = "lighting_option05", + style6 = "lighting_option06", + style7 = "lighting_option07", + style8 = "lighting_option08", + style9 = "lighting_option09", + + Set = function(part, light, refresh) + ImportCEOGarage3.Lighting.Clear(part) + + if light ~= nil then + SetIplPropState(part.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage3.Lighting.style1, ImportCEOGarage3.Lighting.style2, ImportCEOGarage3.Lighting.style3, + ImportCEOGarage3.Lighting.style4, ImportCEOGarage3.Lighting.style5, ImportCEOGarage3.Lighting.style6, + ImportCEOGarage3.Lighting.style7, ImportCEOGarage3.Lighting.style8, ImportCEOGarage3.Lighting.style9 + }, false, true) + end + }, + ModShop = { + Floor = { + default = "", + city = "floor_vinyl_01", + seabed = "floor_vinyl_02", + aliens = "floor_vinyl_03", + clouds = "floor_vinyl_04", + money = "floor_vinyl_05", + zebra = "floor_vinyl_06", + blackWhite = "floor_vinyl_07", + barcode = "floor_vinyl_08", + paintbrushBW = "floor_vinyl_09", + grid = "floor_vinyl_10", + splashes = "floor_vinyl_11", + squares = "floor_vinyl_12", + mosaic = "floor_vinyl_13", + paintbrushColor = "floor_vinyl_14", + curvesColor = "floor_vinyl_15", + marbleBrown = "floor_vinyl_16", + marbleBlue = "floor_vinyl_17", + marbleBW = "floor_vinyl_18", + maze = "floor_vinyl_19", + + Set = function(floor, refresh) + ImportCEOGarage3.ModShop.Floor.Clear() + + if floor ~= nil then + SetIplPropState(ImportCEOGarage3.Part.ModShop.interiorId, floor, true, refresh) + else + if refresh then + RefreshInterior(ImportCEOGarage3.Part.ModShop.interiorId) + end + end + end, + Clear = function() + SetIplPropState(ImportCEOGarage3.Part.ModShop.interiorId, { + ImportCEOGarage3.ModShop.Floor.city, ImportCEOGarage3.ModShop.Floor.seabed, ImportCEOGarage3.ModShop.Floor.aliens, + ImportCEOGarage3.ModShop.Floor.clouds, ImportCEOGarage3.ModShop.Floor.money, ImportCEOGarage3.ModShop.Floor.zebra, + ImportCEOGarage3.ModShop.Floor.blackWhite, ImportCEOGarage3.ModShop.Floor.barcode, ImportCEOGarage3.ModShop.Floor.paintbrushBW, + ImportCEOGarage3.ModShop.Floor.grid, ImportCEOGarage3.ModShop.Floor.splashes, ImportCEOGarage3.ModShop.Floor.squares, + ImportCEOGarage3.ModShop.Floor.mosaic, ImportCEOGarage3.ModShop.Floor.paintbrushColor, ImportCEOGarage3.ModShop.Floor.curvesColor, + ImportCEOGarage3.ModShop.Floor.marbleBrown, ImportCEOGarage3.ModShop.Floor.marbleBlue, ImportCEOGarage3.ModShop.Floor.marbleBW, + ImportCEOGarage3.ModShop.Floor.maze + }, false, true) + end + } + }, + + LoadDefault = function() + ImportCEOGarage3.Part.Load(ImportCEOGarage3.Part.Garage1) + ImportCEOGarage3.Style.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Style.concrete, false) + ImportCEOGarage3.Numbering.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Numbering.Level1.style1, false) + ImportCEOGarage3.Lighting.Set(ImportCEOGarage3.Part.Garage1, ImportCEOGarage3.Lighting.style1, true) + + -- No mod shop since it overlapses CEO office + ImportCEOGarage3.Part.Remove(ImportCEOGarage3.Part.ModShop) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_import/garage4.lua b/resources/[housing]/bob74_ipl/dlc_import/garage4.lua new file mode 100644 index 000000000..a0d7f03c7 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_import/garage4.lua @@ -0,0 +1,204 @@ +-- Garage 4: Maze Bank West +-- Be careful, ImportCEOGarage4.Part.Garage1 and ImportCEOGarage4.Part.Garage3 overlaps with FinanceOffice4 +exports('GetImportCEOGarage4Object', function() + return ImportCEOGarage4 +end) + +ImportCEOGarage4 = { + Part = { + Garage1 = { -- -1388.8400, -478.7402, 56.1000 + interiorId = 256513, + ipl = "imp_sm_15_cargarage_a" + }, + Garage2 = { -- -1388.8600, -478.7574, 48.1000 + interiorId = 256769, + ipl = "imp_sm_15_cargarage_b" + }, + Garage3 = { -- -1374.6820, -474.3586, 56.1000 + interiorId = 257025, + ipl = "imp_sm_15_cargarage_c" + }, + ModShop = { -- -1391.2450, -473.9638, 77.2000 + interiorId = 257281, + ipl = "imp_sm_15_modgarage" + }, + + Load = function(part) + EnableIpl(part.ipl, true) + end, + Remove = function(part) + EnableIpl(part.ipl, false) + end, + Clear = function() + EnableIpl({ + ImportCEOGarage4.Part.Garage1.ipl, + ImportCEOGarage4.Part.Garage2.ipl, + ImportCEOGarage4.Part.Garage3.ipl + }, false) + end + }, + Style = { + concrete = "garage_decor_01", + plain = "garage_decor_02", + marble = "garage_decor_03", + wooden = "garage_decor_04", + + Set = function(part, style, refresh) + ImportCEOGarage4.Style.Clear(part) + + SetIplPropState(part.interiorId, style, true, refresh) + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage4.Style.concrete, + ImportCEOGarage4.Style.plain, + ImportCEOGarage4.Style.marble, + ImportCEOGarage4.Style.wooden + }, false, true) + end + }, + Numbering = { + none = "", + Level1 = { + style1 = "numbering_style01_n1", + style2 = "numbering_style02_n1", + style3 = "numbering_style03_n1", + style4 = "numbering_style04_n1", + style5 = "numbering_style05_n1", + style6 = "numbering_style06_n1", + style7 = "numbering_style07_n1", + style8 = "numbering_style08_n1", + style9 = "numbering_style09_n1" + }, + Level2 = { + style1 = "numbering_style01_n2", + style2 = "numbering_style02_n2", + style3 = "numbering_style03_n2", + style4 = "numbering_style04_n2", + style5 = "numbering_style05_n2", + style6 = "numbering_style06_n2", + style7 = "numbering_style07_n2", + style8 = "numbering_style08_n2", + style9 = "numbering_style09_n2" + }, + Level3 = { + style1 = "numbering_style01_n3", + style2 = "numbering_style02_n3", + style3 = "numbering_style03_n3", + style4 = "numbering_style04_n3", + style5 = "numbering_style05_n3", + style6 = "numbering_style06_n3", + style7 = "numbering_style07_n3", + style8 = "numbering_style08_n3", + style9 = "numbering_style09_n3" + }, + + Set = function(part, num, refresh) + ImportCEOGarage4.Numbering.Clear(part) + + if num ~= nil then + SetIplPropState(part.interiorId, num, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage4.Numbering.Level1, + ImportCEOGarage4.Numbering.Level2, + ImportCEOGarage4.Numbering.Level3 + }, false, true) + end + }, + Lighting = { + none = "", + style1 = "lighting_option01", + style2 = "lighting_option02", + style3 = "lighting_option03", + style4 = "lighting_option04", + style5 = "lighting_option05", + style6 = "lighting_option06", + style7 = "lighting_option07", + style8 = "lighting_option08", + style9 = "lighting_option09", + + Set = function(part, light, refresh) + ImportCEOGarage4.Lighting.Clear(part) + + if light ~= nil then + SetIplPropState(part.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(part.interiorId) + end + end + end, + Clear = function(part) + SetIplPropState(part.interiorId, { + ImportCEOGarage4.Lighting.style1, ImportCEOGarage4.Lighting.style2, ImportCEOGarage4.Lighting.style3, + ImportCEOGarage4.Lighting.style4, ImportCEOGarage4.Lighting.style5, ImportCEOGarage4.Lighting.style6, + ImportCEOGarage4.Lighting.style7, ImportCEOGarage4.Lighting.style8, ImportCEOGarage4.Lighting.style9 + }, false, true) + end + }, + ModShop = { + Floor = { + default = "", + city = "floor_vinyl_01", + seabed = "floor_vinyl_02", + aliens = "floor_vinyl_03", + clouds = "floor_vinyl_04", + money = "floor_vinyl_05", + zebra = "floor_vinyl_06", + blackWhite = "floor_vinyl_07", + barcode = "floor_vinyl_08", + paintbrushBW = "floor_vinyl_09", + grid = "floor_vinyl_10", + splashes = "floor_vinyl_11", + squares = "floor_vinyl_12", + mosaic = "floor_vinyl_13", + paintbrushColor = "floor_vinyl_14", + curvesColor = "floor_vinyl_15", + marbleBrown = "floor_vinyl_16", + marbleBlue = "floor_vinyl_17", + marbleBW = "floor_vinyl_18", + maze = "floor_vinyl_19", + + Set = function(floor, refresh) + ImportCEOGarage4.ModShop.Floor.Clear() + + if floor ~= nil then + SetIplPropState(ImportCEOGarage4.Part.ModShop.interiorId, floor, true, refresh) + else + if refresh then + RefreshInterior(ImportCEOGarage4.Part.ModShop.interiorId) + end + end + end, + Clear = function() + SetIplPropState(ImportCEOGarage4.Part.ModShop.interiorId, { + ImportCEOGarage4.ModShop.Floor.city, ImportCEOGarage4.ModShop.Floor.seabed, ImportCEOGarage4.ModShop.Floor.aliens, + ImportCEOGarage4.ModShop.Floor.clouds, ImportCEOGarage4.ModShop.Floor.money, ImportCEOGarage4.ModShop.Floor.zebra, + ImportCEOGarage4.ModShop.Floor.blackWhite, ImportCEOGarage4.ModShop.Floor.barcode, ImportCEOGarage4.ModShop.Floor.paintbrushBW, + ImportCEOGarage4.ModShop.Floor.grid, ImportCEOGarage4.ModShop.Floor.splashes, ImportCEOGarage4.ModShop.Floor.squares, + ImportCEOGarage4.ModShop.Floor.mosaic, ImportCEOGarage4.ModShop.Floor.paintbrushColor, ImportCEOGarage4.ModShop.Floor.curvesColor, + ImportCEOGarage4.ModShop.Floor.marbleBrown, ImportCEOGarage4.ModShop.Floor.marbleBlue, ImportCEOGarage4.ModShop.Floor.marbleBW, + ImportCEOGarage4.ModShop.Floor.maze + }, false, true) + end + } + }, + + LoadDefault = function() + ImportCEOGarage4.Part.Load(ImportCEOGarage4.Part.Garage2) + + ImportCEOGarage4.Style.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Style.concrete, false) + ImportCEOGarage4.Numbering.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Numbering.Level1.style1, false) + ImportCEOGarage4.Lighting.Set(ImportCEOGarage4.Part.Garage2, ImportCEOGarage4.Lighting.style1, true) + + ImportCEOGarage4.Part.Load(ImportCEOGarage4.Part.ModShop) + ImportCEOGarage4.ModShop.Floor.Set(ImportCEOGarage4.ModShop.Floor.default, true) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_import/vehicle_warehouse.lua b/resources/[housing]/bob74_ipl/dlc_import/vehicle_warehouse.lua new file mode 100644 index 000000000..a8ddd847c --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_import/vehicle_warehouse.lua @@ -0,0 +1,96 @@ +-- Vehicle warehouse +-- Upper: 994.5925, -3002.594, -39.64699 +-- Lower: 969.5376, -3000.411, -48.64689 +exports('GetImportVehicleWarehouseObject', function() + return ImportVehicleWarehouse +end) + +ImportVehicleWarehouse = { + Upper = { + interiorId = 252673, + + Ipl = { + Interior = { + ipl = "imp_impexp_interior_placement_interior_1_impexp_intwaremed_milo_", + + Load = function() + EnableIpl(ImportVehicleWarehouse.Upper.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(ImportVehicleWarehouse.Upper.Ipl.Interior.ipl, false) + end + } + }, + Style = { + basic = "basic_style_set", + branded = "branded_style_set", + urban = "urban_style_set", + + Set = function(style, refresh) + ImportVehicleWarehouse.Upper.Style.Clear(false) + + SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, { + ImportVehicleWarehouse.Upper.Style.basic, + ImportVehicleWarehouse.Upper.Style.branded, + ImportVehicleWarehouse.Upper.Style.urban + }, false, refresh) + end + }, + Details = { + floorHatch = "car_floor_hatch", + doorBlocker = "door_blocker", -- Invisible wall + + Enable = function(details, state, refresh) + SetIplPropState(ImportVehicleWarehouse.Upper.interiorId, details, state, refresh) + end + } + }, + Lower = { + interiorId = 253185, + + Ipl = { + Interior = { + ipl = "imp_impexp_interior_placement_interior_3_impexp_int_02_milo_", + + Load = function() + EnableIpl(ImportVehicleWarehouse.Lower.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(ImportVehicleWarehouse.Lower.Ipl.Interior.ipl, false) + end + } + }, + Details = { + Pumps = { + pump1 = "pump_01", + pump2 = "pump_02", + pump3 = "pump_03", + pump4 = "pump_04", + pump5 = "pump_05", + pump6 = "pump_06", + pump7 = "pump_07", + pump8 = "pump_08" + }, + Enable = function(details, state, refresh) + SetIplPropState(ImportVehicleWarehouse.Lower.interiorId, details, state, refresh) + end + } + }, + + LoadDefault = function() + ImportVehicleWarehouse.Upper.Ipl.Interior.Load() + ImportVehicleWarehouse.Upper.Style.Set(ImportVehicleWarehouse.Upper.Style.branded) + ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.floorHatch, true) + ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.doorBlocker, false) + + RefreshInterior(ImportVehicleWarehouse.Upper.interiorId) + + ImportVehicleWarehouse.Lower.Ipl.Interior.Load() + ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps, true) + + RefreshInterior(ImportVehicleWarehouse.Lower.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_mercenaries/club.lua b/resources/[housing]/bob74_ipl/dlc_mercenaries/club.lua new file mode 100644 index 000000000..a4c348300 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_mercenaries/club.lua @@ -0,0 +1,44 @@ +-- Vinewood Car Club: 1202.407, -3251.251, -50.000 +exports('GetMercenariesClubObject', function() + return MercenariesClub +end) + +MercenariesClub = { + interiorId = 291841, + + Style = { + empty = "entity_set_no_plus", -- The lamps if the podium is not there + club = { + "entity_set_plus", + "entity_set_backdrop_frames", + "entity_set_signs" + }, + + Set = function(style, refresh) + MercenariesClub.Style.Clear(false) + + SetIplPropState(MercenariesClub.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(MercenariesClub.interiorId, { + MercenariesClub.Style.empty, + MercenariesClub.Style.club + }, false, refresh) + end + }, + + Stairs = { + stairs = "entity_set_stairs", + + Enable = function(state, refresh) + SetIplPropState(MercenariesClub.interiorId, MercenariesClub.Stairs.stairs, state, refresh) + end + }, + + LoadDefault = function() + MercenariesClub.Style.Set(MercenariesClub.Style.club, false) + MercenariesClub.Stairs.Enable(true, false) + + RefreshInterior(MercenariesClub.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_mercenaries/fixes.lua b/resources/[housing]/bob74_ipl/dlc_mercenaries/fixes.lua new file mode 100644 index 000000000..90a8dfb7d --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_mercenaries/fixes.lua @@ -0,0 +1,16 @@ +-- Map fixes +exports('GetMercenariesFixesObject', function() + return MercenariesFixes +end) + +MercenariesFixes = { + ipl = "m23_1_legacy_fixes", + + Enable = function(state) + EnableIpl(MercenariesFixes.ipl, state) + end, + + LoadDefault = function() + MercenariesFixes.Enable(true) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_mercenaries/lab.lua b/resources/[housing]/bob74_ipl/dlc_mercenaries/lab.lua new file mode 100644 index 000000000..aa483b518 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_mercenaries/lab.lua @@ -0,0 +1,28 @@ +-- Fort Zancudo Lab: -1916.119, 3749.719, -100.000 +exports('GetMercenariesLabObject', function() + return MercenariesLab +end) + +MercenariesLab = { + interiorId = 292097, + + Details = { + levers = "entity_set_levers", + crates = "entity_set_crates", + weapons = "entity_set_weapons", + lights = "entity_set_lift_lights", + + Enable = function(details, state, refresh) + SetIplPropState(MercenariesLab.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + MercenariesLab.Details.Enable(MercenariesLab.Details.levers, true, false) + MercenariesLab.Details.Enable(MercenariesLab.Details.crates, true, false) + MercenariesLab.Details.Enable(MercenariesLab.Details.weapons, true, false) + MercenariesLab.Details.Enable(MercenariesLab.Details.lights, true, false) + + RefreshInterior(MercenariesLab.interiorId) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/dlc_security/billboards.lua b/resources/[housing]/bob74_ipl/dlc_security/billboards.lua new file mode 100644 index 000000000..30f4a12df --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/billboards.lua @@ -0,0 +1,24 @@ +exports('GetMpSecurityBillboardsObject', function() + return MpSecurityBillboards +end) + +MpSecurityBillboards = { + Ipl = { + Interior = { + ipl = { + 'sf_billboards', + } + }, + + Load = function() + EnableIpl(MpSecurityBillboards.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityBillboards.Ipl.Interior.ipl, false) + end, + }, + + LoadDefault = function() + MpSecurityBillboards.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/garage.lua b/resources/[housing]/bob74_ipl/dlc_security/garage.lua new file mode 100644 index 000000000..3df69152f --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/garage.lua @@ -0,0 +1,74 @@ +-- Garage: -1071.83, -77.96, -95.0 +exports('GetMpSecurityGarageObject', function() + return MpSecurityGarage +end) + +MpSecurityGarage = { + InteriorId = 286721, + + Ipl = { + Interior = { + ipl = { + 'sf_int_placement_sec_interior_2_dlc_garage_sec_milo_' + } + }, + + Load = function() + EnableIpl(MpSecurityGarage.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityGarage.Ipl.Interior.ipl, false) + end + }, + Entities = { + Entity_Set_Workshop_Wall = false, + Entity_Set_Wallpaper_01 = false, + Entity_Set_Wallpaper_02 = false, + Entity_Set_Wallpaper_03 = false, + Entity_Set_Wallpaper_04 = false, + Entity_Set_Wallpaper_05 = false, + Entity_Set_Wallpaper_06 = false, + Entity_Set_Wallpaper_07 = true, + Entity_Set_Wallpaper_08 = false, + Entity_Set_Wallpaper_09 = false, + Entity_Set_Art_1 = false, + Entity_Set_Art_2 = false, + Entity_Set_Art_3 = false, + Entity_Set_Art_1_NoMod = false, + Entity_Set_Art_2_NoMod = false, + Entity_Set_Art_3_NoMod = false, + entity_set_tints = true, + Entity_Set_Workshop_Lights = true, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityGarage.Entities) do + if entity == name then + MpSecurityGarage.Entities[entity] = state + MpSecurityGarage.Entities.Clear() + MpSecurityGarage.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityGarage.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityGarage.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityGarage.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityGarage.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + MpSecurityGarage.Ipl.Load() + MpSecurityGarage.Entities.Load() + + RefreshInterior(MpSecurityGarage.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/musicrooftop.lua b/resources/[housing]/bob74_ipl/dlc_security/musicrooftop.lua new file mode 100644 index 000000000..794365c37 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/musicrooftop.lua @@ -0,0 +1,25 @@ +-- Studio rooftop: -854.19, -225.73, 60.00 +exports('GetMpSecurityMusicRoofTopObject', function() + return MpSecurityMusicRoofTop +end) + +MpSecurityMusicRoofTop = { + Ipl = { + Interior = { + ipl = { + 'sf_musicrooftop' + } + }, + + Load = function() + EnableIpl(MpSecurityMusicRoofTop.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityMusicRoofTop.Ipl.Interior.ipl, false) + end + }, + + LoadDefault = function() + MpSecurityMusicRoofTop.Ipl.Load() + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/office1.lua b/resources/[housing]/bob74_ipl/dlc_security/office1.lua new file mode 100644 index 000000000..70659dabd --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/office1.lua @@ -0,0 +1,106 @@ +exports('GetMpSecurityOffice1Object', function() + return MpSecurityOffice1 +end) + +MpSecurityOffice1 = { + InteriorId = 287489, + + Ipl = { + Interior = { + ipl = { + 'sf_fixeroffice_bh1_05' + } + }, + + Load = function() + EnableIpl(MpSecurityOffice1.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityOffice1.Ipl.Interior.ipl, false) + end + }, + Entities = { + Entity_Set_Armoury = false, + Entity_Set_Standard_Office = true, + Entity_Set_Blocker = false, + Entity_Set_Wpaper_1 = false, + Entity_Set_Wpaper_3 = false, + Entity_Set_Wpaper_2 = false, + Entity_Set_Wpaper_4 = false, + Entity_Set_Wpaper_5 = false, + Entity_Set_Wpaper_6 = false, + Entity_Set_Wpaper_7 = false, + Entity_Set_Wpaper_8 = true, + Entity_Set_Wpaper_9 = false, + Entity_Set_Moving = true, + Entity_Set_Tint_AG = true, + Entity_Set_Spare_Seats = true, + Entity_Set_Player_Seats = true, + Entity_Set_Player_Desk = true, + Entity_Set_M_Golf_Intro = true, + Entity_Set_M_Setup = true, + Entity_Set_M_Nightclub = true, + Entity_Set_M_Yacht = true, + Entity_Set_M_Promoter = true, + Entity_Set_M_Limo_Photo = true, + Entity_Set_M_Limo_Wallet = true, + Entity_Set_M_The_Way = true, + Entity_Set_M_Billionaire = true, + Entity_Set_M_Families = true, + Entity_Set_M_Ballas = true, + Entity_Set_M_Hood = true, + Entity_Set_M_Fire_Booth = true, + Entity_Set_M_50 = true, + Entity_Set_M_Taxi = true, + Entity_Set_M_Gone_Golfing = true, + Entity_Set_M_Motel = true, + Entity_Set_M_Construction = true, + Entity_Set_M_Hit_List = true, + Entity_Set_M_Tuner = true, + Entity_Set_M_Attack = true, + Entity_Set_M_Vehicles = true, + Entity_Set_M_Trip_01 = true, + Entity_Set_M_Trip_02 = true, + Entity_Set_M_Trip_03 = true, + Entity_set_disc_01 = true, + Entity_set_disc_02 = false, + Entity_set_disc_03 = false, + Entity_set_disc_04 = false, + Entity_set_disc_05 = false, + Entity_set_disc_06 = false, + Entity_Set_Art_1 = true, + Entity_Set_Art_2 = false, + Entity_Set_Art_3 = false, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityOffice1.Entities) do + if entity == name then + MpSecurityOffice1.Entities[entity] = state + MpSecurityOffice1.Entities.Clear() + MpSecurityOffice1.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityOffice1.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityOffice1.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityOffice1.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityOffice1.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + MpSecurityOffice1.Ipl.Load() + MpSecurityOffice1.Entities.Load() + + RefreshInterior(MpSecurityOffice1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/office2.lua b/resources/[housing]/bob74_ipl/dlc_security/office2.lua new file mode 100644 index 000000000..cb4481753 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/office2.lua @@ -0,0 +1,106 @@ +exports('GetMpSecurityOffice2Object', function() + return MpSecurityOffice2 +end) + +MpSecurityOffice2 = { + InteriorId = 288257, + + Ipl = { + Interior = { + ipl = { + 'sf_fixeroffice_hw1_08' + } + }, + + Load = function() + EnableIpl(MpSecurityOffice2.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityOffice2.Ipl.Interior.ipl, false) + end + }, + Entities = { + Entity_Set_Armoury = true, + Entity_Set_Standard_Office = false, + Entity_Set_Blocker = false, + Entity_Set_Wpaper_1 = false, + Entity_Set_Wpaper_3 = false, + Entity_Set_Wpaper_2 = false, + Entity_Set_Wpaper_4 = false, + Entity_Set_Wpaper_5 = false, + Entity_Set_Wpaper_6 = false, + Entity_Set_Wpaper_7 = false, + Entity_Set_Wpaper_8 = false, + Entity_Set_Wpaper_9 = true, + Entity_Set_Moving = true, + Entity_Set_Tint_AG = true, + Entity_Set_Spare_Seats = true, + Entity_Set_Player_Seats = true, + Entity_Set_Player_Desk = true, + Entity_Set_M_Golf_Intro = true, + Entity_Set_M_Setup = true, + Entity_Set_M_Nightclub = true, + Entity_Set_M_Yacht = true, + Entity_Set_M_Promoter = true, + Entity_Set_M_Limo_Photo = true, + Entity_Set_M_Limo_Wallet = true, + Entity_Set_M_The_Way = true, + Entity_Set_M_Billionaire = true, + Entity_Set_M_Families = true, + Entity_Set_M_Ballas = true, + Entity_Set_M_Hood = true, + Entity_Set_M_Fire_Booth = true, + Entity_Set_M_50 = true, + Entity_Set_M_Taxi = true, + Entity_Set_M_Gone_Golfing = true, + Entity_Set_M_Motel = true, + Entity_Set_M_Construction = true, + Entity_Set_M_Hit_List = true, + Entity_Set_M_Tuner = true, + Entity_Set_M_Attack = true, + Entity_Set_M_Vehicles = true, + Entity_Set_M_Trip_01 = true, + Entity_Set_M_Trip_02 = true, + Entity_Set_M_Trip_03 = true, + Entity_set_disc_01 = false, + Entity_set_disc_02 = true, + Entity_set_disc_03 = false, + Entity_set_disc_04 = false, + Entity_set_disc_05 = false, + Entity_set_disc_06 = false, + Entity_Set_Art_1 = false, + Entity_Set_Art_2 = true, + Entity_Set_Art_3 = false, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityOffice2.Entities) do + if entity == name then + MpSecurityOffice2.Entities[entity] = state + MpSecurityOffice2.Entities.Clear() + MpSecurityOffice2.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityOffice2.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityOffice2.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityOffice2.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityOffice2.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + MpSecurityOffice2.Ipl.Load() + + MpSecurityOffice2.Entities.Load() + RefreshInterior(MpSecurityOffice2.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/office3.lua b/resources/[housing]/bob74_ipl/dlc_security/office3.lua new file mode 100644 index 000000000..401ad4c05 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/office3.lua @@ -0,0 +1,105 @@ +exports('GetMpSecurityOffice3Object', function() + return MpSecurityOffice3 +end) + +MpSecurityOffice3 = { + InteriorId = 288001, + + Ipl = { + Interior = { + ipl = { + 'sf_fixeroffice_kt1_05' + } + }, + Load = function() + EnableIpl(MpSecurityOffice3.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityOffice3.Ipl.Interior.ipl, false) + end + }, + Entities = { + Entity_Set_Armoury = false, + Entity_Set_Standard_Office = true, + Entity_Set_Blocker = false, + Entity_Set_Wpaper_1 = false, + Entity_Set_Wpaper_3 = false, + Entity_Set_Wpaper_2 = true, + Entity_Set_Wpaper_4 = false, + Entity_Set_Wpaper_5 = false, + Entity_Set_Wpaper_6 = false, + Entity_Set_Wpaper_7 = false, + Entity_Set_Wpaper_8 = false, + Entity_Set_Wpaper_9 = false, + Entity_Set_Moving = true, + Entity_Set_Tint_AG = true, + Entity_Set_Spare_Seats = true, + Entity_Set_Player_Seats = true, + Entity_Set_Player_Desk = true, + Entity_Set_M_Golf_Intro = true, + Entity_Set_M_Setup = true, + Entity_Set_M_Nightclub = true, + Entity_Set_M_Yacht = true, + Entity_Set_M_Promoter = true, + Entity_Set_M_Limo_Photo = true, + Entity_Set_M_Limo_Wallet = true, + Entity_Set_M_The_Way = true, + Entity_Set_M_Billionaire = true, + Entity_Set_M_Families = true, + Entity_Set_M_Ballas = true, + Entity_Set_M_Hood = true, + Entity_Set_M_Fire_Booth = true, + Entity_Set_M_50 = true, + Entity_Set_M_Taxi = true, + Entity_Set_M_Gone_Golfing = true, + Entity_Set_M_Motel = true, + Entity_Set_M_Construction = true, + Entity_Set_M_Hit_List = true, + Entity_Set_M_Tuner = true, + Entity_Set_M_Attack = true, + Entity_Set_M_Vehicles = true, + Entity_Set_M_Trip_01 = true, + Entity_Set_M_Trip_02 = true, + Entity_Set_M_Trip_03 = true, + Entity_set_disc_01 = false, + Entity_set_disc_02 = true, + Entity_set_disc_03 = false, + Entity_set_disc_04 = false, + Entity_set_disc_05 = false, + Entity_set_disc_06 = false, + Entity_Set_Art_1 = false, + Entity_Set_Art_2 = false, + Entity_Set_Art_3 = true, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityOffice3.Entities) do + if entity == name then + MpSecurityOffice3.Entities[entity] = state + MpSecurityOffice3.Entities.Clear() + MpSecurityOffice3.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityOffice3.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityOffice3.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityOffice3.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityOffice3.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + MpSecurityOffice3.Ipl.Load() + MpSecurityOffice3.Entities.Load() + + RefreshInterior(MpSecurityOffice3.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/office4.lua b/resources/[housing]/bob74_ipl/dlc_security/office4.lua new file mode 100644 index 000000000..86ce6d94b --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/office4.lua @@ -0,0 +1,106 @@ +exports('GetMpSecurityOffice4Object', function() + return MpSecurityOffice4 +end) + +MpSecurityOffice4 = { + InteriorId = 287745, + + Ipl = { + Interior = { + ipl = { + 'sf_fixeroffice_kt1_08' + } + }, + + Load = function() + EnableIpl(MpSecurityOffice4.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityOffice4.Ipl.Interior.ipl, false) + end, + }, + Entities = { + Entity_Set_Armoury = true, + Entity_Set_Standard_Office = false, + Entity_Set_Blocker = false, + Entity_Set_Wpaper_1 = false, + Entity_Set_Wpaper_3 = true, + Entity_Set_Wpaper_2 = false, + Entity_Set_Wpaper_4 = false, + Entity_Set_Wpaper_5 = false, + Entity_Set_Wpaper_6 = false, + Entity_Set_Wpaper_7 = false, + Entity_Set_Wpaper_8 = false, + Entity_Set_Wpaper_9 = false, + Entity_Set_Moving = true, + Entity_Set_Tint_AG = true, + Entity_Set_Spare_Seats = true, + Entity_Set_Player_Seats = true, + Entity_Set_Player_Desk = true, + Entity_Set_M_Golf_Intro = true, + Entity_Set_M_Setup = true, + Entity_Set_M_Nightclub = true, + Entity_Set_M_Yacht = true, + Entity_Set_M_Promoter = true, + Entity_Set_M_Limo_Photo = true, + Entity_Set_M_Limo_Wallet = true, + Entity_Set_M_The_Way = true, + Entity_Set_M_Billionaire = true, + Entity_Set_M_Families = true, + Entity_Set_M_Ballas = true, + Entity_Set_M_Hood = true, + Entity_Set_M_Fire_Booth = true, + Entity_Set_M_50 = true, + Entity_Set_M_Taxi = true, + Entity_Set_M_Gone_Golfing = true, + Entity_Set_M_Motel = true, + Entity_Set_M_Construction = true, + Entity_Set_M_Hit_List = true, + Entity_Set_M_Tuner = true, + Entity_Set_M_Attack = true, + Entity_Set_M_Vehicles = true, + Entity_Set_M_Trip_01 = true, + Entity_Set_M_Trip_02 = true, + Entity_Set_M_Trip_03 = true, + Entity_set_disc_01 = false, + Entity_set_disc_02 = false, + Entity_set_disc_03 = false, + Entity_set_disc_04 = false, + Entity_set_disc_05 = true, + Entity_set_disc_06 = false, + Entity_Set_Art_1 = true, + Entity_Set_Art_2 = false, + Entity_Set_Art_3 = false, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityOffice4.Entities) do + if entity == name then + MpSecurityOffice4.Entities[entity] = state + MpSecurityOffice4.Entities.Clear() + MpSecurityOffice4.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityOffice4.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityOffice4.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityOffice4.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityOffice4.InteriorId, entity) + end + end + end, + }, + + LoadDefault = function() + MpSecurityOffice4.Ipl.Load() + MpSecurityOffice4.Entities.Load() + + RefreshInterior(MpSecurityOffice4.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_security/studio.lua b/resources/[housing]/bob74_ipl/dlc_security/studio.lua new file mode 100644 index 000000000..2eb0dbdf0 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_security/studio.lua @@ -0,0 +1,61 @@ +-- Recording studio: -1010.22, -52.21, -100.0 +exports('GetMpSecurityStudioObject', function() + return MpSecurityStudio +end) + +MpSecurityStudio = { + InteriorId = 286977, + + Ipl = { + Interior = { + ipl = { + 'sf_int_placement_sec_interior_1_dlc_studio_sec_milo_ ' + } + }, + + Load = function() + EnableIpl(MpSecurityStudio.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(MpSecurityStudio.Ipl.Interior.ipl, false) + end, + }, + Entities = { + Entity_Set_FIX_STU_EXT_P3A1 = false, + Entity_Set_FIX_TRIP1_INT_P2 = false, + Entity_Set_FIX_STU_EXT_P1 = false, + Entity_Set_Fire = true, + entity_set_default = true, + + Set = function(name, state) + for entity, _ in pairs(MpSecurityStudio.Entities) do + if entity == name then + MpSecurityStudio.Entities[entity] = state + MpSecurityStudio.Entities.Clear() + MpSecurityStudio.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(MpSecurityStudio.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(MpSecurityStudio.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(MpSecurityStudio.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(MpSecurityStudio.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + MpSecurityStudio.Ipl.Load() + MpSecurityStudio.Entities.Load() + + RefreshInterior(MpSecurityStudio.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_smuggler/hangar.lua b/resources/[housing]/bob74_ipl/dlc_smuggler/hangar.lua new file mode 100644 index 000000000..f8b414e73 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_smuggler/hangar.lua @@ -0,0 +1,333 @@ +-- SmugglerHangar: -1267.0 -3013.135 -49.5 +exports('GetSmugglerHangarObject', function() + return SmugglerHangar +end) + +SmugglerHangar = { + interiorId = 260353, + + Ipl = { + Interior = { + ipl = "sm_smugdlc_interior_placement_interior_0_smugdlc_int_01_milo_", + + Load = function() + EnableIpl(SmugglerHangar.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(SmugglerHangar.Ipl.Interior.ipl, false) + end + } + }, + Colors = { + colorSet1 = 1, -- sable, red, gray + colorSet2 = 2, -- white, blue, gray + colorSet3 = 3, -- gray, orange, blue + colorSet4 = 4, -- gray, blue, orange + colorSet5 = 5, -- gray, light gray, red + colorSet6 = 6, -- yellow, gray, light gray + colorSet7 = 7, -- light Black and white + colorSet8 = 8, -- dark Black and white + colorSet9 = 9 -- sable and gray + }, + Walls = { + default = "set_tint_shell", + + SetColor = function(color, refresh) + SetIplPropState(SmugglerHangar.interiorId, SmugglerHangar.Walls.default, true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, SmugglerHangar.Walls.default, color) + end, + }, + Floor = { + Style = { + raw = "set_floor_1", + plain = "set_floor_2", + + Set = function(floor, refresh) + SmugglerHangar.Floor.Style.Clear(false) + + SetIplPropState(SmugglerHangar.interiorId, floor, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Floor.Style.raw, + SmugglerHangar.Floor.Style.plain + }, false, refresh) + end + }, + Decals = { + decal1 = "set_floor_decal_1", + decal2 = "set_floor_decal_2", + decal4 = "set_floor_decal_3", + decal3 = "set_floor_decal_4", + decal5 = "set_floor_decal_5", + decal6 = "set_floor_decal_6", + decal7 = "set_floor_decal_7", + decal8 = "set_floor_decal_8", + decal9 = "set_floor_decal_9", + + Set = function(decal, color, refresh) + if color == nil then + color = 1 + end + + SmugglerHangar.Floor.Decals.Clear(false) + + SetIplPropState(SmugglerHangar.interiorId, decal, true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, decal, color) + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Floor.Decals.decal1, + SmugglerHangar.Floor.Decals.decal2, + SmugglerHangar.Floor.Decals.decal3, + SmugglerHangar.Floor.Decals.decal4, + SmugglerHangar.Floor.Decals.decal5, + SmugglerHangar.Floor.Decals.decal6, + SmugglerHangar.Floor.Decals.decal7, + SmugglerHangar.Floor.Decals.decal8, + SmugglerHangar.Floor.Decals.decal9 + }, false, refresh) + end + } + }, + Cranes = { + on = "set_crane_tint", + off = "", + + Set = function(crane, color, refresh) + SmugglerHangar.Cranes.Clear() + + if crane ~= "" then + SetIplPropState(SmugglerHangar.interiorId, crane, true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, crane, color) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, SmugglerHangar.Cranes.on, false, refresh) + end + }, + ModArea = { + on = "set_modarea", + off = "", + + Set = function(mod, color, refresh) + if color == nil then + color = 1 + end + + SmugglerHangar.ModArea.Clear(false) + + if mod ~= "" then + SetIplPropState(SmugglerHangar.interiorId, mod, true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, mod, color) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, SmugglerHangar.ModArea.on, false, refresh) + end + }, + Office = { + basic = "set_office_basic", + modern = "set_office_modern", + traditional = "set_office_traditional", + + Set = function(office, refresh) + SmugglerHangar.Office.Clear(false) + + SetIplPropState(SmugglerHangar.interiorId, office, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Office.basic, + SmugglerHangar.Office.modern, + SmugglerHangar.Office.traditional + }, false, refresh) + end + }, + Bedroom = { + Style = { + none = "", + modern = { + "set_bedroom_modern", + "set_bedroom_tint" + }, + traditional = { + "set_bedroom_traditional", + "set_bedroom_tint" + }, + + Set = function(bed, color, refresh) + if color == nil then + color = 1 + end + + SmugglerHangar.Bedroom.Style.Clear(false) + + if bed ~= "" then + SetIplPropState(SmugglerHangar.interiorId, bed, true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, "set_bedroom_tint", color) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Bedroom.Style.modern, + SmugglerHangar.Bedroom.Style.traditional + }, false, refresh) + end + }, + Blinds = { + none = "", + opened = "set_bedroom_blinds_open", + closed = "set_bedroom_blinds_closed", + + Set = function(blinds, refresh) + SmugglerHangar.Bedroom.Blinds.Clear(false) + + if blinds ~= "" then + SetIplPropState(SmugglerHangar.interiorId, blinds, true, refresh) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Bedroom.Blinds.opened, + SmugglerHangar.Bedroom.Blinds.closed + }, false, refresh) + end + } + }, + Lighting = { + FakeLights = { + none = "", + yellow = 2, + blue = 1, + white = 0, + + Set = function(light, refresh) + SmugglerHangar.Lighting.FakeLights.Clear(false) + + if light ~= "" then + SetIplPropState(SmugglerHangar.interiorId, "set_lighting_tint_props", true, refresh) + SetInteriorEntitySetColor(SmugglerHangar.interiorId, "set_lighting_tint_props", light) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, "set_lighting_tint_props", false, refresh) + end + }, + Ceiling = { + none = "", + yellow = "set_lighting_hangar_a", + blue = "set_lighting_hangar_b", + white = "set_lighting_hangar_c", + + Set = function(light, refresh) + SmugglerHangar.Lighting.Ceiling.Clear(false) + + if light ~= "" then + SetIplPropState(SmugglerHangar.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Lighting.Ceiling.yellow, + SmugglerHangar.Lighting.Ceiling.blue, + SmugglerHangar.Lighting.Ceiling.white + }, false, refresh) + end + }, + Walls = { + none = "", + neutral = "set_lighting_wall_neutral", + blue = "set_lighting_wall_tint01", + orange = "set_lighting_wall_tint02", + lightYellow = "set_lighting_wall_tint03", + lightYellow2 = "set_lighting_wall_tint04", + dimmed = "set_lighting_wall_tint05", + strongYellow = "set_lighting_wall_tint06", + white = "set_lighting_wall_tint07", + lightGreen = "set_lighting_wall_tint08", + yellow = "set_lighting_wall_tint09", + + Set = function(light, refresh) + SmugglerHangar.Lighting.Walls.Clear(false) + + if light ~= "" then + SetIplPropState(SmugglerHangar.interiorId, light, true, refresh) + else + if refresh then + RefreshInterior(SmugglerHangar.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(SmugglerHangar.interiorId, { + SmugglerHangar.Lighting.Walls.neutral, + SmugglerHangar.Lighting.Walls.blue, + SmugglerHangar.Lighting.Walls.orange, + SmugglerHangar.Lighting.Walls.lightYellow, + SmugglerHangar.Lighting.Walls.lightYellow2, + SmugglerHangar.Lighting.Walls.dimmed, + SmugglerHangar.Lighting.Walls.strongYellow, + SmugglerHangar.Lighting.Walls.white, + SmugglerHangar.Lighting.Walls.lightGreen, + SmugglerHangar.Lighting.Walls.yellow + }, false, refresh) + end + } + }, + Details = { + bedroomClutter = "set_bedroom_clutter", + + Enable = function(details, state, refresh) + SetIplPropState(SmugglerHangar.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + SmugglerHangar.Ipl.Interior.Load() + + SmugglerHangar.Walls.SetColor(SmugglerHangar.Colors.colorSet1) + SmugglerHangar.Cranes.Set(SmugglerHangar.Cranes.on, SmugglerHangar.Colors.colorSet1) + SmugglerHangar.Floor.Style.Set(SmugglerHangar.Floor.Style.plain) + SmugglerHangar.Floor.Decals.Set(SmugglerHangar.Floor.Decals.decal1, SmugglerHangar.Colors.colorSet1) + + SmugglerHangar.Lighting.Ceiling.Set(SmugglerHangar.Lighting.Ceiling.yellow) + SmugglerHangar.Lighting.Walls.Set(SmugglerHangar.Lighting.Walls.neutral) + SmugglerHangar.Lighting.FakeLights.Set(SmugglerHangar.Lighting.FakeLights.yellow) + + SmugglerHangar.ModArea.Set(SmugglerHangar.ModArea.on, SmugglerHangar.Colors.colorSet1) + + SmugglerHangar.Office.Set(SmugglerHangar.Office.basic) + + SmugglerHangar.Bedroom.Style.Set(SmugglerHangar.Bedroom.Style.modern, SmugglerHangar.Colors.colorSet1) + SmugglerHangar.Bedroom.Blinds.Set(SmugglerHangar.Bedroom.Blinds.opened) + + SmugglerHangar.Details.Enable(SmugglerHangar.Details.bedroomClutter, false) + + RefreshInterior(SmugglerHangar.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_tuner/garage.lua b/resources/[housing]/bob74_ipl/dlc_tuner/garage.lua new file mode 100644 index 000000000..125f0f8ba --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_tuner/garage.lua @@ -0,0 +1,94 @@ +exports('GetTunerGarageObject', function() + return TunerGarage +end) + +TunerGarage = { + InteriorId = 285953, + + Ipl = { + Exterior = { + ipl = { + 'tr_tuner_shop_burton', + 'tr_tuner_shop_mesa', + 'tr_tuner_shop_mission', + 'tr_tuner_shop_rancho', + 'tr_tuner_shop_strawberry' + } + }, + + Load = function() + EnableIpl(TunerGarage.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(TunerGarage.Ipl.Exterior.ipl, false) + end, + }, + Entities = { + entity_set_bedroom = true, + entity_set_bedroom_empty = false, + entity_set_bombs = true, + entity_set_box_clutter = false, + entity_set_cabinets = false, + entity_set_car_lift_cutscene = true, + entity_set_car_lift_default = true, + entity_set_car_lift_purchase = true, + entity_set_chalkboard = false, + entity_set_container = false, + entity_set_cut_seats = false, + entity_set_def_table = false, + entity_set_drive = true, + entity_set_ecu = true, + entity_set_IAA = true, + entity_set_jammers = true, + entity_set_laptop = true, + entity_set_lightbox = true, + entity_set_methLab = false, + entity_set_plate = true, + entity_set_scope = true, + entity_set_style_1 = false, + entity_set_style_2 = false, + entity_set_style_3 = false, + entity_set_style_4 = false, + entity_set_style_5 = false, + entity_set_style_6 = false, + entity_set_style_7 = false, + entity_set_style_8 = false, + entity_set_style_9 = true, + entity_set_table = false, + entity_set_thermal = true, + entity_set_tints = true, + entity_set_train = true, + entity_set_virus = true, + + Set = function(name, state) + for entity, _ in pairs(TunerGarage.Entities) do + if entity == name then + TunerGarage.Entities[entity] = state + TunerGarage.Entities.Clear() + TunerGarage.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(TunerGarage.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(TunerGarage.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(TunerGarage.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(TunerGarage.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + TunerGarage.Ipl.Load() + TunerGarage.Entities.Load() + + RefreshInterior(TunerGarage.InteriorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_tuner/meetup.lua b/resources/[housing]/bob74_ipl/dlc_tuner/meetup.lua new file mode 100644 index 000000000..cb0ae1973 --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_tuner/meetup.lua @@ -0,0 +1,65 @@ +-- Los Santos Car Meet: -2000.0, 1113.211, -25.36243 +exports('GetTunerMeetupObject', function() + return TunerMeetup +end) + +TunerMeetup = { + InteriorId = 285697, + + Ipl = { + Exterior = { + ipl = { + 'tr_tuner_meetup', + 'tr_tuner_race_line' + } + }, + + Load = function() + EnableIpl(TunerMeetup.Ipl.Exterior.ipl, true) + end, + Remove = function() + EnableIpl(TunerMeetup.Ipl.Exterior.ipl, false) + end + }, + Entities = { + entity_set_meet_crew = true, + entity_set_meet_lights = true, + entity_set_meet_lights_cheap = false, + entity_set_player = true, + entity_set_test_crew = false, + entity_set_test_lights = true, + entity_set_test_lights_cheap = false, + entity_set_time_trial = true, + + Set = function(name, state) + for entity, _ in pairs(TunerMeetup.Entities) do + if entity == name then + TunerMeetup.Entities[entity] = state + TunerMeetup.Entities.Clear() + TunerMeetup.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(TunerMeetup.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(TunerMeetup.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(TunerMeetup.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(TunerMeetup.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + TunerMeetup.Ipl.Load() + TunerMeetup.Entities.Load() + + RefreshInterior(TunerMeetup.InteriorId) + end +} diff --git a/resources/[housing]/bob74_ipl/dlc_tuner/methlab.lua b/resources/[housing]/bob74_ipl/dlc_tuner/methlab.lua new file mode 100644 index 000000000..2e74e261a --- /dev/null +++ b/resources/[housing]/bob74_ipl/dlc_tuner/methlab.lua @@ -0,0 +1,42 @@ +exports('GetTunerMethLabObject', function() + return TunerMethLab +end) + +TunerMethLab = { + InteriorId = 284673, + + Entities = { + tintable_walls = true, + + Set = function(name, state) + for entity, _ in pairs(TunerMethLab.Entities) do + if entity == name then + TunerMethLab.Entities[entity] = state + TunerMethLab.Entities.Clear() + TunerMethLab.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(TunerMethLab.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(TunerMethLab.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(TunerMethLab.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(TunerMethLab.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + TunerMethLab.Entities.Load() + + SetInteriorEntitySetColor(TunerMethLab.InteriorId, TunerMethLab.Entities.tintable_walls, 3) + RefreshInterior(TunerMethLab.InteriorId) + end +} diff --git a/resources/[housing]/bob74_ipl/fxmanifest.lua b/resources/[housing]/bob74_ipl/fxmanifest.lua new file mode 100644 index 000000000..d254e6b17 --- /dev/null +++ b/resources/[housing]/bob74_ipl/fxmanifest.lua @@ -0,0 +1,166 @@ +fx_version 'cerulean' +game 'gta5' + +author 'Bob_74' +description 'Load and customize your map' +version '2.4.2' + +lua54 "yes" + +client_scripts { + "lib/common.lua" + , "lib/observers/interiorIdObserver.lua" + , "lib/observers/officeSafeDoorHandler.lua" + , "lib/observers/officeCullHandler.lua" + , "client.lua" + + -- GTA V + , "gtav/base.lua" -- Base IPLs to fix holes + , "gtav/ammunations.lua" + , "gtav/bahama.lua" + , "gtav/cargoship.lua" + , "gtav/floyd.lua" + , "gtav/franklin.lua" + , "gtav/franklin_aunt.lua" + , "gtav/graffitis.lua" + , "gtav/pillbox_hospital.lua" + , "gtav/lester_factory.lua" + , "gtav/michael.lua" + , "gtav/north_yankton.lua" + , "gtav/red_carpet.lua" + , "gtav/simeon.lua" + , "gtav/stripclub.lua" + , "gtav/trevors_trailer.lua" + , "gtav/ufo.lua" + , "gtav/zancudo_gates.lua" + + -- GTA Online + , "gta_online/apartment_hi_1.lua" + , "gta_online/apartment_hi_2.lua" + , "gta_online/house_hi_1.lua" + , "gta_online/house_hi_2.lua" + , "gta_online/house_hi_3.lua" + , "gta_online/house_hi_4.lua" + , "gta_online/house_hi_5.lua" + , "gta_online/house_hi_6.lua" + , "gta_online/house_hi_7.lua" + , "gta_online/house_hi_8.lua" + , "gta_online/house_mid_1.lua" + , "gta_online/house_low_1.lua" + + -- DLC High Life + , "dlc_high_life/apartment1.lua" + , "dlc_high_life/apartment2.lua" + , "dlc_high_life/apartment3.lua" + , "dlc_high_life/apartment4.lua" + , "dlc_high_life/apartment5.lua" + , "dlc_high_life/apartment6.lua" + + -- DLC Heists + , "dlc_heists/carrier.lua" + , "dlc_heists/yacht.lua" + + -- DLC Executives & Other Criminals + , "dlc_executive/apartment1.lua" + , "dlc_executive/apartment2.lua" + , "dlc_executive/apartment3.lua" + + -- DLC Finance & Felony + , "dlc_finance/office1.lua" + , "dlc_finance/office2.lua" + , "dlc_finance/office3.lua" + , "dlc_finance/office4.lua" + , "dlc_finance/organization.lua" + + -- DLC Bikers + , "dlc_bikers/cocaine.lua" + , "dlc_bikers/counterfeit_cash.lua" + , "dlc_bikers/document_forgery.lua" + , "dlc_bikers/meth.lua" + , "dlc_bikers/weed.lua" + , "dlc_bikers/clubhouse1.lua" + , "dlc_bikers/clubhouse2.lua" + , "dlc_bikers/gang.lua" + + -- DLC Import/Export + , "dlc_import/garage1.lua" + , "dlc_import/garage2.lua" + , "dlc_import/garage3.lua" + , "dlc_import/garage4.lua" + , "dlc_import/vehicle_warehouse.lua" + + -- DLC Gunrunning + , "dlc_gunrunning/bunkers.lua" + , "dlc_gunrunning/yacht.lua" + + -- DLC Smuggler's Run + , "dlc_smuggler/hangar.lua" + + -- DLC Doomsday Heist + , "dlc_doomsday/facility.lua" + + -- DLC After Hours + , "dlc_afterhours/nightclubs.lua" + + -- DLC Diamond Casino (Requires forced build 2060 or higher) + , "dlc_casino/casino.lua" + , "dlc_casino/penthouse.lua" + , "dlc_casino/arcade.lua" + , "dlc_casino/arcade_basement.lua" + + -- DLC Cayo Perico Heist (Requires forced build 2189 or higher) + , "dlc_cayoperico/base.lua" + , "dlc_cayoperico/nightclub.lua" + , "dlc_cayoperico/submarine.lua" + + -- DLC Tuners (Requires forced build 2372 or higher) + , "dlc_tuner/garage.lua" + , "dlc_tuner/meetup.lua" + , "dlc_tuner/methlab.lua" + + -- DLC The Contract (Requires forced build 2545 or higher) + , "dlc_security/studio.lua" + , "dlc_security/billboards.lua" + , "dlc_security/musicrooftop.lua" + , "dlc_security/garage.lua" + , "dlc_security/office1.lua" + , "dlc_security/office2.lua" + , "dlc_security/office3.lua" + , "dlc_security/office4.lua" + + -- DLC The Criminal Enterprises (Requires forced build 2699 or higher) + , "gta_mpsum2/simeonfix.lua" + , "gta_mpsum2/vehicle_warehouse.lua" + , "gta_mpsum2/warehouse.lua" + + -- DLC Los Santos Drug Wars (Requires forced build 2802 or higher) + , "dlc_drugwars/base.lua" + , "dlc_drugwars/freakshop.lua" + , "dlc_drugwars/garage.lua" + , "dlc_drugwars/lab.lua" + , "dlc_drugwars/traincrash.lua" + + -- DLC San Andreas Mercenaries (Requires forced build 2944 or higher) + , "dlc_mercenaries/club.lua" + , "dlc_mercenaries/lab.lua" + , "dlc_mercenaries/fixes.lua" + + -- DLC The Chop Shop (Requires forced build 3095 or higher) + , "dlc_chopshop/base.lua" + , "dlc_chopshop/cargoship.lua" + , "dlc_chopshop/cartel_garage.lua" + , "dlc_chopshop/lifeguard.lua" + , "dlc_chopshop/salvage.lua" + + -- DLC Bottom Dollar Bounties (Requires forced build 3258 or higher) + , "dlc_bounties/base.lua" + , "dlc_bounties/carrier.lua" + , "dlc_bounties/office.lua" + + -- DLC Agents of Sabotage (Requires forced build 3407 or higher) + , "dlc_agents/base.lua" + , "dlc_agents/factory.lua" + , "dlc_agents/office.lua" + , "dlc_agents/airstrip.lua" + , "dlc_agents/hangar_door.lua" +} diff --git a/resources/[housing]/bob74_ipl/gta_mpsum2/simeonfix.lua b/resources/[housing]/bob74_ipl/gta_mpsum2/simeonfix.lua new file mode 100644 index 000000000..346bbeef4 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_mpsum2/simeonfix.lua @@ -0,0 +1,55 @@ +exports('GetCriminalEnterpriseSmeonFixObject', function() + return CriminalEnterpriseSmeonFix +end) + +CriminalEnterpriseSmeonFix = { + InteriorId = 7170, + + Ipl = { + Interior = { + ipl = { + 'reh_simeonfix', + } + }, + + Load = function() + EnableIpl(CriminalEnterpriseSmeonFix.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(CriminalEnterpriseSmeonFix.Ipl.Interior.ipl, false) + end + }, + Entities = { + + Set = function(name, state) + for entity, _ in pairs(CriminalEnterpriseSmeonFix.Entities) do + if entity == name then + CriminalEnterpriseSmeonFix.Entities[entity] = state + CriminalEnterpriseSmeonFix.Entities.Clear() + CriminalEnterpriseSmeonFix.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(CriminalEnterpriseSmeonFix.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(CriminalEnterpriseSmeonFix.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(CriminalEnterpriseSmeonFix.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(CriminalEnterpriseSmeonFix.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + CriminalEnterpriseSmeonFix.Ipl.Load() + CriminalEnterpriseSmeonFix.Entities.Load() + + RefreshInterior(CriminalEnterpriseSmeonFix.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_mpsum2/vehicle_warehouse.lua b/resources/[housing]/bob74_ipl/gta_mpsum2/vehicle_warehouse.lua new file mode 100644 index 000000000..81fdcf018 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_mpsum2/vehicle_warehouse.lua @@ -0,0 +1,60 @@ +exports('GetCriminalEnterpriseVehicleWarehouseObject', function() + return CriminalEnterpriseVehicleWarehouse +end) + +CriminalEnterpriseVehicleWarehouse = { + InteriorId = 289537, + + Ipl = { + Interior = { + ipl = { + 'reh_int_placement_sum2_interior_0_dlc_int_03_sum2_milo_', + } + }, + + Load = function() + EnableIpl(CriminalEnterpriseVehicleWarehouse.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(CriminalEnterpriseVehicleWarehouse.Ipl.Interior.ipl, false) + end + }, + Entities = { + entity_set_office = true, + entity_set_light_option_1 = true, + entity_set_light_option_2 = true, + entity_set_light_option_3 = true, + entity_set_tint_options = true, + + Set = function(name, state) + for entity, _ in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do + if entity == name then + CriminalEnterpriseVehicleWarehouse.Entities[entity] = state + CriminalEnterpriseVehicleWarehouse.Entities.Clear() + CriminalEnterpriseVehicleWarehouse.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(CriminalEnterpriseVehicleWarehouse.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(CriminalEnterpriseVehicleWarehouse.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + CriminalEnterpriseVehicleWarehouse.Ipl.Load() + CriminalEnterpriseVehicleWarehouse.Entities.Load() + + RefreshInterior(CriminalEnterpriseVehicleWarehouse.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_mpsum2/warehouse.lua b/resources/[housing]/bob74_ipl/gta_mpsum2/warehouse.lua new file mode 100644 index 000000000..15dbaff13 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_mpsum2/warehouse.lua @@ -0,0 +1,60 @@ +exports('GetCriminalEnterpriseWarehouseObject', function() + return CriminalEnterpriseWarehouse +end) + +CriminalEnterpriseWarehouse = { + InteriorId = 289793, + + Ipl = { + Interior = { + ipl = { + 'reh_int_placement_sum2_interior_1_dlc_int_04_sum2_milo_', + } + }, + + Load = function() + EnableIpl(CriminalEnterpriseWarehouse.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(CriminalEnterpriseWarehouse.Ipl.Interior.ipl, false) + end + }, + Entities = { + entity_set_style_1 = false, + entity_set_style_2 = false, + entity_set_style_3 = false, + entity_set_style_4 = false, + entity_set_style_5 = true, + + Set = function(name, state) + for entity, _ in pairs(CriminalEnterpriseWarehouse.Entities) do + if entity == name then + CriminalEnterpriseWarehouse.Entities[entity] = state + CriminalEnterpriseWarehouse.Entities.Clear() + CriminalEnterpriseWarehouse.Entities.Load() + end + end + end, + Load = function() + for entity, state in pairs(CriminalEnterpriseWarehouse.Entities) do + if type(entity) == 'string' and state then + ActivateInteriorEntitySet(CriminalEnterpriseWarehouse.InteriorId, entity) + end + end + end, + Clear = function() + for entity, _ in pairs(CriminalEnterpriseWarehouse.Entities) do + if type(entity) == 'string' then + DeactivateInteriorEntitySet(CriminalEnterpriseWarehouse.InteriorId, entity) + end + end + end + }, + + LoadDefault = function() + CriminalEnterpriseWarehouse.Ipl.Load() + CriminalEnterpriseWarehouse.Entities.Load() + + RefreshInterior(CriminalEnterpriseWarehouse.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/apartment_hi_1.lua b/resources/[housing]/bob74_ipl/gta_online/apartment_hi_1.lua new file mode 100644 index 000000000..7729a612f --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/apartment_hi_1.lua @@ -0,0 +1,56 @@ +-- 4 Integrity Way, Apt 30 +-- High end apartment 1: -35.31277 -580.4199 88.71221 +exports('GetGTAOApartmentHi1Object', function() + return GTAOApartmentHi1 +end) + +GTAOApartmentHi1 = { + interiorId = 141313, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi1.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi1.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi1.interiorId, details, state, refresh) + end + }, + LoadDefault = function() + GTAOApartmentHi1.Strip.Enable({ + GTAOApartmentHi1.Strip.A, + GTAOApartmentHi1.Strip.B, + GTAOApartmentHi1.Strip.C + }, false) + GTAOApartmentHi1.Booze.Enable({ + GTAOApartmentHi1.Booze.A, + GTAOApartmentHi1.Booze.B, + GTAOApartmentHi1.Booze.C + }, false) + GTAOApartmentHi1.Smoke.Enable({ + GTAOApartmentHi1.Smoke.A, + GTAOApartmentHi1.Smoke.B, + GTAOApartmentHi1.Smoke.C + }, false) + + RefreshInterior(GTAOApartmentHi1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/apartment_hi_2.lua b/resources/[housing]/bob74_ipl/gta_online/apartment_hi_2.lua new file mode 100644 index 000000000..733a238a4 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/apartment_hi_2.lua @@ -0,0 +1,57 @@ +-- Dell Perro Heights, Apt 7 +-- High end apartment 2: -1477.14 -538.7499 55.5264 +exports('GetGTAOApartmentHi2Object', function() + return GTAOApartmentHi2 +end) + +GTAOApartmentHi2 = { + interiorId = 145665, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi2.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi2.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOApartmentHi2.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOApartmentHi2.Strip.Enable({ + GTAOApartmentHi2.Strip.A, + GTAOApartmentHi2.Strip.B, + GTAOApartmentHi2.Strip.C + }, false) + GTAOApartmentHi2.Booze.Enable({ + GTAOApartmentHi2.Booze.A, + GTAOApartmentHi2.Booze.B, + GTAOApartmentHi2.Booze.C + }, false) + GTAOApartmentHi2.Smoke.Enable({ + GTAOApartmentHi2.Smoke.A, + GTAOApartmentHi2.Smoke.B, + GTAOApartmentHi2.Smoke.C + }, false) + + RefreshInterior(GTAOApartmentHi2.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_1.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_1.lua new file mode 100644 index 000000000..ee5b73ed1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_1.lua @@ -0,0 +1,57 @@ +-- 3655 Wild Oats Drive +-- High end house 1: -169.286 486.4938 137.4436 +exports('GetGTAOHouseHi1Object', function() + return GTAOHouseHi1 +end) + +GTAOHouseHi1 = { + interiorId = 207105, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi1.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi1.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi1.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi1.Strip.Enable({ + GTAOHouseHi1.Strip.A, + GTAOHouseHi1.Strip.B, + GTAOHouseHi1.Strip.C + }, false) + GTAOHouseHi1.Booze.Enable({ + GTAOHouseHi1.Booze.A, + GTAOHouseHi1.Booze.B, + GTAOHouseHi1.Booze.C + }, false) + GTAOHouseHi1.Smoke.Enable({ + GTAOHouseHi1.Smoke.A, + GTAOHouseHi1.Smoke.B, + GTAOHouseHi1.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_2.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_2.lua new file mode 100644 index 000000000..e1c9296b2 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_2.lua @@ -0,0 +1,57 @@ +-- 2044 North Conker Avenue +-- High end house 2: 340.9412 437.1798 149.3925 +exports('GetGTAOHouseHi2Object', function() + return GTAOHouseHi2 +end) + +GTAOHouseHi2 = { + interiorId = 206081, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi2.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi2.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi2.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi2.Strip.Enable({ + GTAOHouseHi2.Strip.A, + GTAOHouseHi2.Strip.B, + GTAOHouseHi2.Strip.C + }, false) + GTAOHouseHi2.Booze.Enable({ + GTAOHouseHi2.Booze.A, + GTAOHouseHi2.Booze.B, + GTAOHouseHi2.Booze.C + }, false) + GTAOHouseHi2.Smoke.Enable({ + GTAOHouseHi2.Smoke.A, + GTAOHouseHi2.Smoke.B, + GTAOHouseHi2.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi2.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_3.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_3.lua new file mode 100644 index 000000000..f8bec5ed1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_3.lua @@ -0,0 +1,57 @@ +-- 2045 North Conker Avenue +-- High end house 3: 373.023 416.105 145.7006 +exports('GetGTAOHouseHi3Object', function() + return GTAOHouseHi3 +end) + +GTAOHouseHi3 = { + interiorId = 206337, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi3.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi3.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi3.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi3.Strip.Enable({ + GTAOHouseHi3.Strip.A, + GTAOHouseHi3.Strip.B, + GTAOHouseHi3.Strip.C + }, false) + GTAOHouseHi3.Booze.Enable({ + GTAOHouseHi3.Booze.A, + GTAOHouseHi3.Booze.B, + GTAOHouseHi3.Booze.C + }, false) + GTAOHouseHi3.Smoke.Enable({ + GTAOHouseHi3.Smoke.A, + GTAOHouseHi3.Smoke.B, + GTAOHouseHi3.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi3.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_4.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_4.lua new file mode 100644 index 000000000..6e3d02439 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_4.lua @@ -0,0 +1,57 @@ +-- 2862 Hillcrest Avenue +-- High end house 4: -676.127 588.612 145.1698 +exports('GetGTAOHouseHi4Object', function() + return GTAOHouseHi4 +end) + +GTAOHouseHi4 = { + interiorId = 208129, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi4.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi4.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi4.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi4.Strip.Enable({ + GTAOHouseHi4.Strip.A, + GTAOHouseHi4.Strip.B, + GTAOHouseHi4.Strip.C + }, false) + GTAOHouseHi4.Booze.Enable({ + GTAOHouseHi4.Booze.A, + GTAOHouseHi4.Booze.B, + GTAOHouseHi4.Booze.C + }, false) + GTAOHouseHi4.Smoke.Enable({ + GTAOHouseHi4.Smoke.A, + GTAOHouseHi4.Smoke.B, + GTAOHouseHi4.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi4.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_5.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_5.lua new file mode 100644 index 000000000..1d5f425e6 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_5.lua @@ -0,0 +1,57 @@ +-- 2868 Hillcrest Avenue +-- High end house 5: -763.107 615.906 144.1401 +exports('GetGTAOHouseHi5Object', function() + return GTAOHouseHi5 +end) + +GTAOHouseHi5 = { + interiorId = 207617, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi5.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi5.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi5.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi5.Strip.Enable({ + GTAOHouseHi5.Strip.A, + GTAOHouseHi5.Strip.B, + GTAOHouseHi5.Strip.C + }, false) + GTAOHouseHi5.Booze.Enable({ + GTAOHouseHi5.Booze.A, + GTAOHouseHi5.Booze.B, + GTAOHouseHi5.Booze.C + }, false) + GTAOHouseHi5.Smoke.Enable({ + GTAOHouseHi5.Smoke.A, + GTAOHouseHi5.Smoke.B, + GTAOHouseHi5.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi5.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_6.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_6.lua new file mode 100644 index 000000000..12433111d --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_6.lua @@ -0,0 +1,57 @@ +-- 2874 Hillcrest Avenue +-- High end house 6: -857.798 682.563 152.6529 +exports('GetGTAOHouseHi6Object', function() + return GTAOHouseHi6 +end) + +GTAOHouseHi6 = { + interiorId = 207361, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi6.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi6.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi6.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi6.Strip.Enable({ + GTAOHouseHi6.Strip.A, + GTAOHouseHi6.Strip.B, + GTAOHouseHi6.Strip.C + }, false) + GTAOHouseHi6.Booze.Enable({ + GTAOHouseHi6.Booze.A, + GTAOHouseHi6.Booze.B, + GTAOHouseHi6.Booze.C + }, false) + GTAOHouseHi6.Smoke.Enable({ + GTAOHouseHi6.Smoke.A, + GTAOHouseHi6.Smoke.B, + GTAOHouseHi6.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi6.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_7.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_7.lua new file mode 100644 index 000000000..8f50a34d8 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_7.lua @@ -0,0 +1,57 @@ +-- 2677 Whispymound Drive +-- High end house 7: 120.5 549.952 184.097 +exports('GetGTAOHouseHi7Object', function() + return GTAOHouseHi7 +end) + +GTAOHouseHi7 = { + interiorId = 206593, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi7.Strip.Enable({ + GTAOHouseHi7.Strip.A, + GTAOHouseHi7.Strip.B, + GTAOHouseHi7.Strip.C + }, false) + GTAOHouseHi7.Booze.Enable({ + GTAOHouseHi7.Booze.A, + GTAOHouseHi7.Booze.B, + GTAOHouseHi7.Booze.C + }, false) + GTAOHouseHi7.Smoke.Enable({ + GTAOHouseHi7.Smoke.A, + GTAOHouseHi7.Smoke.B, + GTAOHouseHi7.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi7.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_hi_8.lua b/resources/[housing]/bob74_ipl/gta_online/house_hi_8.lua new file mode 100644 index 000000000..d83072685 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_hi_8.lua @@ -0,0 +1,57 @@ +-- 2133 Mad Wayne Thunder +-- High end house 8: -1288 440.748 97.69459 +exports('GetGTAOHouseHi8Object', function() + return GTAOHouseHi8 +end) + +GTAOHouseHi8 = { + interiorId = 208385, + + Strip = { + A = "Apart_Hi_Strip_A", + B = "Apart_Hi_Strip_B", + C = "Apart_Hi_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi8.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Hi_Booze_A", + B = "Apart_Hi_Booze_B", + C = "Apart_Hi_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi8.interiorId, details, state, refresh) + end + }, + Smoke = { + A = "Apart_Hi_Smokes_A", + B = "Apart_Hi_Smokes_B", + C = "Apart_Hi_Smokes_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseHi8.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + GTAOHouseHi8.Strip.Enable({ + GTAOHouseHi8.Strip.A, + GTAOHouseHi8.Strip.B, + GTAOHouseHi8.Strip.C + }, false) + GTAOHouseHi8.Booze.Enable({ + GTAOHouseHi8.Booze.A, + GTAOHouseHi8.Booze.B, + GTAOHouseHi8.Booze.C + }, false) + GTAOHouseHi8.Smoke.Enable({ + GTAOHouseHi8.Smoke.A, + GTAOHouseHi8.Smoke.B, + GTAOHouseHi8.Smoke.C + }, false) + + RefreshInterior(GTAOHouseHi8.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_low_1.lua b/resources/[housing]/bob74_ipl/gta_online/house_low_1.lua new file mode 100644 index 000000000..4cf81657f --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_low_1.lua @@ -0,0 +1,54 @@ +-- Low end house 1: 261.4586 -998.8196 -99.00863 +exports('GetGTAOHouseLow1Object', function() + return GTAOHouseLow1 +end) + +GTAOHouseLow1 = { + interiorId = 149761, + Strip = { + A = "Studio_Lo_Strip_A", B = "Studio_Lo_Strip_B", C = "Studio_Lo_Strip_C", + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseLow1.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Studio_Lo_Booze_A", B = "Studio_Lo_Booze_B", C = "Studio_Lo_Booze_C", + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseLow1.interiorId, details, state, refresh) + end + }, + Smoke = { + none = "", stage1 = "Studio_Lo_Smoke_A", stage2 = "Studio_Lo_Smoke_B", stage3 = "Studio_Lo_Smoke_C", + Set = function(smoke, refresh) + GTAOHouseLow1.Smoke.Clear(false) + if smoke ~= nil then + SetIplPropState(GTAOHouseLow1.interiorId, smoke, true, refresh) + else + if refresh then RefreshInterior(GTAOHouseLow1.interiorId) end + end + end, + Clear = function(refresh) + SetIplPropState(GTAOHouseLow1.interiorId, { + GTAOHouseLow1.Smoke.stage1, + GTAOHouseLow1.Smoke.stage2, + GTAOHouseLow1.Smoke.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + GTAOHouseLow1.Strip.Enable({ + GTAOHouseLow1.Strip.A, + GTAOHouseLow1.Strip.B, + GTAOHouseLow1.Strip.C + }, false) + GTAOHouseLow1.Booze.Enable({ + GTAOHouseLow1.Booze.A, + GTAOHouseLow1.Booze.B, + GTAOHouseLow1.Booze.C + }, false) + GTAOHouseLow1.Smoke.Set(GTAOHouseLow1.Smoke.none) + + RefreshInterior(GTAOHouseLow1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gta_online/house_mid_1.lua b/resources/[housing]/bob74_ipl/gta_online/house_mid_1.lua new file mode 100644 index 000000000..adfd3a268 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gta_online/house_mid_1.lua @@ -0,0 +1,68 @@ +-- Middle end house 1: 347.2686 -999.2955 -99.19622 +exports('GetGTAOHouseMid1Object', function() + return GTAOHouseMid1 +end) + +GTAOHouseMid1 = { + interiorId = 148225, + + Strip = { + A = "Apart_Mid_Strip_A", + B = "Apart_Mid_Strip_B", + C = "Apart_Mid_Strip_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseMid1.interiorId, details, state, refresh) + end + }, + Booze = { + A = "Apart_Mid_Booze_A", + B = "Apart_Mid_Booze_B", + C = "Apart_Mid_Booze_C", + + Enable = function(details, state, refresh) + SetIplPropState(GTAOHouseMid1.interiorId, details, state, refresh) + end + }, + Smoke = { + none = "", + stage1 = "Apart_Mid_Smoke_A", + stage2 = "Apart_Mid_Smoke_B", + stage3 = "Apart_Mid_Smoke_C", + + Set = function(smoke, refresh) + GTAOHouseMid1.Smoke.Clear(false) + + if smoke ~= nil then + SetIplPropState(GTAOHouseMid1.interiorId, smoke, true, refresh) + else + if refresh then + RefreshInterior(GTAOHouseMid1.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(GTAOHouseMid1.interiorId, { + GTAOHouseMid1.Smoke.stage1, + GTAOHouseMid1.Smoke.stage2, + GTAOHouseMid1.Smoke.stage3 + }, false, refresh) + end + }, + + LoadDefault = function() + GTAOHouseMid1.Strip.Enable({ + GTAOHouseMid1.Strip.A, + GTAOHouseMid1.Strip.B, + GTAOHouseMid1.Strip.C + }, false) + GTAOHouseMid1.Booze.Enable({ + GTAOHouseMid1.Booze.A, + GTAOHouseMid1.Booze.B, + GTAOHouseMid1.Booze.C + }, false) + GTAOHouseMid1.Smoke.Set(GTAOHouseMid1.Smoke.none) + + RefreshInterior(GTAOHouseMid1.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/ammunations.lua b/resources/[housing]/bob74_ipl/gtav/ammunations.lua new file mode 100644 index 000000000..a74688460 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/ammunations.lua @@ -0,0 +1,39 @@ +exports('GetAmmunationsObject', function() + return Ammunations +end) + +Ammunations = { + ammunationsId = { + 140289, -- 249.8, -47.1, 70.0 + 153857, -- 844.0, -1031.5, 28.2 + 168193, -- -664.0, -939.2, 21.8 + 164609, -- -1308.7, -391.5, 36.7 + 176385, -- -3170.0, 1085.0, 20.8 + 175617, -- -1116.0, 2694.1, 18.6 + 200961, -- 1695.2, 3756.0, 34.7 + 180481, -- -328.7, 6079.0, 31.5 + 178689 -- 2569.8, 297.8, 108.7 + }, + gunclubsId = { + 137729, -- 19.1, -1110.0, 29.8 + 248065 -- 811.0, -2152.0, 29.6 + }, + + Details = { + hooks = "GunStoreHooks", -- Hooks for gun displaying + hooksClub = "GunClubWallHooks", -- Hooks for gun displaying + + Enable = function(details, state, refresh) + if details == Ammunations.Details.hooks then + SetIplPropState(Ammunations.ammunationsId, details, state, refresh) + elseif details == Ammunations.Details.hooksClub then + SetIplPropState(Ammunations.gunclubsId, details, state, refresh) + end + end + }, + + LoadDefault = function() + Ammunations.Details.Enable(Ammunations.Details.hooks, true, true) + Ammunations.Details.Enable(Ammunations.Details.hooksClub, true, true) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/bahama.lua b/resources/[housing]/bob74_ipl/gtav/bahama.lua new file mode 100644 index 000000000..a9a463835 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/bahama.lua @@ -0,0 +1,12 @@ +-- Bahama Mamas: -1388.0013, -618.41967, 30.819599 +exports('GetBahamaMamasObject', function() + return BahamaMamas +end) + +BahamaMamas = { + ipl = "hei_sm_16_interior_v_bahama_milo_", + + Enable = function(state) + EnableIpl(BahamaMamas.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/base.lua b/resources/[housing]/bob74_ipl/gtav/base.lua new file mode 100644 index 000000000..68585b696 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/base.lua @@ -0,0 +1,114 @@ +CreateThread(function() + -- Heist Jewel: -637.20159 -239.16250 38.1 + RequestIpl("post_hiest_unload") + + -- Max Renda: -585.8247, -282.72, 35.45475 + RequestIpl("refit_unload") + + -- Heist Union Depository: 2.69689322, -667.0166, 16.1306286 + RequestIpl("FINBANK") + + -- Morgue: 239.75195, -1360.64965, 39.53437 + RequestIpl("Coroner_Int_on") + RequestIpl("coronertrash") + + -- Cluckin Bell: -146.3837, 6161.5, 30.2062 + RequestIpl("CS1_02_cf_onmission1") + RequestIpl("CS1_02_cf_onmission2") + RequestIpl("CS1_02_cf_onmission3") + RequestIpl("CS1_02_cf_onmission4") + + -- Grapeseed's farm: 2447.9, 4973.4, 47.7 + RequestIpl("farm") + RequestIpl("farmint") + RequestIpl("farm_lod") + RequestIpl("farm_props") + RequestIpl("des_farmhouse") + + -- FIB lobby: 105.4557, -745.4835, 44.7548 + RequestIpl("FIBlobby") + + -- FIB Roof: 134.33, -745.95, 266.98 + RequestIpl("atriumglmission") + + -- FIB Fountain 174.184, -667.902, 43.140 + RemoveIpl('dt1_05_hc_end') + RemoveIpl('dt1_05_hc_req') + RequestIpl('dt1_05_hc_remove') + + -- Billboard: iFruit + RequestIpl("FruitBB") + RequestIpl("sc1_01_newbill") + RequestIpl("hw1_02_newbill") + RequestIpl("hw1_emissive_newbill") + RequestIpl("sc1_14_newbill") + RequestIpl("dt1_17_newbill") + + -- Lester's factory: 716.84, -962.05, 31.59 + RequestIpl("id2_14_during_door") + RequestIpl("id2_14_during1") + + -- Life Invader lobby: -1047.9, -233.0, 39.0 + RequestIpl("facelobby") + + -- Tunnels + RequestIpl("v_tunnel_hole") + + -- Carwash: 55.7, -1391.3, 30.5 + RequestIpl("Carwash_with_spinners") + + -- Stadium "Fame or Shame": -248.49159240722656, -2010.509033203125, 34.57429885864258 + RequestIpl("sp1_10_real_interior") + RequestIpl("sp1_10_real_interior_lod") + + -- House in Banham Canyon: -3086.428, 339.2523, 6.3717 + RequestIpl("ch1_02_open") + + -- Garage in La Mesa (autoshop): 970.27453, -1826.56982, 31.11477 + RequestIpl("bkr_bi_id1_23_door") + + -- Hill Valley church - Grave: -282.46380000, 2835.84500000, 55.91446000 + RequestIpl("lr_cs6_08_grave_closed") + + -- Lost's trailer park: 49.49379000, 3744.47200000, 46.38629000 + RequestIpl("methtrailer_grp1") + + -- Lost safehouse: 984.1552, -95.3662, 74.50 + RequestIpl("bkr_bi_hw1_13_int") + + -- Raton Canyon river: -1652.83, 4445.28, 2.52 + RequestIpl("CanyonRvrShallow") + + -- Josh's house: -1117.1632080078, 303.090698, 66.52217 + RequestIpl("bh1_47_joshhse_unburnt") + RequestIpl("bh1_47_joshhse_unburnt_lod") + + -- Bahama Mamas: -1388.0013, -618.41967, 30.819599 + RequestIpl("hei_sm_16_interior_v_bahama_milo_") + + -- Zancudo River (need streamed content): 86.815, 3191.649, 30.463 + RequestIpl("cs3_05_water_grp1") + RequestIpl("cs3_05_water_grp1_lod") + RequestIpl("trv1_trail_start") + + -- Cassidy Creek (need streamed content): -425.677, 4433.404, 27.3253 + RequestIpl("canyonriver01") + RequestIpl("canyonriver01_lod") + + -- Ferris wheel + RequestIpl("ferris_finale_anim") + + -- Train track: 2626.374, 2949.869, 39.1409 + RequestIpl("ld_rail_01_track") + RequestIpl("ld_rail_02_track") + + -- Docks cranes: 887.7344, -2922.285, 34.000 + RequestIpl("dockcrane1") + RequestIpl("pcranecont") + + -- Construction lift: -180.5771, -1016.9276, 28.2893 + RequestIpl("dt1_21_prop_lift_on") + + -- Davis Quartz train: 2773.6099, 2835.3274, 35.1903 + RequestIpl("cs5_4_trains") +end) diff --git a/resources/[housing]/bob74_ipl/gtav/cargoship.lua b/resources/[housing]/bob74_ipl/gtav/cargoship.lua new file mode 100644 index 000000000..1a5b7e7c1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/cargoship.lua @@ -0,0 +1,33 @@ +-- Cargo ship: -168.1825, -2364.8259, 20.000 +exports('GetCargoShipObject', function() + return CargoShip +end) + +CargoShip = { + State = { + normal = { + "cargoship", + "ship_occ_grp1" + }, + sunk = { + "sunkcargoship", + "ship_occ_grp2" + }, + + Set = function(state) + CargoShip.State.Clear(false) + + EnableIpl(state, state) + end, + Clear = function(refresh) + EnableIpl({ + CargoShip.State.normal, + CargoShip.State.sunk + }, false) + end + }, + + LoadDefault = function() + CargoShip.State.Set(CargoShip.State.normal) + end +} \ No newline at end of file diff --git a/resources/[housing]/bob74_ipl/gtav/floyd.lua b/resources/[housing]/bob74_ipl/gtav/floyd.lua new file mode 100644 index 000000000..7b85e266e --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/floyd.lua @@ -0,0 +1,63 @@ +exports('GetFloydObject', function() + return Floyd +end) + +Floyd = { + interiorId = 171777, + + Style = { + normal = { + "swap_clean_apt", + "layer_debra_pic", + "layer_whiskey", + "swap_sofa_A" + }, + messedUp = { + "layer_mess_A", + "layer_mess_B", + "layer_mess_C", + "layer_sextoys_a", + "swap_sofa_B", + "swap_wade_sofa_A", + "layer_wade_shit", + "layer_torture" + }, + + Set = function(style, refresh) + Floyd.Style.Clear(false) + + SetIplPropState(Floyd.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Floyd.interiorId, { + Floyd.Style.normal, + Floyd.Style.messedUp + }, false, refresh) + end + }, + MrJam = { + normal = "swap_mrJam_A", + jammed = "swap_mrJam_B", + jammedOnTable = "swap_mrJam_C", + + Set = function(mrJam, refresh) + Floyd.MrJam.Clear(false) + + SetIplPropState(Floyd.interiorId, mrJam, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Floyd.interiorId, { + Floyd.MrJam.normal, + Floyd.MrJam.jammed, + Floyd.MrJam.jammedOnTable + }, false, refresh) + end + }, + + LoadDefault = function() + Floyd.Style.Set(Floyd.Style.normal) + Floyd.MrJam.Set(Floyd.MrJam.normal) + + RefreshInterior(Floyd.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/franklin.lua b/resources/[housing]/bob74_ipl/gtav/franklin.lua new file mode 100644 index 000000000..e8794e70c --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/franklin.lua @@ -0,0 +1,73 @@ +exports('GetFranklinObject', function() + return Franklin +end) + +Franklin = { + interiorId = 206849, + + Style = { + empty = "", + unpacking = "franklin_unpacking", + settled = { + "franklin_unpacking", + "franklin_settled" + }, + cardboxes = "showhome_only", + + Set = function(style, refresh) + Franklin.Style.Clear(false) + + if style ~= "" then + SetIplPropState(Franklin.interiorId, style, true, refresh) + else + if refresh then + RefreshInterior(Franklin.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(Franklin.interiorId, { + Franklin.Style.settled, + Franklin.Style.unpacking, + Franklin.Style.cardboxes + }, false, refresh) + end + }, + GlassDoor = { + opened = "unlocked", + closed = "locked", + + Set = function(door, refresh) + Franklin.GlassDoor.Clear(false) + + SetIplPropState(Franklin.interiorId, door, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Franklin.interiorId, { + Franklin.GlassDoor.opened, + Franklin.GlassDoor.closed + }, false, refresh) + end + }, + Details = { + flyer = "progress_flyer", -- Mountain flyer on the kitchen counter + tux = "progress_tux", -- Tuxedo suit in the wardrobe + tshirt = "progress_tshirt", -- "I <3 LS" tshirt on the bed + bong = "bong_and_wine", -- Bong on the table + + Enable = function(details, state, refresh) + SetIplPropState(Franklin.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + Franklin.Style.Set(Franklin.Style.empty) + Franklin.GlassDoor.Set(Franklin.GlassDoor.opened) + Franklin.Details.Enable(Franklin.Details.flyer, false) + Franklin.Details.Enable(Franklin.Details.tux, false) + Franklin.Details.Enable(Franklin.Details.tshirt, false) + Franklin.Details.Enable(Franklin.Details.bong, false) + + RefreshInterior(Franklin.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/franklin_aunt.lua b/resources/[housing]/bob74_ipl/gtav/franklin_aunt.lua new file mode 100644 index 000000000..b0ba2c73e --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/franklin_aunt.lua @@ -0,0 +1,47 @@ +exports('GetFranklinAuntObject', function() + return FranklinAunt +end) + +FranklinAunt = { + interiorId = 197889, + + Style = { + empty = "", + franklinStuff = "V_57_FranklinStuff", + franklinLeft = "V_57_Franklin_LEFT", + + Set = function(style, refresh) + FranklinAunt.Style.Clear(false) + + if style ~= "" then + SetIplPropState(FranklinAunt.interiorId, style, true, refresh) + else + if refresh then + RefreshInterior(FranklinAunt.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(FranklinAunt.interiorId, { + FranklinAunt.Style.franklinStuff, + FranklinAunt.Style.franklinLeft + }, false, refresh) + end + }, + Details = { + bandana = "V_57_GangBandana", -- Bandana on the bed + bag = "V_57_Safari", -- Bag in the closet + + Enable = function(details, state, refresh) + SetIplPropState(FranklinAunt.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + FranklinAunt.Style.Set(FranklinAunt.Style.empty) + FranklinAunt.Details.Enable(FranklinAunt.Details.bandana, false) + FranklinAunt.Details.Enable(FranklinAunt.Details.bag, false) + + RefreshInterior(FranklinAunt.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/graffitis.lua b/resources/[housing]/bob74_ipl/gtav/graffitis.lua new file mode 100644 index 000000000..be34afae9 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/graffitis.lua @@ -0,0 +1,14 @@ +exports('GetGraffitisObject', function() + return Graffitis +end) + +Graffitis = { + ipl = { + "ch3_rd2_bishopschickengraffiti", -- 1861.28, 2402.11, 58.53 + "cs5_04_mazebillboardgraffiti", -- 2697.32, 3162.18, 58.1 + "cs5_roads_ronoilgraffiti" -- 2119.12, 3058.21, 53.25 + }, + Enable = function(state) + EnableIpl(Graffitis.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/lester_factory.lua b/resources/[housing]/bob74_ipl/gtav/lester_factory.lua new file mode 100644 index 000000000..399e255f6 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/lester_factory.lua @@ -0,0 +1,31 @@ +exports('GetLesterFactoryObject', function() + return LesterFactory +end) + +LesterFactory = { + interiorId = 92674, + + Details = { + bluePrint = "V_53_Agency_Blueprint", -- Blueprint on the office desk + bag = "V_35_KitBag", -- Bag under the office desk + fireMan = "V_35_Fireman", -- Firemans helmets in the office + armour = "V_35_Body_Armour", -- Body armor in storage + gasMask = "Jewel_Gasmasks", -- Gas mask and suit in storage + janitorStuff = "v_53_agency _overalls", -- Janitor stuff in the storage (yes, there is a whitespace) + + Enable = function(details, state, refresh) + SetIplPropState(LesterFactory.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + LesterFactory.Details.Enable(LesterFactory.Details.bluePrint, false) + LesterFactory.Details.Enable(LesterFactory.Details.bag, false) + LesterFactory.Details.Enable(LesterFactory.Details.fireMan, false) + LesterFactory.Details.Enable(LesterFactory.Details.armour, false) + LesterFactory.Details.Enable(LesterFactory.Details.gasMask, false) + LesterFactory.Details.Enable(LesterFactory.Details.janitorStuff, false) + + RefreshInterior(LesterFactory.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/michael.lua b/resources/[housing]/bob74_ipl/gtav/michael.lua new file mode 100644 index 000000000..cb54d3098 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/michael.lua @@ -0,0 +1,85 @@ +exports('GetMichaelObject', function() + return Michael +end) + +Michael = { + interiorId = 166657, + garageId = 166401, + + Style = { + normal = { + "V_Michael_bed_tidy", + "V_Michael_M_items", + "V_Michael_D_items", + "V_Michael_S_items", + "V_Michael_L_Items" + }, + moved = { + "V_Michael_bed_Messy", + "V_Michael_M_moved", + "V_Michael_D_Moved", + "V_Michael_L_Moved", + "V_Michael_S_items_swap", + "V_Michael_M_items_swap" + }, + + Set = function(style, refresh) + Michael.Style.Clear(false) + + SetIplPropState(Michael.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Michael.interiorId, { + Michael.Style.normal, + Michael.Style.moved + }, false, refresh) + end + }, + Bed = { + tidy = "V_Michael_bed_tidy", + messy = "V_Michael_bed_Messy", + + Set = function(bed, refresh) + Michael.Bed.Clear(false) + + SetIplPropState(Michael.interiorId, bed, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Michael.interiorId, { + Michael.Bed.tidy, + Michael.Bed.messy + }, false, refresh) + end + }, + Garage = { + scuba = "V_Michael_Scuba", -- Scuba diver gear + + Enable = function(scuba, state, refresh) + SetIplPropState(Michael.garageId, scuba, state, refresh) + end + }, + Details = { + moviePoster = "Michael_premier", -- Meltdown movie poster + fameShamePoste = "V_Michael_FameShame", -- Next to Tracey's bed + planeTicket = "V_Michael_plane_ticket", -- Plane ticket + spyGlasses = "V_Michael_JewelHeist", -- On the shelf inside Michael's bedroom + bugershot = "burgershot_yoga", -- Bag and cup in the kitchen, next to the sink + + Enable = function(details, state, refresh) + SetIplPropState(Michael.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + Michael.Garage.Enable(Michael.Garage.scuba, false, true) + Michael.Style.Set(Michael.Style.normal) + Michael.Bed.Set(Michael.Bed.tidy) + Michael.Details.Enable(Michael.Details.moviePoster, false) + Michael.Details.Enable(Michael.Details.fameShamePoste, false) + Michael.Details.Enable(Michael.Details.spyGlasses, false) + Michael.Details.Enable(Michael.Details.planeTicket, false) + Michael.Details.Enable(Michael.Details.bugershot, false) + + RefreshInterior(Michael.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/north_yankton.lua b/resources/[housing]/bob74_ipl/gtav/north_yankton.lua new file mode 100644 index 000000000..d1a92093e --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/north_yankton.lua @@ -0,0 +1,74 @@ +exports('GetNorthYanktonObject', function() + return NorthYankton +end) + +NorthYankton = { + ipl = { + "prologue01", + "prologue01c", + "prologue01d", + "prologue01e", + "prologue01f", + "prologue01g", + "prologue01h", + "prologue01i", + "prologue01j", + "prologue01k", + "prologue01z", + "prologue02", + "prologue03", + "prologue03b", + "prologue04", + "prologue04b", + "prologue05", + "prologue05b", + "prologue06", + "prologue06b", + "prologue_occl", + "prologue06_int", + "prologuerd", + "prologuerdb", + "prologue_DistantLights", + "prologue_LODLights", + "DES_ProTree_start", + "prologue_m2_door", + "prologue03_grv_cov" + }, + + Grave = { + covered = "prologue03_grv_cov", + dug = "prologue03_grv_dug", + funeral = "prologue03_grv_fun", + + Set = function(grave) + NorthYankton.Grave.Clear() + + EnableIpl(grave, true) + end, + Clear = function() + EnableIpl({ + NorthYankton.Grave.covered, + NorthYankton.Grave.dug, + NorthYankton.Grave.funeral + }, false) + end + }, + + Traffic = { + Enable = function(state) + SetAllPathsCacheBoundingstruct(state) + + SetRoadsInAngledArea(5526.24, -5137.23, 61.78925, 3679.327, -4973.879, 125.0828, 192, false, state, true); + SetRoadsInAngledArea(3691.211, -4941.24, 94.59368, 3511.115, -4869.191, 126.7621, 16, false, state, true); + SetRoadsInAngledArea(3510.004, -4865.81, 94.69557, 3204.424, -4833.817, 126.8152, 16, false, state, true); + SetRoadsInAngledArea(3186.534, -4832.798, 109.8148, 3202.187, -4833.993, 114.815, 16, false, state, true); + end + }, + + Enable = function(state) + NorthYankton.Grave.Clear() + NorthYankton.Traffic.Enable(state) + + EnableIpl(NorthYankton.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/pillbox_hospital.lua b/resources/[housing]/bob74_ipl/gtav/pillbox_hospital.lua new file mode 100644 index 000000000..ed8bfc0b0 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/pillbox_hospital.lua @@ -0,0 +1,12 @@ +-- Pillbox hospital: 307.1680, -590.807, 43.280 +exports('GetPillboxHospitalObject', function() + return PillboxHospital +end) + +PillboxHospital = { + ipl = "rc12b_default", + + Enable = function(state) + EnableIpl(PillboxHospital.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/red_carpet.lua b/resources/[housing]/bob74_ipl/gtav/red_carpet.lua new file mode 100644 index 000000000..53ec831bd --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/red_carpet.lua @@ -0,0 +1,11 @@ +exports('GetRedCarpetObject', function() + return RedCarpet +end) + +RedCarpet = { + ipl = "redCarpet", + + Enable = function(state) + EnableIpl(RedCarpet.ipl, state) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/simeon.lua b/resources/[housing]/bob74_ipl/gtav/simeon.lua new file mode 100644 index 000000000..031357341 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/simeon.lua @@ -0,0 +1,73 @@ +exports('GetSimeonObject', function() + return Simeon +end) + +Simeon = { + interiorId = 7170, + + Ipl = { + Interior = { + ipl = { + "shr_int" + }, + + Load = function() + EnableIpl(Simeon.Ipl.Interior.ipl, true) + end, + Remove = function() + EnableIpl(Simeon.Ipl.Interior.ipl, false) + end + } + }, + Style = { + normal = "csr_beforeMission", + noGlass = "csr_inMission", + destroyed = "csr_afterMissionA", + fixed = "csr_afterMissionB", + + Set = function(style, refresh) + Simeon.Style.Clear(false) + + SetIplPropState(Simeon.interiorId, style, true, refresh) + end, + Clear = function(refresh) + SetIplPropState(Simeon.interiorId, { + Simeon.Style.normal, + Simeon.Style.noGlass, + Simeon.Style.destroyed, + Simeon.Style.fixed + }, false, refresh) + end + }, + Shutter = { + none = "", + opened = "shutter_open", + closed = "shutter_closed", + + Set = function(shutter, refresh) + Simeon.Shutter.Clear(false) + + if shutter ~= "" then + SetIplPropState(Simeon.interiorId, shutter, true, refresh) + else + if refresh then + RefreshInterior(Simeon.interiorId) + end + end + end, + Clear = function(refresh) + SetIplPropState(Simeon.interiorId, { + Simeon.Shutter.opened, + Simeon.Shutter.closed + }, false, refresh) + end + }, + + LoadDefault = function() + Simeon.Ipl.Interior.Load() + Simeon.Style.Set(Simeon.Style.normal) + Simeon.Shutter.Set(Simeon.Shutter.opened) + + RefreshInterior(Simeon.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/stripclub.lua b/resources/[housing]/bob74_ipl/gtav/stripclub.lua new file mode 100644 index 000000000..87606c88e --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/stripclub.lua @@ -0,0 +1,18 @@ +exports('GetStripClubObject', function() + return StripClub +end) + +StripClub = { + interiorId = 197121, + + Mess = { + mess = "V_19_Trevor_Mess", -- A bit of mess in the office + Enable = function(state) + SetIplPropState(StripClub.interiorId, StripClub.Mess.mess, state, true) + end + }, + + LoadDefault = function() + StripClub.Mess.Enable(false) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/trevors_trailer.lua b/resources/[housing]/bob74_ipl/gtav/trevors_trailer.lua new file mode 100644 index 000000000..e8a22beb1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/trevors_trailer.lua @@ -0,0 +1,42 @@ +exports('GetTrevorsTrailerObject', function() + return TrevorsTrailer +end) + +TrevorsTrailer = { + interiorId = 2562, + + Interior = { + tidy = "trevorstrailertidy", + trash = "TrevorsTrailerTrash", + + Set = function(interior) + TrevorsTrailer.Interior.Clear() + + EnableIpl(interior, true) + end, + Clear = function() + EnableIpl({ + TrevorsTrailer.Interior.tidy, + TrevorsTrailer.Interior.trash + }, false) + end + }, + Details = { + copHelmet = "V_26_Trevor_Helmet3", -- Cop helmet in the closet + briefcase = "V_24_Trevor_Briefcase3", -- Briefcase in the main room + michaelStuff = "V_26_Michael_Stay3", -- Michael's suit hanging on the window + + Enable = function(details, state, refresh) + SetIplPropState(TrevorsTrailer.interiorId, details, state, refresh) + end + }, + + LoadDefault = function() + TrevorsTrailer.Interior.Set(TrevorsTrailer.Interior.trash) + TrevorsTrailer.Details.Enable(TrevorsTrailer.Details.copHelmet, false, false) + TrevorsTrailer.Details.Enable(TrevorsTrailer.Details.briefcase, false, false) + TrevorsTrailer.Details.Enable(TrevorsTrailer.Details.michaelStuff, false, false) + + RefreshInterior(TrevorsTrailer.interiorId) + end +} diff --git a/resources/[housing]/bob74_ipl/gtav/ufo.lua b/resources/[housing]/bob74_ipl/gtav/ufo.lua new file mode 100644 index 000000000..776b6fee0 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/ufo.lua @@ -0,0 +1,27 @@ +exports('GetUFOObject', function() + return UFO +end) + +UFO = { + Hippie = { + ipl = "ufo", -- Hippie base: 2490.47729, 3774.84351, 2414.035 + + Enable = function(state) + EnableIpl(UFO.Hippie.ipl, state) + end + }, + Chiliad = { + ipl = "ufo_eye", -- Chiliad: 501.5288, 5593.865, 796.2325 + + Enable = function(state) + EnableIpl(UFO.Chiliad.ipl, state) + end + }, + Zancudo = { + ipl = "ufo_lod", -- Zancudo: -2051.99463, 3237.05835, 1456.97021 + + Enable = function(state) + EnableIpl(UFO.Zancudo.ipl, state) + end + } +} diff --git a/resources/[housing]/bob74_ipl/gtav/zancudo_gates.lua b/resources/[housing]/bob74_ipl/gtav/zancudo_gates.lua new file mode 100644 index 000000000..cbd3da7a1 --- /dev/null +++ b/resources/[housing]/bob74_ipl/gtav/zancudo_gates.lua @@ -0,0 +1,19 @@ +-- Zancudo Gates (GTAO like): -1600.30100000 2806.73100000 18.79683000 +exports('GetZancudoGatesObject', function() + return ZancudoGates +end) + +ZancudoGates = { + Gates = { + Open = function() + EnableIpl("CS3_07_MPGates", false) + end, + Close = function() + EnableIpl("CS3_07_MPGates", true) + end, + }, + + LoadDefault = function() + ZancudoGates.Gates.Open() + end +} diff --git a/resources/[housing]/bob74_ipl/lib/common.lua b/resources/[housing]/bob74_ipl/lib/common.lua new file mode 100644 index 000000000..4aeadf828 --- /dev/null +++ b/resources/[housing]/bob74_ipl/lib/common.lua @@ -0,0 +1,278 @@ +-- Global variables +Global = { + currentInteriorId = 0, + + -- The current interior is set to True by 'interiorIdObserver' + Online = { + isInsideApartmentHi1 = false, + isInsideApartmentHi2 = false, + isInsideHouseHi1 = false, + isInsideHouseHi2 = false, + isInsideHouseHi3 = false, + isInsideHouseHi4 = false, + isInsideHouseHi5 = false, + isInsideHouseHi6 = false, + isInsideHouseHi7 = false, + isInsideHouseHi8 = false, + isInsideHouseLow1 = false, + isInsideHouseMid1 = false + }, + Biker = { + isInsideClubhouse1 = false, + isInsideClubhouse2 = false + }, + FinanceOffices = { + isInsideOffice1 = false, + isInsideOffice2 = false, + isInsideOffice3 = false, + isInsideOffice4 = false + }, + HighLife = { + isInsideApartment1 = false, + isInsideApartment2 = false, + isInsideApartment3 = false, + isInsideApartment4 = false, + isInsideApartment5 = false, + isInsideApartment6 = false + }, + Security = { + isInsideOffice1 = false, + isInsideOffice2 = false, + isInsideOffice3 = false, + isInsideOffice4 = false + }, + + -- Set all interiors variables to false + -- The loop inside 'interiorIdObserver' will set them to true + ResetInteriorVariables = function() + for _, parentKey in pairs{"Biker", "FinanceOffices", "HighLife", "Security"} do + local t = Global[parentKey] + + for key in pairs(t) do + t[key] = false + end + end + end +} + +exports('GVariables', function() + return Global +end) + +exports('EnableIpl', function(ipl, activate) + return EnableIpl(ipl, activate) +end) + +exports('GetPedheadshotTexture', function(ped) + return GetPedheadshotTexture(ped) +end) + +-- Load or remove IPL(s) +function EnableIpl(ipl, activate) + if type(ipl) == "table" then + for key, value in pairs(ipl) do + EnableIpl(value, activate) + end + else + if activate then + if not IsIplActive(ipl) then + RequestIpl(ipl) + end + else + if IsIplActive(ipl) then + RemoveIpl(ipl) + end + end + end +end + +-- Enable or disable the specified props in an interior +function SetIplPropState(interiorId, props, state, refresh) + if refresh == nil then + refresh = false + end + + if type(interiorId) == "table" then + for key, value in pairs(interiorId) do + SetIplPropState(value, props, state, refresh) + end + else + if type(props) == "table" then + for key, value in pairs(props) do + SetIplPropState(interiorId, value, state, refresh) + end + elseif type(props) == "string" then + if state then + if not IsInteriorEntitySetActive(interiorId, props) then + ActivateInteriorEntitySet(interiorId, props) + end + else + if IsInteriorEntitySetActive(interiorId, props) then + DeactivateInteriorEntitySet(interiorId, props) + end + end + end + + if refresh then + RefreshInterior(interiorId) + end + end +end + +function CreateNamedRenderTargetForModel(name, model) + local handle = 0 + + if not IsNamedRendertargetRegistered(name) then + RegisterNamedRendertarget(name, false) + end + + if not IsNamedRendertargetLinked(model) then + LinkNamedRendertarget(model) + end + + if IsNamedRendertargetRegistered(name) then + handle = GetNamedRendertargetRenderId(name) + end + + return handle +end + +function DrawEmptyRect(name, model) + local step = 250 + local timeout = 5 * 1000 + local currentTime = 0 + local renderId = CreateNamedRenderTargetForModel(name, model) + + while not IsNamedRendertargetRegistered(name) do + Wait(step) + + currentTime = currentTime + step + + if currentTime >= timeout then + return false + end + end + + if IsNamedRendertargetRegistered(name) then + SetTextRenderId(renderId) + SetScriptGfxDrawOrder(4) + DrawRect(0.5, 0.5, 1.0, 1.0, 0, 0, 0, 0) + SetTextRenderId(GetDefaultScriptRendertargetRenderId()) + ReleaseNamedRendertarget(0, name) + end + + return true +end + +function SetupScaleform(movieId, scaleformFunction, parameters) + BeginScaleformMovieMethod(movieId, scaleformFunction) + ScaleformMovieMethodAddParamTextureNameString_2(name) + + if type(parameters) == "table" then + for i = 0, Tablelength(parameters) - 1 do + local p = parameters["p" .. tostring(i)] + + if p.type == "bool" then + ScaleformMovieMethodAddParamBool(p.value) + elseif p.type == "int" then + ScaleformMovieMethodAddParamInt(p.value) + elseif p.type == "float" then + ScaleformMovieMethodAddParamFloat(p.value) + elseif p.type == "string" then + ScaleformMovieMethodAddParamTextureNameString(p.value) + elseif p.type == "buttonName" then + ScaleformMovieMethodAddParamPlayerNameString(p.value) + end + end + end + + EndScaleformMovieMethod() + SetScaleformMovieToUseLargeRt(movieId, true) +end + +function LoadStreamedTextureDict(texturesDict) + local step = 1000 + local timeout = 5 * 1000 + local currentTime = 0 + + RequestStreamedTextureDict(texturesDict, false) + while not HasStreamedTextureDictLoaded(texturesDict) do + Wait(step) + + currentTime = currentTime + step + + if currentTime >= timeout then + return false + end + end + + return true +end + +function LoadScaleform(scaleform) + local step = 1000 + local timeout = 5 * 1000 + local currentTime = 0 + local handle = RequestScaleformMovie(scaleform) + + while not HasScaleformMovieLoaded(handle) do + Wait(step) + + currentTime = currentTime + step + + if currentTime >= timeout then + return -1 + end + end + + return handle +end + +function GetPedheadshot(ped) + local step = 1000 + local timeout = 5 * 1000 + local currentTime = 0 + local pedheadshot = RegisterPedheadshot(ped) + + while not IsPedheadshotReady(pedheadshot) do + Wait(step) + + currentTime = currentTime + step + + if currentTime >= timeout then + return -1 + end + end + + return pedheadshot +end + +function GetPedheadshotTexture(ped) + local textureDict = nil + local pedheadshot = GetPedheadshot(ped) + + if pedheadshot ~= -1 then + textureDict = GetPedheadshotTxdString(pedheadshot) + + local IsTextureDictLoaded = LoadStreamedTextureDict(textureDict) + + if not IsTextureDictLoaded then + print("ERROR: GetPedheadshotTexture - Textures dictionnary \"" .. tostring(textureDict) .. "\" cannot be loaded.") + end + else + print("ERROR: GetPedheadshotTexture - PedHeadShot not ready.") + end + + return textureDict +end + +-- Return the number of elements of the table +function Tablelength(T) + local count = 0 + + for _ in pairs(T) do + count = count + 1 + end + + return count +end diff --git a/resources/[housing]/bob74_ipl/lib/observers/interiorIdObserver.lua b/resources/[housing]/bob74_ipl/lib/observers/interiorIdObserver.lua new file mode 100644 index 000000000..1d0335bf9 --- /dev/null +++ b/resources/[housing]/bob74_ipl/lib/observers/interiorIdObserver.lua @@ -0,0 +1,53 @@ +local _scanDelay = 500 + +CreateThread(function() + while true do + Global.currentInteriorId = GetInteriorFromEntity(PlayerPedId()) + + if Global.currentInteriorId == 0 then + Global.ResetInteriorVariables() + else + -- Setting variables + + -- GTA Online + Global.Online.isInsideApartmentHi1 = (Global.currentInteriorId == GTAOApartmentHi1.interiorId) + Global.Online.isInsideApartmentHi2 = (Global.currentInteriorId == GTAOApartmentHi2.interiorId) + Global.Online.isInsideHouseHi1 = (Global.currentInteriorId == GTAOHouseHi1.interiorId) + Global.Online.isInsideHouseHi2 = (Global.currentInteriorId == GTAOHouseHi2.interiorId) + Global.Online.isInsideHouseHi3 = (Global.currentInteriorId == GTAOHouseHi3.interiorId) + Global.Online.isInsideHouseHi4 = (Global.currentInteriorId == GTAOHouseHi4.interiorId) + Global.Online.isInsideHouseHi5 = (Global.currentInteriorId == GTAOHouseHi5.interiorId) + Global.Online.isInsideHouseHi6 = (Global.currentInteriorId == GTAOHouseHi6.interiorId) + Global.Online.isInsideHouseHi7 = (Global.currentInteriorId == GTAOHouseHi7.interiorId) + Global.Online.isInsideHouseHi8 = (Global.currentInteriorId == GTAOHouseHi8.interiorId) + Global.Online.isInsideHouseLow1 = (Global.currentInteriorId == GTAOHouseLow1.interiorId) + Global.Online.isInsideHouseMid1 = (Global.currentInteriorId == GTAOHouseMid1.interiorId) + + -- DLC: High life + Global.HighLife.isInsideApartment1 = (Global.currentInteriorId == HLApartment1.interiorId) + Global.HighLife.isInsideApartment2 = (Global.currentInteriorId == HLApartment2.interiorId) + Global.HighLife.isInsideApartment3 = (Global.currentInteriorId == HLApartment3.interiorId) + Global.HighLife.isInsideApartment4 = (Global.currentInteriorId == HLApartment4.interiorId) + Global.HighLife.isInsideApartment5 = (Global.currentInteriorId == HLApartment5.interiorId) + Global.HighLife.isInsideApartment6 = (Global.currentInteriorId == HLApartment6.interiorId) + + -- DLC: Bikers - Clubhouses + Global.Biker.isInsideClubhouse1 = (Global.currentInteriorId == BikerClubhouse1.interiorId) + Global.Biker.isInsideClubhouse2 = (Global.currentInteriorId == BikerClubhouse2.interiorId) + + -- DLC: Finance & Felony - Offices + Global.FinanceOffices.isInsideOffice1 = (Global.currentInteriorId == FinanceOffice1.currentInteriorId) + Global.FinanceOffices.isInsideOffice2 = (Global.currentInteriorId == FinanceOffice2.currentInteriorId) + Global.FinanceOffices.isInsideOffice3 = (Global.currentInteriorId == FinanceOffice3.currentInteriorId) + Global.FinanceOffices.isInsideOffice4 = (Global.currentInteriorId == FinanceOffice4.currentInteriorId) + + -- DLC: The Contract + Global.Security.isInsideOffice1 = (Global.currentInteriorId == MpSecurityOffice1.InteriorId) + Global.Security.isInsideOffice2 = (Global.currentInteriorId == MpSecurityOffice2.InteriorId) + Global.Security.isInsideOffice3 = (Global.currentInteriorId == MpSecurityOffice3.InteriorId) + Global.Security.isInsideOffice4 = (Global.currentInteriorId == MpSecurityOffice4.InteriorId) + end + + Wait(_scanDelay) + end +end) diff --git a/resources/[housing]/bob74_ipl/lib/observers/officeCullHandler.lua b/resources/[housing]/bob74_ipl/lib/observers/officeCullHandler.lua new file mode 100644 index 000000000..a2b7c0cf7 --- /dev/null +++ b/resources/[housing]/bob74_ipl/lib/observers/officeCullHandler.lua @@ -0,0 +1,35 @@ +CreateThread(function() + while true do + local sleep = 500 + + if Global.Security.isInsideOffice1 or Global.Security.isInsideOffice2 or Global.Security.isInsideOffice3 or Global.Security.isInsideOffice4 then + sleep = 0 + + if Global.Security.isInsideOffice1 then + EnableExteriorCullModelThisFrame(`bh1_05_build1`) + EnableExteriorCullModelThisFrame(`bh1_05_em`) + end + + if Global.Security.isInsideOffice2 then + EnableExteriorCullModelThisFrame(`hei_hw1_08_hotplaz01`) + EnableExteriorCullModelThisFrame(`hw1_08_hotplaz_rail`) + EnableExteriorCullModelThisFrame(`hw1_08_emissive_c`) + end + + if Global.Security.isInsideOffice3 then + EnableExteriorCullModelThisFrame(`hei_kt1_05_01`) + EnableExteriorCullModelThisFrame(`kt1_05_glue_b`) + EnableExteriorCullModelThisFrame(`kt1_05_kt_emissive_kt1_05`) + end + + if Global.Security.isInsideOffice4 then + EnableExteriorCullModelThisFrame(`hei_kt1_08_buildingtop_a`) + EnableExteriorCullModelThisFrame(`hei_kt1_08_kt1_emissive_ema`) + end + + DisableOcclusionThisFrame() + end + + Wait(sleep) + end +end) diff --git a/resources/[housing]/bob74_ipl/lib/observers/officeSafeDoorHandler.lua b/resources/[housing]/bob74_ipl/lib/observers/officeSafeDoorHandler.lua new file mode 100644 index 000000000..64b645cad --- /dev/null +++ b/resources/[housing]/bob74_ipl/lib/observers/officeSafeDoorHandler.lua @@ -0,0 +1,47 @@ +-- Delay between each attempt to open/close the doors corresponding to their state +local _scanDelay = 500 + +CreateThread(function() + while true do + local office = 0 + + -- Search for the current office to open/close the safes doors + if Global.FinanceOffices.isInsideOffice1 then + office = FinanceOffice1 + elseif Global.FinanceOffices.isInsideOffice2 then + office = FinanceOffice2 + elseif Global.FinanceOffices.isInsideOffice3 then + office = FinanceOffice3 + elseif Global.FinanceOffices.isInsideOffice4 then + office = FinanceOffice4 + end + + if office ~= 0 then + -- Office found, let's check the doors + + -- Check left door + doorHandle = office.Safe.GetDoorHandle(office.currentSafeDoors.hashL) + + if doorHandle ~= 0 then + if office.Safe.isLeftDoorOpen then + office.Safe.SetDoorState("left", true) + else + office.Safe.SetDoorState("left", false) + end + end + + -- Check right door + doorHandle = office.Safe.GetDoorHandle(office.currentSafeDoors.hashR) + + if doorHandle ~= 0 then + if office.Safe.isRightDoorOpen then + office.Safe.SetDoorState("right", true) + else + office.Safe.SetDoorState("right", false) + end + end + end + + Wait(_scanDelay) + end +end) diff --git a/resources/[housing]/bob74_ipl/stream/bh1_14_0.ybn b/resources/[housing]/bob74_ipl/stream/bh1_14_0.ybn new file mode 100644 index 000000000..fe5bd2f61 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/bh1_14_0.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hei_ap1_03_4.ybn b/resources/[housing]/bob74_ipl/stream/hei_ap1_03_4.ybn new file mode 100644 index 000000000..3fec0ffd4 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hei_ap1_03_4.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hei_bh1_20_0.ybn b/resources/[housing]/bob74_ipl/stream/hei_bh1_20_0.ybn new file mode 100644 index 000000000..a350c1212 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hei_bh1_20_0.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hei_ch3_08_17.ybn b/resources/[housing]/bob74_ipl/stream/hei_ch3_08_17.ybn new file mode 100644 index 000000000..37e457119 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hei_ch3_08_17.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hei_ch3_12_16.ybn b/resources/[housing]/bob74_ipl/stream/hei_ch3_12_16.ybn new file mode 100644 index 000000000..2a572b38b Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hei_ch3_12_16.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hei_ch3_12_17.ybn b/resources/[housing]/bob74_ipl/stream/hei_ch3_12_17.ybn new file mode 100644 index 000000000..21e3e3fc2 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hei_ch3_12_17.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/hi@bh1_33_0.ybn b/resources/[housing]/bob74_ipl/stream/hi@bh1_33_0.ybn new file mode 100644 index 000000000..548d7214b Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/hi@bh1_33_0.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/id2_18_1.ybn b/resources/[housing]/bob74_ipl/stream/id2_18_1.ybn new file mode 100644 index 000000000..780f52d90 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/id2_18_1.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/lostmcgapfix.ymap b/resources/[housing]/bob74_ipl/stream/lostmcgapfix.ymap new file mode 100644 index 000000000..88de0a880 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/lostmcgapfix.ymap differ diff --git a/resources/[housing]/bob74_ipl/stream/lr_cs4_04_0.ybn b/resources/[housing]/bob74_ipl/stream/lr_cs4_04_0.ybn new file mode 100644 index 000000000..81c1e8e65 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/lr_cs4_04_0.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/lr_cs4_10_3.ybn b/resources/[housing]/bob74_ipl/stream/lr_cs4_10_3.ybn new file mode 100644 index 000000000..a38ed0d75 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/lr_cs4_10_3.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/m23_2_cargoship.ymap b/resources/[housing]/bob74_ipl/stream/m23_2_cargoship.ymap new file mode 100644 index 000000000..35ed7f8c1 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/m23_2_cargoship.ymap differ diff --git a/resources/[housing]/bob74_ipl/stream/m23_2_mp2023_02_dlc_int_5.ytyp b/resources/[housing]/bob74_ipl/stream/m23_2_mp2023_02_dlc_int_5.ytyp new file mode 100644 index 000000000..fb4c7c0f5 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/m23_2_mp2023_02_dlc_int_5.ytyp differ diff --git a/resources/[housing]/bob74_ipl/stream/m24_2_garment_factory_1.ybn b/resources/[housing]/bob74_ipl/stream/m24_2_garment_factory_1.ybn new file mode 100644 index 000000000..b8b5a47f8 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/m24_2_garment_factory_1.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/po1_05_4.ybn b/resources/[housing]/bob74_ipl/stream/po1_05_4.ybn new file mode 100644 index 000000000..c031030bc Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/po1_05_4.ybn differ diff --git a/resources/[housing]/bob74_ipl/stream/v_24_lgb_mesh_sofa_old.ydr b/resources/[housing]/bob74_ipl/stream/v_24_lgb_mesh_sofa_old.ydr new file mode 100644 index 000000000..8e30eabaa Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/v_24_lgb_mesh_sofa_old.ydr differ diff --git a/resources/[housing]/bob74_ipl/stream/v_24_llga_mesh_coffeetable_old.ydr b/resources/[housing]/bob74_ipl/stream/v_24_llga_mesh_coffeetable_old.ydr new file mode 100644 index 000000000..a462418b5 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/v_24_llga_mesh_coffeetable_old.ydr differ diff --git a/resources/[housing]/bob74_ipl/stream/v_int_24.ytyp b/resources/[housing]/bob74_ipl/stream/v_int_24.ytyp new file mode 100644 index 000000000..0b7cc3b43 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/v_int_24.ytyp differ diff --git a/resources/[housing]/bob74_ipl/stream/vb_20_0.ybn b/resources/[housing]/bob74_ipl/stream/vb_20_0.ybn new file mode 100644 index 000000000..23f4ffa11 Binary files /dev/null and b/resources/[housing]/bob74_ipl/stream/vb_20_0.ybn differ diff --git a/resources/[housing]/qs-housing/shared/config.lua b/resources/[housing]/qs-housing/shared/config.lua index 1b683bab4..b5973c859 100644 --- a/resources/[housing]/qs-housing/shared/config.lua +++ b/resources/[housing]/qs-housing/shared/config.lua @@ -313,7 +313,7 @@ Config.Upgrades = { } -Config.Society = 'esx_society' -- select you society: ('none','esx_society','ap-government','esx_society','qb-management','qb-banking','qs-banking','renewed-banking','okokbanking','zpx-banking', 'tgg-banking', 'crm-banking') +Config.Society = 'okokbanking' -- select you society: ('none','esx_society','ap-government','esx_society','qb-management','qb-banking','qs-banking','renewed-banking','okokbanking','zpx-banking', 'tgg-banking', 'crm-banking') Config.SocietyCommision = 0.3 -- Percentage of the commission for the company (%30 of house price) -- Taxes configuration diff --git a/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/bug_report.md b/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 62f702f68..000000000 --- a/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve or fix something -title: "[BUG]" -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Use this item '....' (item's name from shared.lua if applicable) -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Questions (please complete the following information):** - - When you last updated: [e.g. last week] - - Are you using custom resource? which ones? [e.g. zdiscord, qb-target] - - Have you renamed `qb-` to something custom? [e.g. yes/no] - -**Additional context** -Add any other context about the problem here. diff --git a/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/feature-request.md b/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index 9e9bf3e7e..000000000 --- a/resources/[qb]/qb-interior/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature Request -about: Suggest an idea for QBCore -title: "[SUGGESTION]" -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. - -**Describe the feature you'd like** -A clear and concise description of what you want to happen. and with as much detail as possible how it would function in your opinion. Please try to keep it unique. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered for people to have in mind just in case the main idea isn't liked but a derivative is. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/resources/[qb]/qb-interior/.github/auto_assign.yml b/resources/[qb]/qb-interior/.github/auto_assign.yml deleted file mode 100644 index 2a809212a..000000000 --- a/resources/[qb]/qb-interior/.github/auto_assign.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Set to true to add reviewers to pull requests -addReviewers: true - -# Set to true to add assignees to pull requests -addAssignees: author - -# A list of reviewers to be added to pull requests (GitHub user name) -reviewers: - - /maintenance - -# A list of keywords to be skipped the process that add reviewers if pull requests include it -skipKeywords: - - wip - -# A number of reviewers added to the pull request -# Set 0 to add all the reviewers (default: 0) -numberOfReviewers: 0 \ No newline at end of file diff --git a/resources/[qb]/qb-interior/.github/contributing.md b/resources/[qb]/qb-interior/.github/contributing.md deleted file mode 100644 index 21fb8060e..000000000 --- a/resources/[qb]/qb-interior/.github/contributing.md +++ /dev/null @@ -1,201 +0,0 @@ -# Contributing to QBCore - -First of all, thank you for taking the time to contribute! - -These guidelines will help you help us in the best way possible regardless of your skill level. We ask that you try to read everything related to the way you'd like to contribute and try and use your best judgement for anything not covered. - -### Table of Contents - -[Code of Conduct](#code-of-conduct) - -[I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question) - -[How Can I Contribute?](#how-can-i-contribute) - * [Reporting Bugs](#reporting-bugs) - * [Suggesting Features / Enhancements](#suggesting-features--enhancements) - * [Your First Code Contribution](#your-first-code-contribution) - * [Pull Requests](#pull-requests) - -[Styleguides](#styleguides) - * [Git Commit Messages](#git-commit-messages) - * [Lua Styleguide](#lua-styleguide) - * [JavaScript Styleguide](#javascript-styleguide) - - - -## Code of Conduct - -- Refrain from using languages other than English. -- Refrain from discussing any politically charged or inflammatory topics. -- Uphold mature conversations and respect each other; excessive profanity, hate speech or any kind of harassment will not be tolerated. -- No advertising of any kind. -- Follow these guidelines. -- Do not mention members of github unless a question is directed at them and can't be answered by anyone else. -- Do not mention any of the development team for any reason. We will read things as we get to them. - -## I don't want to read this whole thing I just have a question!!! - -> **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below. - -* [QBCore Website](https://qbcore.org) -* [QBCore Discord](https://discord.gg/qbcore) -* [FiveM Discord - #qbcore channel](https://discord.gg/fivem) - - - - - - - - - - -## How Can I Contribute? - -### Reporting Bugs - -The easiest way to contribute for most people is just to report bugs you find cause if nobody reports it there's a chance we'll never know it exists and then we'll never fix it. - -Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out the bug-report template with the information it asks for helps us resolve issues faster. - -> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. - -#### Before Submitting A Bug Report - -* **Check the docs** There's a chance what you see as a bug might just work differently than you expect and if you think it could work better consider a feature enhancement report instead. -* **Search the [discord](https://discord.gg/qbcore)** to see if anyone else has run into the issue and see if it was solved through user error or code changes. (if the code change isn't pending a PR and you know what you're doing consider submitting one following [Pull Requests](#pull-requests) ) -* **Determine which resource the problem should be reported in**. If the bug is related to the inventory for example report this bug under qb-inventory rather than under qb-core or some other resource. -* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aqbcore-framework)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one. - -#### How Do I Submit A (Good) Bug Report? - -Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined which resource your bug is related to, create an issue on that repository and provide the following information by filling in bug-report template. - -Explain the problem and include additional details to help maintainers reproduce the problem: - -* **Use a clear and descriptive title** for the issue to identify the problem. -* **Describe the exact steps which reproduce the problem** in as many details as possible. -* **Provide specific examples to demonstrate the steps**. If something happened with only a specific group or single item but not others, specify that. -* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. -* **Explain which behavior you expected to see instead and why.** -* **Include screenshots** which show the specific bug in action or before and after. -* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below. - -Provide more context by answering these questions if possible: - -* **Did the problem start happening recently** (e.g. after updating to a new version of QBCore?) or was this always a problem? -* If the problem started happening recently, **can you reproduce the problem in an older version of QBCore?** What's the most recent commit in which the problem doesn't happen? -* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens. - -Include details about your setup: - -* **When was your QBCore last updated?** -* **What OS is the server running on**? -* **Which *extra* resources do you have installed?** - - ---- - - -### Suggesting Features / Enhancements - -This section guides you through submitting an enhancement suggestion for QBCore, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion. - -Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in feature request template, including the steps that you imagine you would take if the feature you're requesting existed. - -#### Before Submitting An Enhancement Suggestion - -* **Make sure it doesn't already exist.** Sounds silly, but there's a lot of features built in to qbcore that people don't realize so take a look through the docs and stuff to make sure it's not already there. -* **Check if there's already PR which provides that enhancement.** -* **Determine which resource the enhancement should be suggested in.** if it fits with another resource suggest it in that resource. if it would be it's own resource suggest it in the main qb-core repository. -* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aqbcore-framework)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. - -#### How Do I Submit A (Good) Enhancement Suggestion? - -Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined which resource your enhancement suggestion is related to, create an issue on that repository and provide the following information: - -* **Use a clear and descriptive title** for the issue to identify the suggestion. -* **Provide a step-by-step description of the suggested enhancement** in as many details as possible. -* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines). -* **Describe the current behavior** and **explain which behavior you expected to see instead** and why. -* **Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part of QBCore which the suggestion is related to. -* **Explain why this enhancement would be useful.** -* **Be creative and unique.** Stealing ideas from popular servers 1:1 detail isn't going to get accepted. - - ---- - - - -### Your First Code Contribution - -Unsure where to begin contributing to QBCore? You can start by looking through these `beginner` and `help-wanted` issues. - - - ---- - - -### Pull Requests - -The process described here has several goals: - -- Maintain QBCore's quality. -- Fix problems that are important to users. -- Engage the community in working toward the best possible QBCore. -- Enable a sustainable system for QBCore's maintainers to review contributions. - -Please follow these steps to have your contribution considered by the maintainers: - -1. Follow all instructions in The Pull Request template. -2. Follow the [styleguides](#styleguides). -3. Await review by the reviewer(s). - -While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted. - - ---- - -## Styleguides - -### Git Commit Messages - -* Limit the first line to 72 characters or less. -* Reference issues and pull requests liberally after the first line. -* Consider starting the commit message with an applicable emoji: - * :art: `:art:` when improving the format/structure of the code - * :racehorse: `:racehorse:` when improving performance - * :memo: `:memo:` when writing docs - * :bug: `:bug:` when fixing a bug - * :fire: `:fire:` when removing code or files - * :white_check_mark: `:white_check_mark:` when adding tests - * :lock: `:lock:` when dealing with security - * :arrow_up: `:arrow_up:` when upgrading dependencies - * :arrow_down: `:arrow_down:` when downgrading dependencies - * :shirt: `:shirt:` when removing linter warnings - -### Lua Styleguide - -All lua code should be done using all the best practices of proper lua using the easiest to read yet fastest/most optimized methods of execution. - -- Use 4 Space indentation -- Aim for lua 5.4 (include `lua54 'yes'` in the fxmanifest.lua) -- Use `PlayerPedId()` instead of `GetPlayerPed(-1)` -- Use `#(vector3 - vector3)` instead of `GetDistanceBetweenCoords()` -- Don't create unnecessary threads. always try to find a better method of triggering events -- Don't repeat yourself.. if you're using the same operations in many different places convert them into a function with flexible variables -- For distance checking loops set longer waits if you're outside of a range -- Job specific loops should only run for players with that job, don't waste cycles -- When possible don't trust the client, esspecially with transactions -- Balance security and optimizations -- [Consider this Lua Performance guide](https://springrts.com/wiki/Lua_Performance) -- Use local varriables everywhere possible -- Make use of config options where it makes sense making features optional or customizable -- Instead of `table.insert(myTable, "Value")` use `myTable[#myTable + 1] = "Value"` -- Instead of `table.insert(ages, "bob", 30)` use `ages["bob"] = 30` - - -### JavaScript Styleguide - -- Use 4 Space indentation -- Don't repeat yourself.. if you're using the same operations in many different places convert them into a function with flexible variables. diff --git a/resources/[qb]/qb-interior/.github/pull_request_template.md b/resources/[qb]/qb-interior/.github/pull_request_template.md deleted file mode 100644 index 000f0f9c4..000000000 --- a/resources/[qb]/qb-interior/.github/pull_request_template.md +++ /dev/null @@ -1,10 +0,0 @@ -**Describe Pull request** -First, make sure you've read and are following the contribution guidelines and style guide and your code reflects that. -Write up a clear and concise description of what your pull request adds or fixes and if it's an added feature explain why you think it should be included in the core. - -If your PR is to fix an issue mention that issue here - -**Questions (please complete the following information):** -- Have you personally loaded this code into an updated qbcore project and checked all it's functionality? [yes/no] (Be honest) -- Does your code fit the style guidelines? [yes/no] -- Does your PR fit the contribution guidelines? [yes/no] diff --git a/resources/[qb]/qb-interior/.github/workflows/lint.yml b/resources/[qb]/qb-interior/.github/workflows/lint.yml deleted file mode 100644 index fb74fd6b5..000000000 --- a/resources/[qb]/qb-interior/.github/workflows/lint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Lint -on: [push, pull_request_target] -jobs: - lint: - name: Lint Resource - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Lint - uses: iLLeniumStudios/fivem-lua-lint-action@v2 - with: - capture: "junit.xml" - args: "-t --formatter JUnit" - extra_libs: mysql+polyzone+qblocales - - name: Generate Lint Report - if: always() - uses: mikepenz/action-junit-report@v3 - with: - report_paths: "**/junit.xml" - check_name: Linting Report - fail_on_failure: false \ No newline at end of file diff --git a/resources/[qb]/qb-interior/.github/workflows/stale.yml b/resources/[qb]/qb-interior/.github/workflows/stale.yml deleted file mode 100644 index c18b212a7..000000000 --- a/resources/[qb]/qb-interior/.github/workflows/stale.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests - -on: - schedule: - - cron: '41 15 * * *' - -jobs: - stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v5 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue has had 60 days of inactivity & will close within 7 days' - stale-pr-message: 'This PR has had 60 days of inactivity & will close within 7 days' - close-issue-label: 'Stale Closed' - close-pr-label: 'Stale Closed' - exempt-issue-labels: 'Suggestion' - exempt-pr-labels: 'Suggestion' diff --git a/resources/[qb]/qb-interior/LICENSE b/resources/[qb]/qb-interior/LICENSE deleted file mode 100644 index f288702d2..000000000 --- a/resources/[qb]/qb-interior/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/resources/[qb]/qb-interior/README.md b/resources/[qb]/qb-interior/README.md deleted file mode 100644 index 391030cac..000000000 --- a/resources/[qb]/qb-interior/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# qb-interior - -**Shells provided by K4MB1** - -https://www.k4mb1maps.com/ - -https://discord.gg/JrjkacM - -![image](https://user-images.githubusercontent.com/57848836/158275226-e80563dc-5b71-4883-a485-997878b8d440.png) - -# License - - QBCore Framework - Copyright (C) 2021 Joshua Eger - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see - diff --git a/resources/[qb]/qb-interior/client/main.lua b/resources/[qb]/qb-interior/client/main.lua deleted file mode 100644 index 3cd2f790b..000000000 --- a/resources/[qb]/qb-interior/client/main.lua +++ /dev/null @@ -1,171 +0,0 @@ -local IsNew = false - -RegisterNetEvent('qb-interior:client:SetNewState', function(bool) - IsNew = bool -end) --- Functions -function TeleportToInterior(x, y, z, h) - CreateThread(function() - SetEntityCoords(PlayerPedId(), x, y, z, 0, 0, 0, false) - SetEntityHeading(PlayerPedId(), h) - - Wait(100) - - DoScreenFadeIn(1000) - end) -end - -exports('DespawnInterior', function(objects, cb) - CreateThread(function() - for _, v in pairs(objects) do - if DoesEntityExist(v) then - DeleteEntity(v) - end - end - - cb() - end) -end) - ---Core Functions - -local function CreateShell(spawn, exitXYZH, model) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = exitXYZH - DoScreenFadeOut(500) - while not IsScreenFadedOut() do - Wait(10) - end - RequestModel(model) - while not HasModelLoaded(model) do - Wait(1000) - end - local house = CreateObject(model, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end - -exports('CreateShell', function(spawn, exitXYZH, model) - return CreateShell(spawn, exitXYZH, model) -end) - --- Starting Apartment - -exports('CreateApartmentFurnished', function(spawn) - local exit = json.decode('{"x": 1.5, "y": -10.0, "z": 0, "h":358.50}') - local model = 'furnitured_midapart' - local obj = CreateShell(spawn, exit, model) - if obj and obj[2] then - obj[2].clothes = json.decode('{"x": -6.028, "y": -9.5, "z": 1.2, "h":2.263}') - obj[2].stash = json.decode('{"x": -7.305, "y": -3.922, "z": 0.5, "h":2.263}') - obj[2].logout = json.decode('{"x": -0.8, "y": 1.0, "z": 1.0, "h":2.263}') - end - if IsNew then - SetTimeout(750, function() - TriggerEvent('qb-clothes:client:CreateFirstCharacter') - IsNew = false - end) - end - return { obj[1], obj[2] } -end) - -exports('CreateHouseRobbery', function(spawn) - local exit = json.decode('{"x": 1.46, "y": -10.33, "z": 1.06, "h": 0.39}') - local model = 'furnitured_midapart' - return CreateShell(spawn, exit, model) -end) - --- Shells (in order by tier starting at 1) - -exports('CreateApartmentShell', function(spawn) --fix this - local exit = json.decode('{"x": 4.693, "y": -6.015, "z": 1.11, "h":358.634}') - local model = 'shell_v16low' - return CreateShell(spawn, exit, model) -end) - -exports('CreateTier1House', function(spawn) - local exit = json.decode('{"x": 1.561, "y": -14.305, "z": 1.147, "h":2.263}') - local model = 'shell_v16mid' - return CreateShell(spawn, exit, model) -end) - -exports('CreateTrevorsShell', function(spawn) - local exit = json.decode('{"x": 0.374, "y": -3.789, "z": 2.428, "h":358.633}') - local model = 'shell_trevor' - return CreateShell(spawn, exit, model) -end) - -exports('CreateCaravanShell', function(spawn) - local exit = json.decode('{"z":3.3, "y":-2.1, "x":-1.4, "h":358.633972168}') - local model = 'shell_trailer' - return CreateShell(spawn, exit, model) -end) - -exports('CreateLesterShell', function(spawn) - local exit = json.decode('{"x":-1.780, "y":-0.795, "z":1.1,"h":270.30}') - local model = 'shell_lester' - return CreateShell(spawn, exit, model) -end) - -exports('CreateRanchShell', function(spawn) - local exit = json.decode('{"x":-1.257, "y":-5.469, "z":2.5, "h":270.57,}') - local model = 'shell_ranch' - return CreateShell(spawn, exit, model) -end) - -exports('CreateContainer', function(spawn) - local exit = json.decode('{"x": 0.08, "y": -5.73, "z": 1.24, "h": 359.32}') - local model = 'container_shell' - return CreateShell(spawn, exit, model) -end) - -exports('CreateFurniMid', function(spawn) - local exit = json.decode('{"x": 1.46, "y": -10.33, "z": 1.06, "h": 0.39}') - local model = 'furnitured_midapart' - return CreateShell(spawn, exit, model) -end) - -exports('CreateFurniMotelModern', function(spawn) - local exit = json.decode('{"x": 4.98, "y": 4.35, "z": 1.16, "h": 179.79}') - local model = 'modernhotel_shell' - return CreateShell(spawn, exit, model) -end) - -exports('CreateFranklinAunt', function(spawn) - local exit = json.decode('{"x": -0.36, "y": -5.89, "z": 1.70, "h": 358.21}') - local model = 'shell_frankaunt' - return CreateShell(spawn, exit, model) -end) - -exports('CreateGarageMed', function(spawn) - local exit = json.decode('{"x": 13.90, "y": 1.63, "z": 1.0, "h": 87.05}') - local model = 'shell_garagemed' - return CreateShell(spawn, exit, model) -end) - -exports('CreateMichael', function(spawn) - local exit = json.decode('{"x": -9.49, "y": 5.54, "z": 9.91, "h": 270.86}') - local model = 'shell_michael' - return CreateShell(spawn, exit, model) -end) - -exports('CreateOffice1', function(spawn) - local exit = json.decode('{"x": 1.88, "y": 5.06, "z": 2.05, "h": 180.07}') - local model = 'shell_office1' - return CreateShell(spawn, exit, model) -end) - -exports('CreateStore1', function(spawn) - local exit = json.decode('{"x": -2.61, "y": -4.73, "z": 1.08, "h": 1.0}') - local model = 'shell_store1' - return CreateShell(spawn, exit, model) -end) - -exports('CreateWarehouse1', function(spawn) - local exit = { x = -8.95, y = 0.51, z = 1.04, h = 268.82 } - local model = 'shell_warehouse1' - return CreateShell(spawn, exit, model) -end) diff --git a/resources/[qb]/qb-interior/client/optional.lua b/resources/[qb]/qb-interior/client/optional.lua deleted file mode 100644 index d57f37148..000000000 --- a/resources/[qb]/qb-interior/client/optional.lua +++ /dev/null @@ -1,1709 +0,0 @@ --- Medium Housing Shells V1 https://www.k4mb1maps.com/package/4672307 - -exports('CreateMedium2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 6.04, "y": 0.34, "z": 1.03, "h": 357.99}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_medium2`) - while not HasModelLoaded(`shell_medium2`) do Wait(1000) end - local house = CreateObject(`shell_medium2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMedium3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.32, "y": 1.23, "z": 2.57, "h": 273.46}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_medium3`) - while not HasModelLoaded(`shell_medium3`) do Wait(1000) end - local house = CreateObject(`shell_medium3`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Modern Housing Shells V1 https://www.k4mb1maps.com/package/4673169 - -exports('CreateBanham', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.26, "y": -1.63, "z": 6.25, "h": 90.49}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_banham`) - while not HasModelLoaded(`shell_banham`) do Wait(1000) end - local house = CreateObject(`shell_banham`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateWestons', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.29, "y": 10.59, "z": 6.95, "h": 183.60}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_westons`) - while not HasModelLoaded(`shell_westons`) do Wait(1000) end - local house = CreateObject(`shell_westons`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateWestons2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.76, "y": 10.62, "z": 6.95, "h": 179.20}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_westons2`) - while not HasModelLoaded(`shell_westons2`) do Wait(1000) end - local house = CreateObject(`shell_westons2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Classic Housing Shells V1 https://www.k4mb1maps.com/package/4673140 - -exports('CreateClassicHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.78, "y": -2.11, "z": 5.26, "h": 87.93}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`classichouse_shell`) - while not HasModelLoaded(`classichouse_shell`) do Wait(1000) end - local house = CreateObject(`classichouse_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateClassicHouse2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.78, "y": -2.09, "z": 5.26, "h": 90.58}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`classichouse2_shell`) - while not HasModelLoaded(`classichouse2_shell`) do Wait(1000) end - local house = CreateObject(`classichouse2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateClassicHouse3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.78, "y": -2.12, "z": 5.26, "h": 91.60}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`classichouse3_shell`) - while not HasModelLoaded(`classichouse3_shell`) do Wait(1000) end - local house = CreateObject(`classichouse3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Highend Housing Shells V1 https://www.k4mb1maps.com/package/4673131 - -exports('CreateHighend1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.23, "y": 9.01, "z": 8.69, "h": 178.81}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_apartment1`) - while not HasModelLoaded(`shell_apartment1`) do Wait(1000) end - local house = CreateObject(`shell_apartment1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateHighend2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.25, "y": 9.00, "z": 8.69, "h": 177.86}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_apartment2`) - while not HasModelLoaded(`shell_apartment2`) do Wait(1000) end - local house = CreateObject(`shell_apartment2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateHighend3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 11.75, "y": 4.55, "z": 8.13, "h": 129.16}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_apartment3`) - while not HasModelLoaded(`shell_apartment3`) do Wait(1000) end - local house = CreateObject(`shell_apartment3`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Deluxe Housing Shells V1 https://www.k4mb1maps.com/package/4673159 - -exports('CreateHighend', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -22.37, "y": -0.33, "z": 7.26, "h": 267.73}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_highend`) - while not HasModelLoaded(`shell_highend`) do Wait(1000) end - local house = CreateObject(`shell_highend`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateHighendV2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -10.51, "y": 0.86, "z": 6.56, "h": 270.38}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_highendv2`) - while not HasModelLoaded(`shell_highendv2`) do Wait(1000) end - local house = CreateObject(`shell_highendv2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Stash House Shells https://www.k4mb1maps.com/package/4673273 - -exports('CreateStashHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 20.88, "y": -0.40, "z": 15.42, "h": 86.54}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`stashhouse_shell`) - while not HasModelLoaded(`stashhouse_shell`) do Wait(1000) end - local house = CreateObject(`stashhouse_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateStashHouse2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.98, "y": 2.26, "z": 1.0, "h": 263.81}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`stashhouse2_shell`) - while not HasModelLoaded(`stashhouse2_shell`) do Wait(1000) end - local house = CreateObject(`stashhouse2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Garage Shells https://www.k4mb1maps.com/package/4673177 - -exports('CreateGarageLow', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 5.85, "y": 3.86, "z": 1.0, "h": 180.05}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_garages`) - while not HasModelLoaded(`shell_garages`) do Wait(1000) end - local house = CreateObject(`shell_garages`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateGarageHigh', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 12.02, "y": -14.30, "z": 0.99, "h": 89.42}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_garagel`) - while not HasModelLoaded(`shell_garagel`) do Wait(1000) end - local house = CreateObject(`shell_garagel`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Office Shells https://www.k4mb1maps.com/package/4673258 - -exports('CreateOffice2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.66, "y": -1.94, "z": 1.26, "h": 92.73}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_office2`) - while not HasModelLoaded(`shell_office2`) do Wait(1000) end - local house = CreateObject(`shell_office2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateOfficeBig', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -12.48, "y": 1.91, "z": 5.30, "h": 175.13}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_officebig`) - while not HasModelLoaded(`shell_officebig`) do Wait(1000) end - local house = CreateObject(`shell_officebig`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Store Shells https://www.k4mb1maps.com/package/4673264 - -exports('CreateBarber', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 1.54, "y": 5.40, "z": 1.0, "h": 175.27}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_barber`) - while not HasModelLoaded(`shell_barber`) do Wait(1000) end - local house = CreateObject(`shell_barber`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateGunstore', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.02, "y": -5.43, "z": 1.03, "h": 359.77}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_gunstore`) - while not HasModelLoaded(`shell_gunstore`) do Wait(1000) end - local house = CreateObject(`shell_gunstore`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateStore2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.64, "y": -5.07, "z": 1.02, "h": 1.91}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_store2`) - while not HasModelLoaded(`shell_store2`) do Wait(1000) end - local house = CreateObject(`shell_store2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateStore3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.14, "y": -7.87, "z": 2.01, "h": 358.15}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_store3`) - while not HasModelLoaded(`shell_store3`) do Wait(1000) end - local house = CreateObject(`shell_store3`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Warehouse Shells https://www.k4mb1maps.com/package/4673185 - -exports('CreateWarehouse2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 12.51, "y": -0.01, "z": 1.03, "h": 94.52}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_warehouse2`) - while not HasModelLoaded(`shell_warehouse2`) do Wait(1000) end - local house = CreateObject(`shell_warehouse2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateWarehouse3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 2.61, "y": -1.65, "z": 1.00, "h": 85.2}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_warehouse3`) - while not HasModelLoaded(`shell_warehouse3`) do Wait(1000) end - local house = CreateObject(`shell_warehouse3`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Highend Lab Shells https://www.k4mb1maps.com/package/4698329 - -exports('CreateK4Coke', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -11.06, "y": -2.52, "z": 22.64, "h": 272.51}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4coke_shell`) - while not HasModelLoaded(`k4coke_shell`) do Wait(1000) end - local house = CreateObject(`k4coke_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Meth', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -11.06, "y": -2.48, "z": 9.47, "h": 277.54}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4meth_shell`) - while not HasModelLoaded(`k4meth_shell`) do Wait(1000) end - local house = CreateObject(`k4meth_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Weed', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -11.05, "y": -2.50, "z": 20.96, "h": 283.97}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4weed_shell`) - while not HasModelLoaded(`k4weed_shell`) do Wait(1000) end - local house = CreateObject(`k4weed_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished Stash House Shells https://www.k4mb1maps.com/package/4672293 - -exports('CreateContainer2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.02, "y": -5.37, "z": 1.12, "h": 355.28}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`container2_shell`) - while not HasModelLoaded(`container2_shell`) do Wait(1000) end - local house = CreateObject(`container2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurniStash1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 21.41, "y": -0.52, "z": 19.33, "h": 85.84}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`stashhouse1_shell`) - while not HasModelLoaded(`stashhouse1_shell`) do Wait(1000) end - local house = CreateObject(`stashhouse1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurniStash3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.003, "y": 5.5, "z": 3.04, "h": 180.77}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`stashhouse3_shell`) - while not HasModelLoaded(`stashhouse3_shell`) do Wait(1000) end - local house = CreateObject(`stashhouse3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished Housing Shells https://www.k4mb1maps.com/package/4672272 - -exports('CreateFurniLow', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 5.05, "y": -1.39, "z": 3.0, "h": 357.14}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`furnitured_lowapart`) - while not HasModelLoaded(`furnitured_lowapart`) do Wait(1000) end - local house = CreateObject(`furnitured_lowapart`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurniMotel', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.51, "y": -3.99, "z": 1.08, "h": 1.28}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`furnitured_motel`) - while not HasModelLoaded(`furnitured_motel`) do Wait(1000) end - local house = CreateObject(`furnitured_motel`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished Motel Shells https://www.k4mb1maps.com/package/4672296 - -exports('CreateFurniMotelClassic', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.045, "y": -3.707, "z": 1.05, "h": 351.86}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`classicmotel_shell`) - while not HasModelLoaded(`classicmotel_shell`) do Wait(1000) end - local house = CreateObject(`classicmotel_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurniMotelHigh', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.21, "y": 3.50, "z": 1.16, "h": 178.23}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`highendmotel_shell`) - while not HasModelLoaded(`highendmotel_shell`) do Wait(1000) end - local house = CreateObject(`highendmotel_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished Modern Hotels https://www.k4mb1maps.com/package/4672290 - -exports('CreateFurniMotelModern2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.87, "y": 4.38, "z": 1.16, "h": 176.40}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`modernhotel2_shell`) - while not HasModelLoaded(`modernhotel2_shell`) do Wait(1000) end - local house = CreateObject(`modernhotel2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurniMotelModern3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.95, "y": 4.38, "z": 1.16, "h": 176.01}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`modernhotel3_shell`) - while not HasModelLoaded(`modernhotel3_shell`) do Wait(1000) end - local house = CreateObject(`modernhotel3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Drug Lab Shells https://www.k4mb1maps.com/package/4672285 - -exports('CreateCoke', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.24, "y": 8.48, "z": 1.00, "h": 179.30}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_coke1`) - while not HasModelLoaded(`shell_coke1`) do Wait(1000) end - local house = CreateObject(`shell_coke1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateCoke2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.32, "y": 8.60, "z": 1.03, "h": 179.23}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_coke2`) - while not HasModelLoaded(`shell_coke2`) do Wait(1000) end - local house = CreateObject(`shell_coke2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMeth', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.39, "y": 8.54, "z": 1.03, "h": 178.84}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_meth`) - while not HasModelLoaded(`shell_meth`) do Wait(1000) end - local house = CreateObject(`shell_meth`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateWeed', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 17.46, "y": 11.71, "z": 1.01, "h": 88.37}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_weed`) - while not HasModelLoaded(`shell_weed`) do Wait(1000) end - local house = CreateObject(`shell_weed`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateWeed2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 17.85, "y": 11.75, "z": 1.01, "h": 88.11}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`shell_weed2`) - while not HasModelLoaded(`shell_weed2`) do Wait(1000) end - local house = CreateObject(`shell_weed2`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Mansion Housing Shells https://www.k4mb1maps.com/package/4783251 - -exports('CreateMansion', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.32, "y": -0.68, "z": 7.86, "h": 178.98}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_mansion_shell`) - while not HasModelLoaded(`k4_mansion_shell`) do Wait(1000) end - local house = CreateObject(`k4_mansion_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMansion2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.32, "y": -0.57, "z": 7.86, "h": 178.74}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_mansion2_shell`) - while not HasModelLoaded(`k4_mansion2_shell`) do Wait(1000) end - local house = CreateObject(`k4_mansion2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMansion3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.18, "y": -0.57, "z": 7.86, "h": 180.76}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_mansion3_shell`) - while not HasModelLoaded(`k4_mansion3_shell`) do Wait(1000) end - local house = CreateObject(`k4_mansion3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Empty Hotel Shells https://www.k4mb1maps.com/package/4811134 - -exports('CreateHotel1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.94, "y": 4.39, "z": 1.17, "h": 177.55}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_hotel1_shell`) - while not HasModelLoaded(`k4_hotel1_shell`) do Wait(1000) end - local house = CreateObject(`k4_hotel1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateHotel2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.99, "y": 4.39, "z": 1.17, "h": 178.62}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_hotel2_shell`) - while not HasModelLoaded(`k4_hotel2_shell`) do Wait(1000) end - local house = CreateObject(`k4_hotel2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateHotel3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.90, "y": 4.39, "z": 1.17, "h": 182.13}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_hotel3_shell`) - while not HasModelLoaded(`k4_hotel3_shell`) do Wait(1000) end - local house = CreateObject(`k4_hotel3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Empty Motel Shells https://www.k4mb1maps.com/package/4811137 - -exports('CreateMotel1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.46, "y": -2.46, "z": 1.00, "h": 274.07}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_motel1_shell`) - while not HasModelLoaded(`k4_motel1_shell`) do Wait(1000) end - local house = CreateObject(`k4_motel1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMotel2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.06, "y": -3.75, "z": 1.05, "h": 359.40}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_motel2_shell`) - while not HasModelLoaded(`k4_motel2_shell`) do Wait(1000) end - local house = CreateObject(`k4_motel2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateMotel3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.13, "y": 3.50, "z": 1.16, "h": 182.53}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4_motel3_shell`) - while not HasModelLoaded(`k4_motel3_shell`) do Wait(1000) end - local house = CreateObject(`k4_motel3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Default Shells V2 https://www.k4mb1maps.com/package/5015832 - -exports('CreateV2Default1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.32, "y": -0.63, "z": 1.60, "h": 272.87}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing1_k4mb1`) - while not HasModelLoaded(`default_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Default2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.14, "y": -5.05, "z": 3.18, "h": 270.61}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing2_k4mb1`) - while not HasModelLoaded(`default_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Default3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.35, "y": -2.06, "z": 1.11, "h": 1.14}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing3_k4mb1`) - while not HasModelLoaded(`default_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Default4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.13, "y": -3.85, "z": 1.09, "h": 1.71}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing4_k4mb1`) - while not HasModelLoaded(`default_housing4_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing4_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Default5', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 1.42, "y": -14.34, "z": 1.14, "h": 0.87}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing5_k4mb1`) - while not HasModelLoaded(`default_housing5_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing5_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Default6', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.75, "y": -6.49, "z": 1.03, "h": 359.60}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`default_housing6_k4mb1`) - while not HasModelLoaded(`default_housing6_k4mb1`) do Wait(1000) end - local house = CreateObject(`default_housing6_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Deluxe Shells V2 https://www.k4mb1maps.com/package/5043817 - -exports('CreateV2Deluxe1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -22.28, "y": -0.45, "z": 7.26, "h": 268.97}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`deluxe_housing1_k4mb1`) - while not HasModelLoaded(`deluxe_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`deluxe_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Deluxe2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -10.30, "y": 0.87, "z": 6.55, "h": 274.91}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`deluxe_housing2_k4mb1`) - while not HasModelLoaded(`deluxe_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`deluxe_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Deluxe3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -9.37, "y": 5.66, "z": 1.08, "h": 270.04}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`deluxe_housing3_k4mb1`) - while not HasModelLoaded(`deluxe_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`deluxe_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Highend Shells V2 https://www.k4mb1maps.com/package/5043819 - -exports('CreateV2HighEnd1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.22, "y": 9.02, "z": 8.69, "h": 182.64}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`highend_housing1_k4mb1`) - while not HasModelLoaded(`highend_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`highend_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2HighEnd2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.22, "y": 8.97, "z": 8.69, "h": 171.95}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`highend_housing2_k4mb1`) - while not HasModelLoaded(`highend_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`highend_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2HighEnd3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 11.48, "y": 4.50, "z": 6.42, "h": 128.15}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`highend_housing3_k4mb1`) - while not HasModelLoaded(`highend_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`highend_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Medium Shells V2 https://www.k4mb1maps.com/package/5043821 - -exports('CreateV2Medium1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.24, "y": -5.66, "z": 1.71, "h": 1.5}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`medium_housing1_k4mb1`) - while not HasModelLoaded(`medium_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`medium_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Medium2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 6.04, "y": 0.34, "z": 1.03, "h": 357.99}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`medium_housing2_k4mb1`) - while not HasModelLoaded(`medium_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`medium_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Medium3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.42, "y": 1.18, "z": 1.01, "h": 274.17}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`medium_housing3_k4mb1`) - while not HasModelLoaded(`medium_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`medium_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Modern Shells V2 https://www.k4mb1maps.com/package/5043818 - -exports('CreateV2Modern1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.29, "y": 10.52, "z": 6.30, "h": 178.92}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`modern_housing1_k4mb1`) - while not HasModelLoaded(`modern_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`modern_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Modern2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -1.76, "y": 10.37, "z": 6.30, "h": 184.71}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`modern_housing2_k4mb1`) - while not HasModelLoaded(`modern_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`modern_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateV2Modern3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.39, "y": -1.45, "z": 5.65, "h": 90.77}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`modern_housing3_k4mb1`) - while not HasModelLoaded(`modern_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`modern_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- K4mv1 Vinewood V2 Shells -- https://www.k4mb1maps.com/package/5251329 - -exports('VineWoodHouse1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 11.86, "y": -2.73, "z": 3.96, "h": 2.11}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`vinewood_housing1_k4mb1`) - while not HasModelLoaded(`vinewood_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`vinewood_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - - -exports('VineWoodHouse2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 1.57, "y": 4.96, "z": 9.63, "h": 2.11}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`vinewood_housing2_k4mb1`) - while not HasModelLoaded(`vinewood_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`vinewood_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('VineWoodHouse3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.41, "y": 7.11, "z": 2.76, "h": 2.11}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`vinewood_housing3_k4mb1`) - while not HasModelLoaded(`vinewood_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`vinewood_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --------- K4MB1 September Update - -exports('CreateK4GunWarehouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.29, "y": 4.74, "z": -0.0, "h": 179.603271}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`gunworkshop_k4mb1`) - while not HasModelLoaded(`gunworkshop_k4mb1`) do Wait(1000) end - local house = CreateObject(`gunworkshop_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4LuxuryHouse1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.344482, "y": -1.034912, "z": 3.0, "h": 268.09}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`luxury_housing1_k4mb1`) - while not HasModelLoaded(`luxury_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`luxury_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4LuxuryHouse2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.344482, "y": -1.034912, "z": 3.0, "h": 268.09}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`luxury_housing2_k4mb1`) - while not HasModelLoaded(`luxury_housing2_k4mb1`) do Wait(1000) end - local house = CreateObject(`luxury_housing2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4LuxuryHouse3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.344482, "y": -1.034912, "z": 3.0, "h": 268.09}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`luxury_housing3_k4mb1`) - while not HasModelLoaded(`luxury_housing3_k4mb1`) do Wait(1000) end - local house = CreateObject(`luxury_housing3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4LuxuryHouse4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -6.344482, "y": -1.034912, "z": 3.0, "h": 268.09}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`luxury_housing4_k4mb1`) - while not HasModelLoaded(`luxury_housing4_k4mb1`) do Wait(1000) end - local house = CreateObject(`luxury_housing4_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4ManorHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 6.839844, "y": -9.136841, "z": 13.0, "h": 359.318207}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`manor_housing1_k4mb1`) - while not HasModelLoaded(`manor_housing1_k4mb1`) do Wait(1000) end - local house = CreateObject(`manor_housing1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Garage1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 0.000366, "y": 14.130432, "z": 1.827162, "h": 183.492355}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages1_k4mb1`) - while not HasModelLoaded(`new_garages1_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Garage2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.737671, "y": -0.096680, "z": 1.427162, "h": 268.669922}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages2_k4mb1`) - while not HasModelLoaded(`new_garages2_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Garage3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.737671, "y": -0.096680, "z": 1.427162, "h": 268.669922}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages3_k4mb1`) - while not HasModelLoaded(`new_garages3_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Garage4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 8.806641, "y": 1.580383, "z": 1.439952, "h": 93.087669}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages4_k4mb1`) - while not HasModelLoaded(`new_garages4_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages4_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Safehouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.317017, "y": 1.031738, "z": 1.439952, "h": 269.149353}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`safehouse_k4mb1`) - while not HasModelLoaded(`safehouse_k4mb1`) do Wait(1000) end - local house = CreateObject(`safehouse_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Warehouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 13.414185, "y": -7.386108, "z": 2.539952, "h": 90.148018}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`warehouse_k4mb1`) - while not HasModelLoaded(`warehouse_k4mb1`) do Wait(1000) end - local house = CreateObject(`warehouse_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- New Garages https://www.k4mb1maps.com/package/5294668 - -exports('CreateK4NewGarage', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.010498, "y": 13.742065, "z": 5.216461, "h": 180.0}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages1_k4mb1`) - while not HasModelLoaded(`new_garages1_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages1_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4NewGarage2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.885496, "y": 0.018372, "z": 0.119728, "h": 271.723022}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages2_k4mb1`) - while not HasModelLoaded(`new_garages2_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages2_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4NewGarage3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.557486, "y": -0.223755, "z": 0.113129, "h": 269.100739}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages3_k4mb1`) - while not HasModelLoaded(`new_garages3_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages3_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4NewGarage4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 8.948175, "y": 1.714355, "z": 0.049950, "h": 95.899307}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`new_garages4_k4mb1`) - while not HasModelLoaded(`new_garages4_k4mb1`) do Wait(1000) end - local house = CreateObject(`new_garages4_k4mb1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Basement Shells - -exports('CreateK4Basement', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.08, "y": -4.33, "z": 5.90, "h": 3.45}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_basement1_shell`) - while not HasModelLoaded(`k4mb1_basement1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_basement1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Basement1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.08, "y": -4.33, "z": 5.90, "h": 3.45}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_basement2_shell`) - while not HasModelLoaded(`k4mb1_basement2_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_basement2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Basement2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.08, "y": -4.33, "z": 5.90, "h": 3.45}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_basement3_shell`) - while not HasModelLoaded(`k4mb1_basement3_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_basement3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Basement3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.08, "y": -4.33, "z": 5.90, "h": 3.45}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_basement4_shell`) - while not HasModelLoaded(`k4mb1_basement4_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_basement4_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4Basement4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -5.08, "y": -4.33, "z": 5.90, "h": 3.45}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_basement5_shell`) - while not HasModelLoaded(`k4mb1_basement5_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_basement5_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Casino Hotel - -exports('CreateK4CasinoHotel', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -3.03, "y": -0.03, "z": 0.10, "h": 266.89}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_casinohotel_shell`) - while not HasModelLoaded(`k4mb1_casinohotel_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_casinohotel_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- New Houses - -exports('CreateK4House1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -8.33, "y": 1.01, "z": 2.02, "h": 270.22}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_house1_shell`) - while not HasModelLoaded(`k4mb1_house1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_house1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4House2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -8.33, "y": 1.01, "z": 2.02, "h": 270.22}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_house2_shell`) - while not HasModelLoaded(`k4mb1_house2_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_house2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4House3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 9.00, "y": -7.43, "z": 2.02, "h": 1.04}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_house3_shell`) - while not HasModelLoaded(`k4mb1_house3_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_house3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateK4House4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.22, "y": -2.50, "z": 0.70, "h": 357.22}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_house4_shell`) - while not HasModelLoaded(`k4mb1_house4_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_house4_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished Offices - -exports('CreateFurnishedOffice1', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.33, "y": -2.05, "z": 1.39, "h": 92.20}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_furnishedoffice1_shell`) - while not HasModelLoaded(`k4mb1_furnishedoffice1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_furnishedoffice1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurnishedOffice2', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 4.42, "y": 3.54, "z": 1.36, "h": 179.63}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_furnishedoffice2_shell`) - while not HasModelLoaded(`k4mb1_furnishedoffice2_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_furnishedoffice2_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurnishedOffice3', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.66, "y": 5.81, "z": 1.51, "h": 90.57}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_furnishedoffice3_shell`) - while not HasModelLoaded(`k4mb1_furnishedoffice3_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_furnishedoffice3_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurnishedOffice4', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 8.60, "y": -2.28, "z": 1.56, "h": 91.17}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_furnishedoffice4_shell`) - while not HasModelLoaded(`k4mb1_furnishedoffice4_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_furnishedoffice4_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - -exports('CreateFurnishedOffice5', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 3.19, "y": -13.87, "z": 1.26, "h": 2.37}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_furnishedoffice5_shell`) - while not HasModelLoaded(`k4mb1_furnishedoffice5_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_furnishedoffice5_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Hood House - -exports('CreateHoodHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -2.49, "y": -7.38, "z": 2.01, "h": 93.19}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_hoodhouse1_shell`) - while not HasModelLoaded(`k4mb1_hoodhouse1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_hoodhouse1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Laundry Shell - -exports('CreateLaundry', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 10.45, "y": -5.70, "z": 3.37, "h": 5.13}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_laundry_shell`) - while not HasModelLoaded(`k4mb1_laundry_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_laundry_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Paleto House - -exports('CreatePaletoHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.92, "y": 5.65, "z": 3.34, "h": 90.05}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_palhouse1_shell`) - while not HasModelLoaded(`k4mb1_palhouse1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_palhouse1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Sandy House - -exports('CreateSandyHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": 1.65, "y": -4.60, "z": 3.19, "h": 2.53}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`k4mb1_sandyhouse1_shell`) - while not HasModelLoaded(`k4mb1_sandyhouse1_shell`) do Wait(1000) end - local house = CreateObject(`k4mb1_sandyhouse1_shell`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Empty House - -exports('CreateEmptyHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.42, "y": -2.35, "z": 1.91, "h": 271.88}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`kambi_emptyhouse1`) - while not HasModelLoaded(`kambi_emptyhouse1`) do Wait(1000) end - local house = CreateObject(`kambi_emptyhouse1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) - --- Furnished House - -exports('CreateFurnishedHouse', function(spawn) - local objects = {} - local POIOffsets = {} - POIOffsets.exit = json.decode('{"x": -0.47, "y": -2.38, "z": 1.90, "h": 274.87}') - DoScreenFadeOut(500) - while not IsScreenFadedOut() do Wait(10) end - RequestModel(`kambi_furnishedhouse1`) - while not HasModelLoaded(`kambi_furnishedhouse1`) do Wait(1000) end - local house = CreateObject(`kambi_furnishedhouse1`, spawn.x, spawn.y, spawn.z, false, false, false) - FreezeEntityPosition(house, true) - objects[#objects + 1] = house - TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h) - return { objects, POIOffsets } -end) diff --git a/resources/[qb]/qb-interior/fxmanifest.lua b/resources/[qb]/qb-interior/fxmanifest.lua deleted file mode 100644 index 1dea0cda0..000000000 --- a/resources/[qb]/qb-interior/fxmanifest.lua +++ /dev/null @@ -1,18 +0,0 @@ -fx_version 'cerulean' -game 'gta5' -lua54 'yes' -author 'Kakarot' -description 'Collection of shell models with exports for creating them' -version '1.2.0' -this_is_a_map 'yes' - -client_scripts { - 'client/main.lua', - 'client/optional.lua' -} - -files { - 'stream/starter_shells_k4mb1.ytyp' -} - -data_file 'DLC_ITYP_REQUEST' 'stream/starter_shells_k4mb1.ytyp' diff --git a/resources/[qb]/qb-interior/k4mb1shellstarter.pdf b/resources/[qb]/qb-interior/k4mb1shellstarter.pdf deleted file mode 100644 index 1793dced8..000000000 Binary files a/resources/[qb]/qb-interior/k4mb1shellstarter.pdf and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/_manifest.ymf b/resources/[qb]/qb-interior/stream/_manifest.ymf deleted file mode 100644 index 0f84dc61c..000000000 Binary files a/resources/[qb]/qb-interior/stream/_manifest.ymf and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/container_shell.ydr b/resources/[qb]/qb-interior/stream/container_shell.ydr deleted file mode 100644 index 2fa7c2b90..000000000 Binary files a/resources/[qb]/qb-interior/stream/container_shell.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/frankaunttextures.ytd b/resources/[qb]/qb-interior/stream/frankaunttextures.ytd deleted file mode 100644 index 9baa9e104..000000000 Binary files a/resources/[qb]/qb-interior/stream/frankaunttextures.ytd and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/furnitured_midapart.ydr b/resources/[qb]/qb-interior/stream/furnitured_midapart.ydr deleted file mode 100644 index 69216637b..000000000 Binary files a/resources/[qb]/qb-interior/stream/furnitured_midapart.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/lesters_txd.ytd b/resources/[qb]/qb-interior/stream/lesters_txd.ytd deleted file mode 100644 index 49345d756..000000000 Binary files a/resources/[qb]/qb-interior/stream/lesters_txd.ytd and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/modernhotel_shell.ydr b/resources/[qb]/qb-interior/stream/modernhotel_shell.ydr deleted file mode 100644 index 7cb8638a2..000000000 Binary files a/resources/[qb]/qb-interior/stream/modernhotel_shell.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_frankaunt.ydr b/resources/[qb]/qb-interior/stream/shell_frankaunt.ydr deleted file mode 100644 index b436a7717..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_frankaunt.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_garagem.ydr b/resources/[qb]/qb-interior/stream/shell_garagem.ydr deleted file mode 100644 index 144bcfd33..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_garagem.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_lester.ydr b/resources/[qb]/qb-interior/stream/shell_lester.ydr deleted file mode 100644 index e49ab68ba..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_lester.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_michael.ydr b/resources/[qb]/qb-interior/stream/shell_michael.ydr deleted file mode 100644 index de77eabdc..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_michael.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_office1.ydr b/resources/[qb]/qb-interior/stream/shell_office1.ydr deleted file mode 100644 index 13ad1a27d..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_office1.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_office1_txd.ytd b/resources/[qb]/qb-interior/stream/shell_office1_txd.ytd deleted file mode 100644 index 2be9f5bce..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_office1_txd.ytd and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_ranch.ydr b/resources/[qb]/qb-interior/stream/shell_ranch.ydr deleted file mode 100644 index b2c281a85..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_ranch.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_store1.ydr b/resources/[qb]/qb-interior/stream/shell_store1.ydr deleted file mode 100644 index ad753de84..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_store1.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_trailer.ydr b/resources/[qb]/qb-interior/stream/shell_trailer.ydr deleted file mode 100644 index 73a173e7a..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_trailer.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_trevor.ydr b/resources/[qb]/qb-interior/stream/shell_trevor.ydr deleted file mode 100644 index cf6bd723b..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_trevor.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_v16low.ydr b/resources/[qb]/qb-interior/stream/shell_v16low.ydr deleted file mode 100644 index c99f77fb7..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_v16low.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_v16mid.ydr b/resources/[qb]/qb-interior/stream/shell_v16mid.ydr deleted file mode 100644 index 33562ac06..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_v16mid.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/shell_warehouse1.ydr b/resources/[qb]/qb-interior/stream/shell_warehouse1.ydr deleted file mode 100644 index aae234657..000000000 Binary files a/resources/[qb]/qb-interior/stream/shell_warehouse1.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/standardmotel_shell.ydr b/resources/[qb]/qb-interior/stream/standardmotel_shell.ydr deleted file mode 100644 index df6fe6670..000000000 Binary files a/resources/[qb]/qb-interior/stream/standardmotel_shell.ydr and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/starter_shells_k4mb1.ytyp b/resources/[qb]/qb-interior/stream/starter_shells_k4mb1.ytyp deleted file mode 100644 index a4bba2f6e..000000000 Binary files a/resources/[qb]/qb-interior/stream/starter_shells_k4mb1.ytyp and /dev/null differ diff --git a/resources/[qb]/qb-interior/stream/starter_shells_k4mb1maps.ymap b/resources/[qb]/qb-interior/stream/starter_shells_k4mb1maps.ymap deleted file mode 100644 index 514bcb0b2..000000000 Binary files a/resources/[qb]/qb-interior/stream/starter_shells_k4mb1maps.ymap and /dev/null differ diff --git a/resources/[standalone]/[rcore_tv]/rcore_television/config.lua b/resources/[standalone]/[rcore_tv]/rcore_television/config.lua index f62788d6f..d9993909f 100644 --- a/resources/[standalone]/[rcore_tv]/rcore_television/config.lua +++ b/resources/[standalone]/[rcore_tv]/rcore_television/config.lua @@ -70,11 +70,11 @@ Config.keyToStopChannel = "SPACE" -- Default youtube playing volume -- Only goes for youtube... -Config.defaultVolume = 40 +Config.defaultVolume = 50 -- i dont recommend to change this number -- how far away TV can be visible -Config.visibleDistance = 10 +Config.visibleDistance = 20 -- if you want have whitelist to prevent troll links keep this on true. -- i dont recommend turning this option off, people just can use