Skip to content

feat(esx_lib): add isEnhanced game edition detection - #1811

Open
ASTROWwwW wants to merge 1 commit into
esx-framework:v1.14.1from
ASTROWwwW:feat/edition-detection
Open

feat(esx_lib): add isEnhanced game edition detection#1811
ASTROWwwW wants to merge 1 commit into
esx-framework:v1.14.1from
ASTROWwwW:feat/edition-detection

Conversation

@ASTROWwwW

Copy link
Copy Markdown
Contributor

Description

xLib.isEnhanced() returns whether the game runs GTA V Enhanced (server: gamename convar, client: IsGameEnhancedVersion native). es_extended uses it to require OneSync Infinity on Legacy only, since Enhanced runs OneSync natively.

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.

@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.

define the isEnhanced as a local variable above the event, no need to call the function every single time a player tries to connect (and the isEnhanced state does not change during runtime anyways)

xLib.isEnhanced() returns whether the game runs GTA V Enhanced (server: gamename convar, client: IsGameEnhancedVersion native). es_extended reads it once and requires OneSync Infinity on Legacy only, since Enhanced runs OneSync natively.
@ASTROWwwW
ASTROWwwW force-pushed the feat/edition-detection branch from b7b52fe to 94002da Compare July 23, 2026 18:51

@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.

LGTM

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