Skip to content

Remove lua54 from fxmanifest (lua53 deprecation)#759

Open
GamingLuke1337 wants to merge 2 commits into
overextended:mainfrom
GamingLuke1337:GamingLuke1337-patch-1
Open

Remove lua54 from fxmanifest (lua53 deprecation)#759
GamingLuke1337 wants to merge 2 commits into
overextended:mainfrom
GamingLuke1337:GamingLuke1337-patch-1

Conversation

@GamingLuke1337
Copy link
Copy Markdown

No description provided.

GamingLuke1337 and others added 2 commits May 1, 2026 01:01
Signed-off-by: Lukas Döring <lksdrng@icloud.com>
Copilot AI review requested due to automatic review settings April 30, 2026 23:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the resource manifest/runtime gating to stop explicitly opting into Lua 5.4, aligning with the stated “lua53 deprecation” direction.

Changes:

  • Removed lua54 'yes' from fxmanifest.lua.
  • Removed the _VERSION Lua 5.4 guard from init.lua.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
init.lua Removes the explicit Lua 5.4 runtime check from the import entrypoint.
fxmanifest.lua Removes the manifest-level Lua 5.4 opt-in directive.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fxmanifest.lua
@@ -1,6 +1,5 @@
fx_version 'cerulean'
use_experimental_fxv2_oal 'yes'
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

Removing lua54 'yes' means the Lua version is no longer explicitly selected by the manifest. The codebase still contains Lua 5.4-only syntax (e.g. to-be-closed variables using <close> in imports/zones/shared.lua), which will produce a syntax error if the resource is executed under Lua 5.3. If Lua 5.4 is still a hard requirement, ensure it’s enforced somewhere (keep the manifest flag if still supported by current runtimes, or otherwise enforce via minimum server build/docs/runtime check) so users don’t hit runtime parse failures.

Suggested change
use_experimental_fxv2_oal 'yes'
use_experimental_fxv2_oal 'yes'
lua54 'yes'

Copilot uses AI. Check for mistakes.
Comment thread init.lua
Comment on lines 9 to 12

if not _VERSION:find('5.4') then
error('Lua 5.4 must be enabled in the resource manifest!', 2)
end

local resourceName = GetCurrentResourceName()
local ox_lib = 'ox_lib'

Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

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

The Lua 5.4 runtime guard was removed. Given the project still includes Lua 5.4-only syntax in modules that can be loaded later, this change makes incompatibility show up as a less actionable syntax error during module import. Consider reinstating an explicit version check here (with an updated message that no longer references enabling lua54 in the manifest) so users get a clear failure explaining that Lua 5.4/server artifact support is required.

Copilot uses AI. Check for mistakes.
@unitysync unitysync self-requested a review May 1, 2026 03:06
Copy link
Copy Markdown
Member

@unitysync unitysync left a comment

Choose a reason for hiding this comment

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

LGTM thanks

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.

3 participants