five-on-it / packages/protocol/src/messages / encodeDebugCommand
Function: encodeDebugCommand()
encodeDebugCommand(
command):string
Defined in: packages/protocol/src/messages.ts:521
Serializes a debug command as a text frame.
Parameters
command
ahead?
number = ...
carClass?
number = ...
climate?
"none" | "temperate" | "meadow" | "forest" | "alpine" | "farmland" | "steppe" | "desert" | "autumn" | "coast" = ...
cmd
"police" | "clock" | "invincible" | "maxHealth" | "weather" | "spawnChaser" | "clearChasers" | "teleport" | "wanted" | "pedestrian" | "carHealth" | "rtcDrop" | "fit" | "ignite" = ...
crew?
number = ...
health?
number = ...
heat?
number = ...
hours?
number = ...
intensity?
number = ...
kind?
"clear" | "overcast" | "rain" | "storm" | "fog" | "snow" = ...
minutes?
number = ...
mode?
"foot" | "car" = ...
mods?
("runFlats" | "caltrops" | "oil" | "bullBar" | "plating" | "nitro")[] = ...
fit: the upgrades fitted to the player's car (the simulation's MOD_SHOP ids).
night?
boolean = ...
on?
boolean = ...
pace?
number = ...
profile?
string = ...
road?
string = ...
stars?
number = ...
tune?
Record<string, number | boolean> = ...
type
"debug" = ...
unit?
"boat" | "apc" | "dart" | "grappler" | "helicopter" | "sniper" | "cannon" | "bike" = ...
police: a unit of the heavy response sent after the player now (@foi/ai's HEAVY_UNITS), at stars first when given; on, alone (the police send them nothing else).
Returns
string