Skip to content

Jetpack desynchronization #4098

@XJMLN

Description

@XJMLN

Describe the bug

I think after recent changes (#3511) with jetpack, the jetpack is not removed if we first call
setPedWearingJetpack(plr, false) and then setElementPosition(..).

Image

Steps to reproduce

addCommandHandler("jetpack-add", function (plr)
    setPedWearingJetpack(plr, true)
end)

addCommandHandler("moveme", function (plr)
    setPedWearingJetpack(plr, false)
    setElementPosition(plr, 0, 0, 10)
    outputDebugString(tostring(isPedWearingJetpack(plr)))
end)
  1. Use /jetpack-add
  2. Use /moveme
  3. Player will still have jetpack, even though the debug output will show "false".

Version

Client: Multi Theft Auto v1.6-release-23079
Server: MTA:SA Server v1.6-release-23069

Additional context

After recent client update, all scripts where we are taking player jetpack and teleporting them were not functioning correctly because of this change.

Relevant log output

INFO: false

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

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