🏜️
Sahara Scripters
  • Welcome
    • Introduction
    • Community & Support
  • Premium Scripts
    • Charging Kiosk
      • Setup Guide
      • Configuration
      • Features
        • Charging System
        • Security
        • Rate Limiting
        • Logging System
        • Phones Management
        • Discord Integration
        • Target System
        • Blip System
        • Translations
      • Integration
        • Inventory Systems
        • Framework Migration
        • Logger Edit
      • Best Practices
      • Troubleshooting
      • Version History
  • Free Scripts
    • Elevator System
      • Setup & Configuration
      • Features Overview
      • Example Buildings
      • Troubleshooting
    • NPWD Renewed Weather APP
    • NPWD QBX Services APP
Powered by GitBook
On this page
  • 📋 Supported Frameworks
  • 🔁 Migration Steps
  • ⚙️ Framework Functions
  • 🔍 Validation
  1. Premium Scripts
  2. Charging Kiosk
  3. Integration

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

-- 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)

PreviousInventory SystemsNextLogger Edit

Last updated 4 months ago