Comments (4)
Describe the bug Happens when clean install qb then used skip spawn true. I can register and spawn, but after relogin the account it goes black screen. But if i set SkipSelection = false, it spawn me as usual with the spawn menu. Update : it's when i turn off apartment when starting it happens.
There was no error at all from console neither the server.
Questions (please complete the following information):
- When you last updated: Today
- Are you using custom resource : None, fresh install
- Have you renamed
qb-
to something custom? = Defineatly no.
@ezyhabz
I have located the issue. The problem is there is only one spawn last location 'qb-multicharacter:client:spawnLastLocation' which does not take into account if you do not own a property, I modified the function so that if it returns without a result from the callback (Which there shouldnt be if you turn off automatically spawning to an apartment), the player is loaded at their last location. Here is a modified version of that function in qb-multicharacter Client Line 139
RegisterNetEvent('qb-multicharacter:client:spawnLastLocation', function(coords, cData)
QBCore.Functions.TriggerCallback('apartments:GetOwnedApartment', function(result)
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.house then
TriggerEvent('qb-houses:client:LastLocationHouse', insideMeta.house)
elseif insideMeta.apartment.apartmentType and insideMeta.apartment.apartmentId then
TriggerEvent('qb-apartments:client:LastLocationHouse', insideMeta.apartment.apartmentType, insideMeta.apartment.apartmentId)
end
TriggerServerEvent('QBCore:Server:OnPlayerLoaded')
TriggerEvent('QBCore:Client:OnPlayerLoaded')
Wait(2000)
DoScreenFadeIn(250)
end, cData.citizenid)
end)
Let me know if this resolves your issues!
from qb-multicharacter.
This issue has had 60 days of inactivity & will close within 7 days
from qb-multicharacter.
I also am having issues with this.
When i add SkipSelection to my config and set it to True ( I don't have it by default ). It indeed does skip the spawn menu but it also skips character selection and spawns at the character initial configuration location without being able to move instead of spawning at the last location which is what we would like to achieve. So basically we want the multi character to have the same functionality but just skip the spawn menu. We already removed all the aditional spawn options that where configured and now when we join we get the menu with only one option which is last location. It would be great if someone could tell me how we could go about skipping this menu and load the last spawn location by default.
EDIT: Nevermind, i was using an outdated version. If you have the same issue as described above make sure to download the latest version.
Thanks in advance
from qb-multicharacter.
This issue has had 60 days of inactivity & will close within 7 days
from qb-multicharacter.
Related Issues (20)
- TypeError: Cannot read properties of undefined (reading 'firstname') (@qb-multicharacter/html/vue.js:6) HOT 1
- spawn [BUG] HOT 1
- Successfully is misspelled in server/main.lua
- [BUG] HOT 3
- [BUG] My In-game Username HOT 2
- [BUG] Stuck in infinity Loadingscreen HOT 1
- [BUG] HOT 2
- [BUG] Emoticon in the first name or last name of characters HOT 1
- [BUG] With the new SkipSelection.
- script error: @qb-multicharacter line 118 HOT 1
- [ERROR]Please help me for SCRIPT ERROR: @qb-multicharacter HOT 9
- [BUG] Multicharacter Issue HOT 1
- select character HOT 1
- BUG HOT 3
- [BUG] character selection HOT 5
- [BUG] Command - Logout HOT 1
- [BUG] Not sure if bug but keep getting this HOT 4
- [BUG] SkipSelection Spawn HOT 2
- Why is /logout hard-coded to "admin"? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qb-multicharacter.