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.luafile in theqb-apartments/clientfolder.Insert the following code at the bottom of the
main.luafile:
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.luafile in theeh_cutscene/configfolder.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