# Framework Migration

## 📋 Supported Frameworks

* QBCore
* QBox

## 🔁 Migration Steps

1. Backup configurations
2. Copy appropriate example
3. Update framework exports
4. Test functionality
5. Update player functions

## ⚙️ Framework Functions

```lua
-- Required implementations

--- Get the current balance for a specific account type
--- @param source number The player's server id
--- @param account string The account type (cash, bank, etc)
--- @return number balance The current balance
function EditableFramework.getBalance(source, account)


--- Check if a player has enough money in a specific account
--- @param source number The player's server id
--- @param account string The account type (cash, bank, etc)
--- @param amount number The amount to check
--- @return boolean hasEnough Whether the player has sufficient funds
function EditableFramework.hasEnoughMoney(source, account, amount)


--- Remove money from a player's account
--- @param source number The player's server id
--- @param account string The account type (cash, bank, etc)
--- @param amount number The amount to remove
--- @param reason string The reason for removing money (for logging)
--- @return boolean success Whether the money was successfully removed
function EditableFramework.removeMoney(source, account, amount, reason)


--- Add money to a player's account
--- @param source number The player's server id
--- @param account string The account type (cash, bank, etc)
--- @param amount number The amount to add
--- @param reason string The reason for adding money (for logging)
--- @return boolean success Whether the money was successfully added
function EditableFramework.addMoney(source, account, amount, reason)


--- Validate a player job and grade
--- @param source number The player's server id
--- @param job string The job name to check for
--- @param grade number The grade level to check for
--- @return boolean success Whether the player has the specified job and grade
function EditableFramework.validateJob(source, job, grade)
```

## 🔍 Validation

* Test payment system
* Verify job checks
* Confirm inventory sync
* Check notifications

***

*Migrated by Sahara Scripters - Moving your stuff without dropping it (usually)*
