Jump to content

Player Spectating Bug

Closed 1.0.7

Hello, 

I found a bug that is causing me to spectate players when I am editing an item in the GUI. I found this line of code on line 2750 "player.SetPlayerFlag(BasePlayer.PlayerFlags.Spectating, true);" changing this line to             "player.SetPlayerFlag(BasePlayer.PlayerFlags.Spectating, false);" seemed to fix the issue. Also if there is a way to disable the inputs from registering in game movement while in the GUI that would be a nice improvement. 

Thanks!

Share this comment


Link to comment
9 minutes ago, The Punisher said:

Hello, 

I found a bug that is causing me to spectate players when I am editing an item in the GUI. I found this line of code on line 2750 "player.SetPlayerFlag(BasePlayer.PlayerFlags.Spectating, true);" changing this line to             "player.SetPlayerFlag(BasePlayer.PlayerFlags.Spectating, false);" seemed to fix the issue. Also if there is a way to disable the inputs from registering in game movement while in the GUI that would be a nice improvement. 

Thanks!

The inclusion of the player spectating mode is therefore turned on so that the game keys do not work O.o

Share this comment


Link to comment

Okay gotcha, so it seemed to fix one problem but caused another 😅. When I set it back to true and use the shift or ctrl key when editing shop items I am put into spectating mode of a random player on the server. I am not sure why but it could be another plugin causing it. 

Edited by The Punisher

Share this comment


Link to comment
291.4k

Downloads

Total number of downloads.

1.4k

Customers

Total customers served.

18k

Files Sold

Total number of files sold.

279.6k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.