ConsoleCmd
This message contains a console command which was executed by the player during the session via a key binding or via the developer console.
- Overview
- C
- C++
- C#
- JS
- TS
- Go
- Rust
- Zig
Name | Type | Size in bytes | Size in bits | Value |
---|---|---|---|---|
Size | int | 4 | 32 | - |
Data | string | Size | Size*8 | - |
typedef struct {
int size;
char* data;
} console_cmd_t;
struct console_cmd_t {
int32_t size;
std::string data;
};
class ConsoleCmd {
public int Size { get; set; }
public string Data { get; set; }
}
class ConsoleCmd {
/** @type {number} */
size;
/** @type {string} */
data;
}
export class ConsoleCmd {
public size?: number;
public data?: string;
}
type ConsoleCmd struct {
Size int32
Data string
}
pub struct ConsoleCmd {
pub size: i32,
pub data: String,
}
const ConsoleCmd = struct {
size: i32,
data: []u8,
};
note
Commands flagged as FCVAR_DONTRECORD
do not appear in demo files.