qbcore-framework / qb-weapons

Weapon Logic Script For QB-Core :gun:
GNU General Public License v3.0
28 stars 191 forks source link

[BUG] SCRIPT ERROR: @qb-weapons/server/main.lua:179: attempt to index a nil value (local 'Player') #149

Closed MixedOperator closed 1 year ago

MixedOperator commented 1 year ago

Describe the bug I just freshly installed QBus via txAdmin and started to have a look at it. I installed qs_housing and ARE (Medic System) thats it. I gave myself a gun. I reconnect to the Server and I can‘t join. It shows up one error and this was

SCRIPT ERROR: @qb-weapons/server/main.lua:179: attempt to index a nil value (local 'Player')

To Reproduce

  1. Started Fivem
  2. Join
  3. Gave myself a gun (pistol)
  4. Disconnect
  5. Reconnect
  6. done

Expected behavior Normal Joining