Skip to content

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

Function: vehicleEvent() ​

vehicleEvent(sim, kind, eid, car, weapon?, length?): void

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

Records what a character did to a car (unlocked it, picked its lock, resprayed, stored or took it out of a garage): an event at the car, by the character's player (0 for an NPC), which the server's missions and police read.

Parameters ​

sim ​

SimWorld

kind ​

"respray" | "store" | "unlock" | "pick" | "takeOut"

eid ​

number

car ​

number

weapon? ​

number = 0

length? ​

number = 0

Returns ​

void