Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Client) setControlState, setPedControlState and setAnalogControlState are reset to false when a player joins the game #3867

Open
UnavaiableSpoon13 opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@UnavaiableSpoon13
Copy link

UnavaiableSpoon13 commented Nov 23, 2024

Describe the bug

The control state that is set to true or 1 by one of the three functions will reset to false or 0 upon a player joining the game.
The said bug appears to be affecting both the three functions in the same way and presumably is on the side of the client.

Steps to reproduce

  1. Set the state of the control "forwards" to true or 1 with either one of the three functions.
-- Client-side
setControlState(localPlayer, "forwards", true)
-- setAnalogControlState(localPlayer, "forwards", 1)
-- setPedControlState(localPlayer, "forwards", true)
  1. Make another player join the server.

You can now observe that the local player is no longer moving forwards.

Version

Client: 1.6-release-22623
Server: 1.6-release-22596

@UnavaiableSpoon13 UnavaiableSpoon13 added the bug Something isn't working label Nov 23, 2024
@UnavaiableSpoon13 UnavaiableSpoon13 changed the title (Client) setControlState, setPedControlState and setAnalogControlState are reset when a player joins the game (Client) setControlState, setPedControlState and setAnalogControlState are reset to false when a player joins the game Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant