Skip to content

[BEHAVIOR DIFFERENCE]: IsTrailerAttachedToVehicle #590

Closed

Description

@gitshone

Description

When you attach a trailer to the truck IsTrailerAttachedToVehicle should return true (1).

How to re-produce this behavior difference

Tell us a how to re-produce this behavior:

  1. Slowly reverse to the trailer and attach it to the truck.
  2. Check if the trailer is actually attached on the server IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))
  3. Result should be false even if it is attached.

open.mp server version

(0.0.10.2126) build 10
28309b3

Operating system or distribution

Tested only on windows 11.

Contact information

CADILAB#9240

Activity

  1. added
    help wanted
    on Dec 13, 2022
  2. NexiusTailer commented on Dec 24, 2022

    @NexiusTailer
    Contributor

    I noticed that there is a 'help wanted' tag under this issue and seems I have some assumption why it might have a different behavior in omp. Although I don't know how IsTrailerAttachedToVehicle actually works now, there are two places in the samp sync structures where you can potentially get the same ID of an attached trailer: the first place where trailerid can be checked is InCar/Driver sync (parameter before the last one) and the second is Trailer sync itself (the first parameter after packetid). Maybe this could lead to some ideas/comparisons and finally identify the reason for this behavior difference.

  3. AmyrAhmady commented on Jun 11, 2023

    @AmyrAhmady
    Member

    Can you please confirm if this issue still exists?

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

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions