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

Added new functionality: money as an item. #1133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SilantroX
Copy link

Added new functionality: money as an item.

Description

Checklist

  • I have personally loaded this code into an updated QBCore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

Added new functionality: money as an item.
@SilantroX SilantroX changed the title Update player.lua Added new functionality: money as an item. Jul 19, 2024
Copy link
Author

@SilantroX SilantroX left a comment

Choose a reason for hiding this comment

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

Modified player.lua to use exports for qb-inventory and to verify the account to which money is being added. If it's cash, the item named "cash" will be added or removed from the inventory. Additionally, an extra event was added so that when a player joins the server, their money is set to load into their inventory if it wasn't saved previously or if it is the first time using this functionality.

@Sanriku-Gaming
Copy link

This change is far more likely to be accepted with a Config.MoneyAsItem option, instead of the only option. There are also other events/functions that will need to be changed for this to work.

Copy link

This PR has had 60 days of inactivity & will close within 7 days

@github-actions github-actions bot added the Stale label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants