๐Ÿ“œConfiguration

Here you can find the latest available config file for Peace-SpeedCamera

Configuration

Config.lua file

Config = {}

Config.Framework = 'QB' -- Options: 'QB', 'ESX', 'QBox', 'custom'

Config.Payment = {
    price = 50,              -- Rental price
    account = 'bank',        -- Account to debit: 'bank' or 'cash'
    sendMoneyToJob = false,  -- Send a percentage of the rental to a job account
    -- Example for ESX: ['police'] = 'society_police'; this means bike rentals associated
    -- with the 'police' job will send money to the 'society_police' account in esx_addonaccount.
    -- Example for QBCore: ['police'] = 'gouv'; this means bike rentals associated
    -- with the 'police' job will send money to the 'gouv' account in qb-management.
    jobAccountMap = {
        -- ['police'] = 'society_police',
        -- ['sherif'] = 'society_sherif',
        -- ['gov'] = 'society_gov',
    },
    jobPercent = 0,          -- Percentage of price to send (0-100)
}

Config.Keys = {
    hire = {0, 191},         -- Key to rent a bike (INPUT_FRONTEND_RDOWN)
    back = {0, 191},         -- Key to return a bike (INPUT_FRONTEND_RDOWN)
}

Config.Bike = {
    model = `inductor`,                      -- Bike model
    offset = vector3(0.0, -1.0, 0.75),        -- Bike position on dock (X, Y, Z)
    rotation = vector3(0.0, 0.0, 0.0),     -- Bike rotation on dock (X, Y, Z)
}

Config.Props = {
    dock = `peace_prop_bike_station`,            -- Modรจle du dock
    machine = `peace_prop_bike_rental`,    -- Modรจle de la borne
}

Config.Blip = {
    enabled = true,          -- Enable blips on the map
    sprite = 226,            -- Blip sprite ID
    color = 5,               -- Blip color
    scale = 0.7,             -- Blip size
    shortRange = true,       -- Display only at short range
    display = 4,             -- Display type
    name = "Bike Rent",    -- Blip name
}

Config.Animation = {
    enabled = true,                         -- Enable animation at the machine
    dict = "amb@prop_human_atm@male@enter", -- Animation dictionary
    name = "enter",                         -- Animation name
}

Config.Cooldown = {
    enabled = true,          -- Enable cooldown between rentals
    time = 5,                -- Time in minutes before being able to rent again
}

Config.AutoReset = {
    enabled = true,          -- Automatically reset unreturned bikes
    time = 10,               -- Time in minutes before automatic reset
}

Config.Distance = {
    spawn = 200.0,           -- Distance to spawn bikes (optimization)
    interact = 2.0,          -- Distance to interact with the machine
    back = 3.0,              -- Distance to detect return to dock
}

Config.Availability = {
    percent = 90.0,         -- Percentage of bikes available on startup (0-100)
}

Config.Command = 'bikerent'

Config.Language = 'en'  -- Options: 'fr', 'en', 'de', 'cs'

Config.Lang = {
    press = "Press",
    hire = "to rent a bike",
    back = "to return the bike",
    noFree = "There is no free station to drop off this bike!",
    noneLeft = "There are no bikes available",
    bikeHired = "You have rented a bike, it is now unlocked and ready to use",
    cooldown = "You must wait before renting another bike!",
    notEnoughMoney = "You don't have enough money on your card!",
    noPermission = "You don't have permission to access this!",
}

Config.Stations = {}

Main Commands

  • /bikerent: Open the NUI menu for a staff.


Last updated