🏜️
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
  • 🌐 Core Settings
  • 🔒 Security Settings
  • ⚡ Charging Configuration
  • 📍 Station Setup
  1. Premium Scripts
  2. Charging Kiosk

Configuration

🌐 Core Settings

editable/config/shared.lua:

return {
    debug = false,                    -- Enable for troubleshooting
    integration = {
        locales = 'en',                 -- choices (en, custom)
        notify = 'ox_lib',              -- choices (ox_lib, qb, custom)
        target = 'ox_target',           -- choices (qb-target, ox_target, custom)
        framework = 'qbx',              -- choices (qbx, qb, custom)
        inventory = 'ox_inventory',     -- choices (ox_inventory, qb-inventory, custom)
        logger = 'ox_lib',              -- choices (ox_lib, custom)
    },
    interactionMaxDistance = 3.0,     -- Kiosk interaction range
    paymentMethod = 'cash',           -- 'cash' or 'bank'
    phoneItemName = 'phone',          -- Your server's phone item name

    -- Charging speeds and prices
    chargingSpeed = {
        slow = { price = 5, tick = 0.1 },    -- 0.1% per second
        normal = { price = 10, tick = 0.2 },  -- 0.2% per second
        fast = { price = 20, tick = 0.5 }     -- 0.5% per second
    },

    -- Security settings
    pinValidation = {
        maxAttempts = 3,    -- Failed PIN attempts
        timeout = 60,       -- Lockout duration (seconds)
        length = 4          -- Required PIN length
    },

    rateLimit = {
        enabled = true,
        limits = {
            requestUI = 5,      -- UI request cooldown
            putPhone = 5,       -- Storage cooldown
            takeoutPhone = 5    -- Retrieval cooldown
        }
    }
}

🔒 Security Settings

-- Core security configuration
pinValidation = {
    maxAttempts = 3,
    timeout = 60,
    length = 4
}

⚡ Charging Configuration

chargingSpeed = {
    slow = { price = 5, tick = 0.1 },
    normal = { price = 10, tick = 0.2 },
    fast = { price = 20, tick = 0.5 }
}

📍 Station Setup

editable/data/stations.lua:

return {
    ['legion_square'] = {
        label = 'Legion Square Charging',
        coords = vector3(189.8521, -962.4086, 30.0921),
        kiosks = {
            ['kiosk_1'] = {
                label = 'Fast Charging',
                speed = 'fast',
                targetData = {
                    coords = vector3(189.8521, -962.4086, 30.0921),
                    heading = 180.0,
                    -- Choose one: prop, ped, or size
                    prop = 'prop_till_01',  -- For prop interaction
                    -- ped = 'a_m_y_business_03',  -- For NPC interaction
                    -- size = vector3(1.0, 1.0, 1.0)  -- For zone interaction
                },
                spots = 4    -- Charging slots
            }
        }
    }
}

Configured by Sahara Scripters - We read the documentation so you don't have to

PreviousSetup GuideNextFeatures

Last updated 4 months ago

See for detailed explanation of these settings.

Basic speed and pricing setup. See for detailed calculations and recommendations.

Basic station setup. For detailed examples and best practices, see .

Security Features
Charging System
Charging System