five-on-it / packages/protocol/src/messages / encodeDebugCommand
Function: encodeDebugCommand()
encodeDebugCommand(
command):string
Defined in: packages/protocol/src/messages.ts:459
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
"clock" | "invincible" | "maxHealth" | "weather" | "spawnChaser" | "clearChasers" | "teleport" | "wanted" | "pedestrian" | "carHealth" | "rtcDrop" = ...
crew?
number = ...
health?
number = ...
hours?
number = ...
intensity?
number = ...
kind?
"clear" | "overcast" | "rain" | "storm" | "fog" | "snow" = ...
minutes?
number = ...
mode?
"car" | "foot" = ...
night?
boolean = ...
on?
boolean = ...
pace?
number = ...
profile?
string = ...
road?
string = ...
stars?
number = ...
tune?
Record<string, number | boolean> = ...
type
"debug" = ...
Returns
string