Charging System

πŸ”‹ Charging Speeds

  • 🐒 Slow: 0.1% per second (16.7 mins full charge) - $5

  • 🚢 Normal: 0.2% per second (8.3 mins full charge) - $10

  • ⚑ Fast: 0.5% per second (3.3 mins full charge) - $20

Speed configurations are defined in config/shared.lua. See Configuration Guide.

πŸͺ Station Types

Station configuration is defined in data/stations.lua. See Configuration Guide for basic structure.

1. Prop Station

targetData = {
    coords = vector3(x, y, z),
    heading = 180.0,
    prop = 'prop_till_01'  -- Physical object
}

2. NPC Station

targetData = {
    coords = vector3(x, y, z),
    heading = 180.0,
    ped = 'a_m_y_business_03',
    scenario = 'WORLD_HUMAN_CLIPBOARD'
}

3. Zone Station

targetData = {
    coords = vector3(x, y, z),
    heading = 180.0,
    size = vector3(1.0, 1.0, 1.0)  -- Interaction area
}

πŸ“± Common Setups

City Center

['downtown'] = {
    label = 'Downtown Express',
    coords = vector3(x, y, z),
    kiosks = {
        ['k1'] = {
            label = 'Fast Charging',
            speed = 'fast',
            targetData = {...},
            spots = 6  -- High capacity
        }
    }
}

Convenience Store

['store'] = {
    label = '24/7 Charging',
    coords = vector3(x, y, z),
    kiosks = {
        ['k1'] = {
            label = 'Normal Charging',
            speed = 'normal',
            targetData = {...},
            spots = 2  -- Basic setup
        }
    }
}

πŸ” Station Management

  • Each station can have multiple kiosks

  • Each kiosk has configurable spots

  • Spots track charging progress independently

  • Simultaneous charging supported


Powered by Sahara Scripters - Charging your phone slower than your patience

Last updated