IS PLC
From LFS Manual
Jump to navigationJump to searchIntroduction
The PLayer Cars packet is used to set the cars a player is allowed to select.
| Type | Name | Description |
|---|---|---|
| byte | Size | 12 |
| byte | Type | ISP_PLC |
| byte | ReqI | 0 |
| byte | Zero | |
| byte | UCID | connection's unique id (0 = host / 255 = all) |
| byte | Sp1 | |
| byte | Sp2 | |
| byte | Sp3 | |
| unsigned | Cars | allowed cars - see below |
Packet Details
Size
The size of the packet is always 12 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_PLC.
ReqI
ReqI is always equal to zero.
UCID
The connection's unique ID (0 is the host, 255 means everyone).
Cars
The list of allowed cars, as a combination of the following car values:
// XF GTI - 1 // XR GT - 2 // XR GT TURBO - 4 // RB4 GT - 8 // FXO TURBO - 0x10 // LX4 - 0x20 // LX6 - 0x40 // MRT5 - 0x80 // UF 1000 - 0x100 // RACEABOUT - 0x200 // FZ50 - 0x400 // FORMULA XR - 0x800 // XF GTR - 0x1000 // UF GTR - 0x2000 // FORMULA V8 - 0x4000 // FXO GTR - 0x8000 // XR GTR - 0x10000 // FZ50 GTR - 0x20000 // BMW SAUBER F1.06 - 0x40000 // FORMULA BMW FB02 - 0x80000
Notes
This packet can only set allowed official cars. To set allowed mods, use IS_MAL instead.