Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exports update and fxmanifest vers #13

Merged
merged 3 commits into from
Sep 15, 2024
Merged

Conversation

t1ger-scripts
Copy link
Contributor

Export for shared account already existed in fxmanifest.lua, so removed from server/main.lua.
Alongside the other exports, I added GetAccount and removed it from the server file as well.

Also figured to update the script version, as it hasn't been done in ages.

Added GetAccount export along with the existing two exports
Removed duplicate export for shared account (already declared in fxmanifest.lua). Moved AddAccount into fxmanifest.lua as well
Updated fxmanifest script version (hasn't been updated in ages!)
@Mirrrrrow
Copy link
Contributor

In my opinion exports should always be put in the file itself (here: server.lua).
It is the same for the getSharedObject export and FiveM themself say that instead of using fxmanifest, we should try using the function itself.

@Gellipapa
Copy link
Contributor

@t1ger-scripts Hi! Yes as @Mirrrrrow says don't use this old system it is much more visible, searchable, debuggable if you put it directly in the file than in fxmanifest.

Please modify this so that everything is exported in that file.

Then I can merge it.

Copy link
Contributor

@Gellipapa Gellipapa left a comment

Choose a reason for hiding this comment

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

Add to exports to file, and remove in fxmanifest.

Copy link
Contributor

@Gellipapa Gellipapa left a comment

Choose a reason for hiding this comment

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

It's good because that's the way exports used to be.

@Gellipapa Gellipapa merged commit 28098e6 into esx-framework:main Sep 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants