Skip to content

syncRotation in AttachPlayerObjectToObject() has no effect #1082

Open

Description

@douq

Describe the bug
According to the documentation, the function AttachPlayerObjectToObject() has a parameter syncRotation, which defaults to true. However, I noticed that setting this parameter to false has no effect. If I'm interpreting the code correctly, the parameter isn't actually passed on, and in the implementation, it's always set to true.

To Reproduce
Link to Wiki
AttachPlayerObjectToObject(playerid, objectid, parentid, Float:offsetX, Float:offsetY, Float:offsetZ, Float:rotationX, Float:rotationY, Float:rotationZ, bool:syncRotation = true)

SCRIPT_API(AttachPlayerObjectToObject, bool(IPlayer& player, IPlayerObject& object, IPlayerObject* attachedTo, Vector3 offset, Vector3 rotation))

https://github.com/openmultiplayer/open.mp/blob/master/Server/Components/Objects/object.hpp#L498

Expected behavior
Setting syncRotation has a effect.

Release version
Latest build

Activity

  1. added
    bug
    on May 1, 2025
  2. Konstantinos-Sk commented on Sep 25, 2025

    @Konstantinos-Sk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions