Skip to content

five-on-it / packages/sim/src/items / hasTrunk

Function: hasTrunk() ​

hasTrunk(sim, eid): boolean

Defined in: packages/sim/src/items.ts:278

Whether an entity has a trunk: a car that is not a two-wheeler, or a class with one of its own (VehicleClass.trunk).

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean