Skip to content

five-on-it / packages/sim/src/locks / lockVehicle

Function: lockVehicle() ​

lockVehicle(sim, car, locked, key?): void

Defined in: packages/sim/src/locks.ts:70

Locks or unlocks a vehicle; with key, sets the tag its key answers to.

Parameters ​

sim ​

SimWorld

car ​

number

locked ​

boolean

key? ​

string

Returns ​

void