-
Notifications
You must be signed in to change notification settings - Fork 235
Description
im having a problem when logging into my server I make an account and it just goes to a black loading screen this is the error I get in the live console
[script:qb-multichara] SCRIPT ERROR: @qb-multicharacter/server/main.lua:118: attempt to call a nil value (field 'Login')
[script:qb-multichara] > handler (@qb-multicharacter/server/main.lua:118)
To Reproduce
Steps to reproduce the behavior:
- open Fivem
- join server
- make a character
- See error
Expected behavior
A clear and concise description of what you expected to happen.
- open Fivem
- join server
- make a character
- play server
Screenshots
If applicable, add screenshots to help explain your problem.
Questions (please complete the following information):
- When you last updated: [5/18/2025]
- Are you using custom resource? which ones? [I have the entire qb-repository and some clothing]
- Have you renamed
qb-to something custom? [no only removing the main at the end of the files]
Additional context
qb-multicharacter/server/main.lua
113 RegisterNetEvent('qb-multicharacter:server:createCharacter', function(data)
114 local src = source
115 local newData = {}
116 newData.cid = data.cid
117 newData.charinfo = data
118 if QBCore.Player.Login(src, false, newData) then
119 repeat
120 Wait(10)
121 until hasDonePreloading[src]
122 if GetResourceState('qb-apartments') == 'started' and Apartments.Starting then
123 local randbucket = (GetPlayerPed(src) .. math.random(1, 999))
124 SetPlayerRoutingBucket(src, randbucket)
125 print('^2[qb-core]^7 ' .. GetPlayerName(src) .. ' has successfully loaded!')
126 QBCore.Commands.Refresh(src)
127 loadHouseData(src)
128 TriggerClientEvent('qb-multicharacter:client:closeNUI', src)
129 TriggerClientEvent('apartments:client:setupSpawnUI', src, newData)
130 GiveStarterItems(src)
131 else
132 print('^2[qb-core]^7 ' .. GetPlayerName(src) .. ' has successfully loaded!')
133 QBCore.Commands.Refresh(src)
134 loadHouseData(src)
135 TriggerClientEvent('qb-multicharacter:client:closeNUIdefault', src)
136 GiveStarterItems(src)
137 TriggerEvent('apartments:client:SetHomeBlip', nil)
138 end
139 end
140 end)

