-
Notifications
You must be signed in to change notification settings - Fork 52
Suggestion: Enhancing ox_banking with Card System Integration #49
Description
Overview
While I am still new and inexperienced to JavaScript and TypeScript, I have been exploring OX and noticed that ox_inventory currently only accepts physical item-based payments such as cash, when making purchases in shops. While experimenting with the existing code to try to add alternative payment methods (e.g., sending the payment type to the server via input dialog), I realized that a structured solution might be beneficial than my rookie approach.
Proposed Feature: Bank Cards in ox_banking
I'm suggesting implementing a bank card system within ox_banking, allowing players to manage virtual debit cards that can be used for transactions within ox_inventory and potentially other ox-based resources like ox_fuel.
Suggested Additions
-
"Open Card" Option (Create, Order, Add, etc.)
- Allows players to request a new bank card.
- The card is "printed" at the bank and given to the player as a physical item in ox_inventory.
- The item contains minimal data, such as the Card Number, Name and if desired other information.
-
"Close Card" Option (Remove, Disable, Cancel, etc.)
- Allows players to cancel an existing card.
- The card will no longer function for payments, though the item will still exist, with the card information on it.
These cards would be reflected in a window, similar to "Manage Access".
Implementation
-
Database Structure:
- Each card would be stored in the database and linked to a specific bank account.
- Essential data:
account_number,card_number,closed.
-
Card-Based Transactions:
- When finalizing a payment (e.g., in ox_inventory or ox_fuel), an ox_lib input prompt could list:
- Cash
- Available Cards in the player's inventory.
- Players can select their preferred payment method, or if neither, told to scram.
- When finalizing a payment (e.g., in ox_inventory or ox_fuel), an ox_lib input prompt could list:
-
Security & Limitations:
- Daily ATM Withdrawal Limits: Each card could have a configurable limit for ATM withdrawals.
- Card Theft Risks: If stolen, the player must manually disable/cancel their card at the bank.
Potential Ideas
- PIN System: Require a PIN for certain transactions.
- Skins: An option to change the cards icon/"skin"
- Credit System: Implement interest-based credit cards.
- Business Accounts: Enable companies to issue employee cards.
This feature would enhance roleplay by allowing more realistic banking mechanics and provide a flexible payment system that goes beyond needing physical cash for transactions.