Skip to content

Fix(scheduleTick): Skip Deprecated ScheduleResourceTick on FiveM Enhanced - #291

Closed
solaire-fivem wants to merge 1 commit into
overextended:mainfrom
solaire-fivem:fix/check-for-enhanced-build-before-executing-deprecated-native
Closed

Fix(scheduleTick): Skip Deprecated ScheduleResourceTick on FiveM Enhanced#291
solaire-fivem wants to merge 1 commit into
overextended:mainfrom
solaire-fivem:fix/check-for-enhanced-build-before-executing-deprecated-native

Conversation

@solaire-fivem

Copy link
Copy Markdown

Description

This PR adds a check inside scheduleTick if the server build is FiveM enhanced by checking the server's convar value if the server is detected as running on GTA enhanced it returns early. FiveM enhanced phased out the ScheduleResourceTick and now all servers run on the same tick so it is not needed.

image

I originally tried using the new native IsGameEnhancedVersion but sadly that is a client sided native so getting the game convar was the best solution I had found. I do not know how ox are doing the enhanced migration if you are making a new branch etc so I've left it targetting main from now on.

Testing

  1. Rebuilt and all succeeded
  2. Verified in enhanced server, no errors and no warning of deprecated native in server console
  3. Verified in a legacy server no errors worked the same as before

@solaire-fivem solaire-fivem closed this by deleting the head repository Aug 10, 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.

1 participant