Lua Bug Report (Error when Starting training sessions)

Messages
787
Reaction score
490
Points
650
Location
Washington, D.C
Type of Bug: Lua

Description of the Bug: Error when Starting training sessions

How to reproduce the Bug: Start a training session, close the menu, then re-open it.

Time Stamp: N/A

Errors: [ERROR] gamemodes/darkrp/gamemode/modules/training/gui/training_participant.lua:69: attempt to call method 'GetPoliceRankColor' (a nil value)
1. SetParticipant - gamemodes/darkrp/gamemode/modules/training/gui/training_participant.lua:69
2. UpdateParticipants - gamemodes/darkrp/gamemode/modules/training/gui/training_queue.lua:140
3. Init - gamemodes/darkrp/gamemode/modules/training/gui/training_queue.lua:103
4. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
5. func - gamemodes/darkrp/gamemode/modules/training/cl_training.lua:70
6. unknown - lua/includes/extensions/net.lua:33

Media: https://youtu.be/9SYcTX7VnN4
 
Upvote 0
Messages
922
Reaction score
1,198
Points
710
Location
Germany
It seems like one of the participants is no longer valid yet remained in the session, I’ll have a look today
 
Messages
787
Reaction score
490
Points
650
Location
Washington, D.C
  • Thread starter
  • Staff
  • #3
It seems like one of the participants is no longer valid yet remained in the session, I’ll have a look today
Only that guy who got his rank right joined, the other one thats causing the error never really existed
 
Top