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

Fix: Remove Citizen. to bring format up-to-date #147

Merged
merged 4 commits into from
Aug 11, 2024

Conversation

alberttheprince
Copy link
Contributor

Remove unnecessary Citizen. to bring things up to date with current practices in the FiveM community.

Replaced:

Citizen.CreateThread
Citizen. Wait
Citizen.Trace

Remove unnecessary Citizen. to bring things up to date with current practices in the FiveM community.

Replaced:

Citizen.CreateThread
Citizen. Wait
Citizen.Trace
dlc_finance/office1.lua Outdated Show resolved Hide resolved
@Legacy-TacticalGamingInteractive

What does this benefit compared to the old way? Curious for other older scripts we run if its worth doing the same.

@alberttheprince
Copy link
Contributor Author

What does this benefit compared to the old way? Curious for other older scripts we run if its worth doing the same.

It's mostly a "best practice" type change. Maybe some insanely minor performance improvement no one could detect.

I think https://docs.fivem.net/docs/scripting-reference/runtimes/lua/functions/Citizen.Await is the only thing that needs Citizen.

@TheIndra55 TheIndra55 merged commit 84a50c8 into Bob74:master Aug 11, 2024
@TheIndra55
Copy link
Collaborator

Thanks for your contribution :)

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