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

qbx management broken when trying to access player list #56

Closed
alberttheprince opened this issue Apr 10, 2024 · 11 comments
Closed

qbx management broken when trying to access player list #56

alberttheprince opened this issue Apr 10, 2024 · 11 comments
Labels
bug Something isn't working need repro This bug report needs confirmation

Comments

@alberttheprince
Copy link

Summary

Breaks when trying to view employees

Reproduction

  1. Open Menu
  2. Try to access list of employees
  3. Qbx_management breaks

Expected behavior

  1. Open Menu
  2. Try to access list of employees
  3. View list, hire/fire/manage

Actual behavior

Menu breaks when trying to access list of employees

Additional context

Server side errors:
image

Client side errors:
image

Current Version

1.10.1

Custom Resources

N/A

@alberttheprince alberttheprince added bug Something isn't working need repro This bug report needs confirmation labels Apr 10, 2024
@qbox-duck qbox-duck bot added this to Issues Apr 10, 2024
@github-project-automation github-project-automation bot moved this to Todo in Issues Apr 10, 2024
@Pilpest
Copy link

Pilpest commented Apr 12, 2024

https://github.com/Qbox-project/qbx_core/blob/98ce3316fed733afdb2ed3e81f026eb92d711239/server/player.lua#L315

Related to this, it's trying to grab it for offline players as well which is invalid. Would be best to put it in the;

if source then section just below it.

@Alexxxunchained
Copy link

I just set up a brand new qbx server and this problems happends again

@Alexxxunchained
Copy link

@Manason Sorry for ask, but its the way to fix this? → "fix(server/player): more offline player checks". Do I have to make the code change just like this post?

@Manason
Copy link
Member

Manason commented Aug 31, 2024

You can see if that fixes it, or wait for that code change to make it into the next release.

@Alexxxunchained
Copy link

Okay mate, I've tired this change but still same error, lets waitting for management update

@Manason
Copy link
Member

Manason commented Sep 1, 2024

@Alexxxunchained What version of qbx_core and qbx_management are you on?

@Alexxxunchained
Copy link

qbx_core: 1.17.2, qbx_management: '1.2.0'

@Manason
Copy link
Member

Manason commented Sep 3, 2024

Try qbx_core v1.18.1 and qbx_management v1.3.0

@Alexxxunchained
Copy link

Sorry mate, but where can I find qbx_management v1.3.0?

@Manason
Copy link
Member

Manason commented Sep 5, 2024

My bad. qbx_management v1.2.0 is the latest one. Does this error still show up on qbx_core v1.18.1?

@Alexxxunchained
Copy link

Alexxxunchained commented Sep 6, 2024

This problem is solved for now, the reason caused this error is when u using the old server's database sql file (at least in my side), the way to fix it is to do:

  1. In your heidiSQL
  2. Find the table: player_groups, then wipe everything in it
  3. Find the row: job and gang in players table, then set job content to unemployed and set gang to No gang
  4. All good to go

@Manason Manason closed this as completed Sep 20, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need repro This bug report needs confirmation
Projects
Status: Done
Development

No branches or pull requests

4 participants