multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.42k stars 437 forks source link

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

Open UnavaiableSpoon13 opened 5 days ago

UnavaiableSpoon13 commented 5 days ago

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)
  2. 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