Skip to content

Conversation

@MohabCodeX
Copy link
Contributor

Fixes #551

Notes

observed the debug line ERROR: FIXME: CRPCFunctions::ProcessPacket - Element doesn't exist on client (AttachElements) when the attach RPC arrives on the client before the marker is fully created. This is just a timing/diagnostic warning and does not affect marker hits. It could be silenced by wrapping that log in an if that skips ATTACH_ELEMENTS/DETACH_ELEMENTS

You can just use a Timer :

setTimer(function()
    if isElement(marker) and isElement(bank) then
        attachElements(marker, bank, 0, 0, -1)
    end
end, 50, 1)

@FileEX FileEX added the bugfix Solution to a bug of any kind label Nov 23, 2025
@FileEX FileEX merged commit 15bdd6d into multitheftauto:master Nov 23, 2025
MTABot pushed a commit that referenced this pull request Nov 23, 2025
15bdd6d Fixes #551 - `onMarkerHit` on attached elements  (#4571)
9997876 Update client en_US pot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If a marker was attached to another element, onMarkerHit won't be triggered

2 participants