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

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

Closed
MakoCEO opened this issue Nov 20, 2023 · 10 comments
Closed

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

MakoCEO opened this issue Nov 20, 2023 · 10 comments
Labels
bug Something isn't working Stale Closed Stale

Comments

@MakoCEO
Copy link

MakoCEO commented Nov 20, 2023

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 MakoCEO added the bug Something isn't working label Nov 20, 2023
@LandoGitHubDotCom
Copy link

Same problem here.

@bhager429
Copy link

no info on this. having the same problem.

@sarangcr03
Copy link

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..")

@rxnm
Copy link

rxnm commented Mar 6, 2024

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.

Copy link

github-actions bot commented May 5, 2024

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

@github-actions github-actions bot added the Stale label May 5, 2024
@ChiChixxTrigga
Copy link

Anything on a fix for this error?

@github-actions github-actions bot removed the Stale label May 13, 2024
@Bobbbe
Copy link

Bobbbe commented May 14, 2024

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..")

Copy link

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

@musictomy
Copy link

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

@FnTioHard
Copy link

Vlw galera vcs são fodas !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Closed Stale
Projects
None yet
Development

No branches or pull requests

9 participants