EH-DOCUMENTATION
  • ERROR HUB
    • Welcome
    • Terms Of Service
    • Customer Service
    • Common Issues
    • FAQ
    • Discord Guide
  • OUR SCRIPTS
    • Advanced Cutscene
      • Installation
      • Configuration
        • Clothing
        • Multicharacter
          • Renzu Multicharacter
          • ZSX Multicharacter
        • QB-Apartment
        • Vehicle Keys
      • Events and Exports
      • Shared Files
    • Codekit
      • Installation
  • HOUSING SHELLS
    • Modern & Classic Mid Shell
Powered by GitBook
On this page
  1. OUR SCRIPTS
  2. Advanced Cutscene
  3. Configuration

QB-Apartment

PreviousZSX MulticharacterNextVehicle Keys

Last updated 2 months ago

If you're using with the starting apartment enabled (i.e., Apartments.Starting is set to true in qb-apartments/config), you must follow these steps. Otherwise, you can skip this setup:

  1. Open the main.lua file in the qb-apartments/client folder.

  2. Insert the following code at the bottom of the main.lua file:

RegisterNetEvent("eh_cutscene:client:resetApartment", function()
    if not InApartment then return end
    TriggerServerEvent('qb-apartments:returnBucket')
    exports['qb-interior']:DespawnInterior(HouseObj, function()
        TriggerEvent('qb-weathersync:client:EnableSync')
        Wait(1000)
        TriggerServerEvent('apartments:server:RemoveObject', CurrentApartment, ClosestHouse)
        TriggerServerEvent('qb-apartments:server:SetInsideMeta', CurrentApartment, false)
        CurrentApartment = nil
        InApartment = false
        CurrentOffset = 0
        TriggerServerEvent('apartments:server:setCurrentApartment', nil)
        DeleteInApartmentTargets()
        DeleteApartmentsEntranceTargets()
    end)
end)
  1. Open the open.lua file in the eh_cutscene/config folder.

  2. Search for the function cutscene.onStarted() on line 1, then find and uncomment lines 8-9 (approx). Your function should look somewhat like the example below—just remove the -- from lines 8 and 9 to enable them.

qb-apartments