Skip to content

Legitimacy ABI compatibility #3801

Description

@NarutoUA

What happened?

Legitimacy component exposes C++ standard library types (std::string, std::function, std::pair, etc.) across DLL boundaries. In MSVC, these types do not have a stable ABI across toolset versions, which can cause link-time errors when using different Visual Studio / MSVC versions.

Expected result

Legitimacy component should provide C-style API

Reproduction steps

N/A

Importancy

Slight inconvenience

Area(s)

FiveM, RedM, FXServer

Specific version(s)

N/A

Additional information

I am trying to build FiveM using VS 2026 and latest toolset. Everything is good so far except linkage incompatibility with prebuilt legitimacy component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RedMIssues/PRs related to RedMbug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions