qb-multicharacter icon indicating copy to clipboard operation
qb-multicharacter copied to clipboard

[ERROR]Please help me for SCRIPT ERROR: @qb-multicharacter

Open MakoCEO opened this issue 2 years ago • 5 comments

Hello The following error keeps appearing on the console, but it does not go away even after updating qb-multicharacter. Could you please tell me the solution?

[ script:qb-core] [qb-core:LOG] Jelly PLAYER SAVED! [script:qb-multichara] [qb-core] Jelly (Citizen ID: CCX05018) has successfully loaded! [script:qb-multichara] SCRIPT ERROR: @qb-multicharacter/server/main.lua:109: attempt to index a nil value [script:qb-multichara] > rawQuery (@oxmysql/dist/build.js:25047) [script:qb-multichara] > runMicrotasks (:0) [script:qb-multichara] > processTicksAndRejections (node:internal/process/task_queues:96)

MakoCEO avatar Nov 20 '23 05:11 MakoCEO

Same problem here.

LandoGitHubDotCom avatar Dec 07 '23 02:12 LandoGitHubDotCom

no info on this. having the same problem.

bhager429 avatar Dec 15 '23 19:12 bhager429

Its an issue with discord permissions, you can fix it by allowing FiveM access to discord on the client machine. Here is the relevent line in main.lua. TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "**".. GetPlayerName(src) .. "** (<@"..(QBCore.Functions.GetIdentifier(src, 'discord'):gsub("discord:", "") or "unknown").."> | ||" ..(QBCore.Functions.GetIdentifier(src, 'ip') or 'undefined') .. "|| | " ..(QBCore.Functions.GetIdentifier(src, 'license') or 'undefined') .." | " ..cData.citizenid.." | "..src..") loaded..")

sarangcr03 avatar Jan 12 '24 20:01 sarangcr03

Its an issue with discord permissions, you can fix it by allowing FiveM access to discord on the client machine. Here is the relevent line in main.lua. TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "**".. GetPlayerName(src) .. "** (<@"..(QBCore.Functions.GetIdentifier(src, 'discord'):gsub("discord:", "") or "unknown").."> | ||" ..(QBCore.Functions.GetIdentifier(src, 'ip') or 'undefined') .. "|| | " ..(QBCore.Functions.GetIdentifier(src, 'license') or 'undefined') .." | " ..cData.citizenid.." | "..src..") loaded..")

How exactly to fix it then please? I am having the same issue. I have the above code, but how to allow it access to discord as you say? thanks.

5tratz avatar Mar 06 '24 04:03 5tratz

This issue has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar May 05 '24 15:05 github-actions[bot]

Anything on a fix for this error?

ChiChixxTrigga avatar May 13 '24 14:05 ChiChixxTrigga

just comment line in qb-multicharacter/server/main.lua -- TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "".. GetPlayerName(src) .. " (<@"..(QBCore.Functions.GetIdentifier(src, 'discord'):gsub("discord:", "") or "unknown").."> | ||" ..(QBCore.Functions.GetIdentifier(src, 'ip') or 'undefined') .. "|| | " ..(QBCore.Functions.GetIdentifier(src, 'license') or 'undefined') .." | " ..cData.citizenid.." | "..src..") loaded..")

Bobbbe avatar May 14 '24 11:05 Bobbbe

This issue has had 60 days of inactivity & will close within 7 days

github-actions[bot] avatar Jul 13 '24 15:07 github-actions[bot]

just comment line in qb-multicharacter/server/main.lua -- TriggerEvent("qb-log:server:CreateLog", "joinleave", "Loaded", "green", "".. GetPlayerName(src) .. " (<@"..(QBCore.Functions.GetIdentifier(src, 'discord'):gsub("discord:", "") or "unknown").."> | ||" ..(QBCore.Functions.GetIdentifier(src, 'ip') or 'undefined') .. "|| | " ..(QBCore.Functions.GetIdentifier(src, 'license') or 'undefined') .." | " ..cData.citizenid.." | "..src..") loaded..")

Yep

that worked for me thanks

musictomy avatar Aug 22 '24 15:08 musictomy