#Black Screen
1 messages · Page 1 of 1 (latest)
Did you put this correctly in your qb-multicharacter?
RegisterNetEvent('qb-multicharacter:client:spawnLastLocation', function(coords, cData)
local result = lib.callback.await('ps-housing:cb:GetOwnedApartment', source, cData.citizenid)
if result then
TriggerEvent("apartments:client:SetHomeBlip", result.type)
end
local ped = PlayerPedId()
SetEntityCoords(ped, coords.x, coords.y, coords.z)
SetEntityHeading(ped, coords.w)
FreezeEntityPosition(ped, false)
SetEntityVisible(ped, true)
local PlayerData = QBCore.Functions.GetPlayerData()
local insideMeta = PlayerData.metadata["inside"]
DoScreenFadeOut(500)
if insideMeta.property_id then
TriggerServerEvent('ps-housing:server:enterProperty', tostring(insideMeta.property_id))
else
SetEntityCoords(ped, coords.x, coords.y, coords.z)
SetEntityHeading(ped, coords.w)
FreezeEntityPosition(ped, false)
SetEntityVisible(ped, true)
end
TriggerServerEvent('QBCore:Server:OnPlayerLoaded')
TriggerEvent('QBCore:Client:OnPlayerLoaded')
Wait(2000)
DoScreenFadeIn(250)
end)
where do I put that
Client/Main.lua -- SpawnLastLocation
I put that where it needed to go but it didnt work
Have you tried creating a new character?
Let me try that
Okay
Do you know how I could fix this error
That's because of the doorlock. Which one do you use?
I use qb
Did you replace the file that came in the ps-housing for the qb-doorlock?
yea
the ox_lib?
Yes
yea
but I was able to make a character and move around but I restarted my server to make sure it is fully working
If you continue to get this error, try updating ox_lib
I do have the latest release of ox_lib but I was bringing it up because I dont know if that will affect ps-housing
Im getting the black screen still after making a new character and restarting the server and trying to join back
My other owner tried getting it and was able to after making his character but when he left and went back trying to login on his character it went to a black screen
yo did you mange to fix this i am having same issue
I wasnt able to get it fixed so I am going to find another housing script