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

[error] Making a transfer breaks script history #42

Open
iSentrie opened this issue Jan 4, 2025 · 0 comments · Fixed by #43
Open

[error] Making a transfer breaks script history #42

iSentrie opened this issue Jan 4, 2025 · 0 comments · Fixed by #43

Comments

@iSentrie
Copy link

iSentrie commented Jan 4, 2025

A single transfer will break bank history and will make players stuck in bank UI once detailed transcations history opened.

Reason is because of "type" being set to amount sent.

image

print(playerId, label, logType, amount, bankMoney)
-- in
LogTransaction = function(playerId, label, logType, amount, bankMoney)

output:

                       playerId,      label,                  logType,           amount,      bankMoney
[  script:esx_banking] 2              TRANSFER_RECEIVE        500                543472       nil
[  script:esx_banking] 1              TRANSFER                TRANSFER           500          542028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 To be Discussed
Development

Successfully merging a pull request may close this issue.

1 participant