Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage metropolisVehicles.package·originates fromworld 0a0b119f-a…

api

This module provides the public API for interacting with Metropolis vehicles. It allows game makers to install vehicle presets, query available vehicle kinds and their properties, spawn drivable or display-only vehicles, and request specific states (like lamps or wear) for vehicl…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

api

This module provides the public API for interacting with Metropolis vehicles. It allows game makers to install vehicle presets, query available vehicle kinds and their properties, spawn drivable or display-only vehicles, and request specific states (like lamps or wear) for vehicles. It is called by game code that needs to create, manage, or inspect vehicles within the Metropolis world.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

nonstrict

kit( ) → any

install(opts: { hud: boolean? }?) → void

Registers our presets with vehiclesKit and turns its own gauges off (the game's HUD draws speed). Idempotent.

argtypedescription
opts{ hud: boolean? }?

kinds( ) → void

The kinds, in catalogue order.

describe(kind: string) → any

What a kind is, for menus and the game's rules.

argtypedescription
kindstring

spawn(kind: string, pos: any, opts: any?) → any

Spawns a real, drivable, synced vehicle resting at `pos` ({ x, y, z }: y = the ground under it). opts = { livery (name or number), yaw (degrees; 0 faces -Z / north), name, parent, passengers, synced }.

argtypedescription
kindstring
posany
optsany?

display(kind: string, pos: any, opts: any?) → any

A showroom / parked copy: the look alone, on this peer, no physics and no seats.

argtypedescription
kindstring
posany
optsany?

of(target: any) → any

vehiclesKit's Vehicle component of an entity (or id, or name); nil when it is not a vehicle.

argtypedescription
targetany

kindOf(target: any) → void

The kind and livery of a vehicle: "finch", "seafoam" (nil when it is not one of ours).

argtypedescription
targetany

all( ) → void

Every live vehicle of ours on this peer: { { vehicle = Vehicle component, entity, kind, livery } }.

request(target: any, name: string, value: number) → boolean

Ask a vehicle's owner for a lamp or wear state: "beacon" 0/1, "signal" -1 left / 1 right / 2 hazard / 0, "cover" 0..1 (paint on the glass), "coverColor" packed sRGB, "slick" 0..1 (paint on the tyres).

argtypedescription
targetany
namestring
valuenumber

condition(target: any) → any

What a vehicle shows and has taken: { damage, dirt, cover, slick, disabled } (as this peer knows it).

argtypedescription
targetany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.