#Black Screen

1 messages · Page 1 of 1 (latest)

wicked rain
#

This is the error I am getting in the game after selecting my character and I dont know how to fix this but in tx admin I get a ps-housing error and I asked for help in his discord but didnt get any help. Under this will be the picture of the error in txadmin

hollow leaf
# wicked rain

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)

wicked rain
#

where do I put that

hollow leaf
#

Client/Main.lua -- SpawnLastLocation

wicked rain
#

I put that where it needed to go but it didnt work

hollow leaf
wicked rain
#

Let me try that

hollow leaf
wicked rain
hollow leaf
wicked rain
#

I use qb

hollow leaf
wicked rain
#

yea

hollow leaf
#

Okay wait let me see

#

Does the other error keep coming up with a new character?

wicked rain
#

the ox_lib?

hollow leaf
#

Yes

wicked rain
#

yea

#

but I was able to make a character and move around but I restarted my server to make sure it is fully working

hollow leaf
wicked rain
#

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

wicked rain
#

Im getting the black screen still after making a new character and restarting the server and trying to join back

wicked rain
#

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

frail violet
wicked rain
#

I wasnt able to get it fixed so I am going to find another housing script