Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

6,253 files sold to 575 customers and $91,267 of payments processed this year!

×
×
  • 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.