Skip to content

GetPedControlState returns true for the other player when using setPedControlState for yourself #3874

@EnoNeK

Description

@EnoNeK

Describe the bug

If you use setPedControlState on yourself, then getPedControlState used on a nearby player will return true, even if the player is not executing any controls

Steps to reproduce

  1. Set yourself a control for example vehicle_left
    setPedControlState(localPlayer, "vehicle_left", true)
  2. Now use getPedControlState on the player next to you with the same control we set for ourselves
local player = getPlayerFromName("xyz") 
outputChatBox(inspect(getPedControlState(player, "vehicle_left")))

You can now see that the function will return true if the player does not turn left

Version

Client: 1.6-release-22789
Server: 1.6-release-22789

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions