Skip to content

Full Config — Rentals

The complete default configs/shared/rentals.lua for Scooters — rental fees, distances, and the phone app.

TIP

For a detailed explanation of each option, see the Rentals section of the Configuration page.

Download rentals.lua

lua
-- The rental economy and the phone app that fronts it.
return {
    Enabled = true, -- register the phone app and the rental callbacks (needs a framework for money)
    UnlockFee = 5, -- charged when a ride starts
    PerMinute = 1, -- charged per started minute when the ride ends
    Account = 'bank', -- 'bank' | 'cash'; where fees are taken from
    Currency = '$', -- symbol the app shows in front of prices
    RentDistance = 12.0, -- metres the player must be from a scooter to unlock it from the app
    StationDistance = 12.0, -- metres the player must be from a bunker to have it dispense a scooter
    DockDistance = 12.0, -- ending a ride this close to a bunker docks the scooter back into it
    NearbyRadius = 600.0, -- metres around the player the app lists scooters and bunkers in
    LockIdle = true, -- lock scooters nobody is renting so they can only be ridden through the app
    MaxRideMinutes = 180, -- rides older than this are closed and billed automatically
    RefreshMs = 2500, -- ms between the app's live refreshes (player + scooter positions)

    -- The paid resource owns the full SCOOT UI and registers it externally with sd-phone.
    App = {
        identifier = 'scoot_external',
        name = 'SCOOT',
        description = 'Rent an e-scooter near you',
        developer = 'SCOOT Mobility',
        size = 4096, -- KB shown in the app store
        defaultApp = true, -- pre-installed on every phone
        wifi = false, -- works without signal so a ride can always be ended
        ForceCustom = true,
    },
}