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

feat: trigger event upon paying bill #20

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Conversation

Z3rio
Copy link
Contributor

@Z3rio Z3rio commented Jun 24, 2024

An event was added to the server & client side to show whether a bill was paid or not.

Why is this neat to have?
Personally I want to add this as it allows other scripts to listen to when esx_billing bills are paid.
Instead of having to periodically fetch the billing database table and check the data there.

Forexample: I have a parking enforcement job script, which sends bills via esx_billing, where I'd want to sync the data for whether the bill is paid or not in my script.

Copy link
Member

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

Please do this request changes, but code is cool. Thanks for this feature.

client/main.lua Outdated Show resolved Hide resolved
server/main.lua Outdated Show resolved Hide resolved
server/main.lua Outdated Show resolved Hide resolved
server/main.lua Outdated Show resolved Hide resolved
server/main.lua Outdated Show resolved Hide resolved
server/main.lua Outdated Show resolved Hide resolved
Copy link
Member

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

Thanks for fixes.

@Gellipapa Gellipapa merged commit c20ec38 into esx-framework:main Jun 24, 2024
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.

None yet

3 participants