Skip to content

Configuration ​

Money in transport config, persisted fares and NUI payloads is integer cents. The payment bridge converts to whole currency units for np_payments/framework accounts; settlement totals are normalized to match the amount charged. Distances are metres; tariffs bill per configured distance unit. Unix timestamps are seconds. Headway is minutes and departure windows use HH:MM.

File Purpose
shared/config.lua Locale/currency/units, sampling, fare limits, surge, tariffs, extras and ride classes
shared/config/routes.lua Modes, stop radius, dwell/minimum travel time, NPC seat cap
shared/config/tickets.lua Product list, default fine and validator display duration
shared/config/world.lua Public markers, interaction distances/refresh and configured service points
shared/config/charter.lua Limo, heli, jet and yacht base/hourly prices, deposits and seats
shared/lib/features.lua np_jobs schemas and defaults for the nine capabilities
config/fallback_jobs.lua Framework job-to-feature map, minimum grades and optional scope
shared/np_admin_settings.lua Live surge, NPC and charter settings via np_admin
shared/locales/en/transport.lua, shared/locales/de/transport.lua English and German strings

For example, the default City tariff has a 300-cent flag fall, 100-cent distance rate, 80-cent waiting rate per minute and an 800-cent minimum. The global fare cap is 250000 cents and maximum surge is 2.0. Review these values against your economy before enabling them.

Access ​

When np_jobs runs, hasFeature(src, id, opts) decides access and supplies the effective config. All transport staff features declare required duty. np_jobs owns job composition, ranks and permission policy; transport does not hardcode job names or add ACE checks.

Without an installed np_jobs host, the fallback map supplies features by framework job and grade. An installed host that is unavailable fails closed. Configure fallback jobs explicitly; example roles are not an automatic production policy.

Staff overrides and audit entries use npAdmin.can, settings, action and log. Public rider bookings and ticket purchases do not require a transport staff role.

World points and settlement ​

Config.Transport.world accepts drawDistance, interactDistance, refreshSeconds and a points array. Point kinds are tickets, validator, stop, terminal, ferry and charter; each has id, label, x, y, z and, where relevant, terminalId or sailingId. Published stops/terminals and configured sailing origins also supply points. Marker interactions do not spawn physical ticket-machine props or aircraft.

Transport stores cents internally and normalizes settlement to whole currency units for np_payments and framework accounts. When np_payments is absent, only the selected supported cash/bank method is used. A started provider rejecting a charge does not trigger a second framework debit.

Taxi settlement credits the configured company share through supported np_faction operating accounts or np_banking society/account credit paths, then pays the remaining fare plus tip through np_jobs or its permitted framework fallback. A configured unavailable payee fails closed; provider rejection is not reported as a successful payout. Review companyCut and payee together. These taxi split rules do not imply every charter or ticket purchase pays crew automatically.

A non-empty transport.routes.lines grant restricts the driver's published line choices and run progress; an empty list allows all configured modes. Sailing records use ticket_zone (default ferry) for passenger ticket eligibility. Passenger passes do not cover the vehicle crossing fee. transport_pending_refunds stores failed ferry refund references until the original np_payments ledger confirms the full refund.