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
Last updated