QB-Apartment
If you're using qb-apartments 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:
Open the
main.lua
file in theqb-apartments/client
folder.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)
Open the
open.lua
file in theeh_cutscene/config
folder.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.

Last updated