Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

black screen but full loaded in #64

Closed
NotPhelps opened this issue Jul 28, 2023 · 5 comments
Closed

black screen but full loaded in #64

NotPhelps opened this issue Jul 28, 2023 · 5 comments

Comments

@NotPhelps
Copy link

https://prnt.sc/EpSPHzMMKbsZ

i have the error above i have tried to do this on a clean server with nothing but defualts and i have did the read me 100% correct any ideas on why this would still be happening and its only happening when the ps-housing is add workf fine before

@Smokiiee
Copy link

https://prnt.sc/EpSPHzMMKbsZ

i have the error above i have tried to do this on a clean server with nothing but defualts and i have did the read me 100% correct any ideas on why this would still be happening and its only happening when the ps-housing is add workf fine before

Its trying to accsess the houses and apartment that do not exist anymore. its to setcam for Appartment/house.
Do not know any fix for it.
Hope they push a fix for it so the cam in qb-spawn zoom in to house or apartment

@MonkeyWhisper
Copy link
Member

Follow the read me.

@NotPhelps
Copy link
Author

NotPhelps commented Jul 28, 2023 via email

@Smokiiee
Copy link

Smokiiee commented Jul 28, 2023

Follow the read me.

i did follow everything. even updated qb-spawn and qb-multicharacter and i still do not get a zoom in on property when choosing house to spawn in

@Smokiiee
Copy link

@MonkeyWhisper

Its this im talking about thats giving the error we are talking about.

RegisterNUICallback('setCam', function(data, cb)
    local location = tostring(data.posname)
    local type = tostring(data.type)
    DoScreenFadeOut(200)
    Wait(500)
    DoScreenFadeIn(200)
    if DoesCamExist(cam) then DestroyCam(cam, true) end
    if DoesCamExist(cam2) then DestroyCam(cam2, true) end
    if type == "current" then
        QBCore.Functions.GetPlayerData(function(PlayerData)
            SetCam(PlayerData.position)
        end)
    elseif type == "house" then
        SetCam(Houses[location].coords.enter)  <------- This 
    elseif type == "normal" then
        SetCam(QB.Spawns[location].coords)
    elseif type == "appartment" then
        SetCam(Apartments.Locations[location].coords.enter)  <-------  And this 
    end
    cb('ok')
end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants