Skip to content

feat(es_extended): auto-detect Legacy vs Enhanced edition#1810

Closed
ASTROWwwW wants to merge 1 commit into
esx-framework:mainfrom
ASTROWwwW:enhanced
Closed

feat(es_extended): auto-detect Legacy vs Enhanced edition#1810
ASTROWwwW wants to merge 1 commit into
esx-framework:mainfrom
ASTROWwwW:enhanced

Conversation

@ASTROWwwW

Copy link
Copy Markdown
Contributor

Description

Adds ESX.IsEnhanced so one codebase runs on both Legacy and GTA V Enhanced (server: gamename convar, client: IsGameEnhancedVersion, mirrored to a replicated esx:enhanced convar). OneSync Infinity is enforced on Legacy only.

PR Checklist

  • My commit messages and PR title follow the Conventional Commits standard.
  • My changes have been tested locally and function as expected.
  • My PR does not introduce any breaking changes.
  • I have provided a clear explanation of what my PR does.

Expose ESX.IsEnhanced (server: gamename convar, client: IsGameEnhancedVersion native) and a replicated esx:enhanced convar so any resource can self-configure. Gate the OneSync Infinity requirement on Legacy only, since Enhanced runs OneSync natively.

@Zykem Zykem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR is more of an esx_lib thing tbh. the whole point of creating the lib was to keep the core clean and not filled with modules that don't belong there. same logic applies to this variable, it has nothing to do with core functionality, so it should live in the lib instead.

@ASTROWwwW

Copy link
Copy Markdown
Contributor Author

Agreed, this belongs in esx_lib rather than the core. Moving the detection into the lib and opening a single PR against dev. Thanks for the review.

@ASTROWwwW ASTROWwwW closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants