Jump to content

Player Spectating Bug

Closed 1.0.7

The Punisher
  • in Shop
The Punisher

Posted

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!

Mevent

Posted

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

The Punisher

Posted (edited)

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
Guest

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.