IS FLG
From LFS Manual
Revision as of 13:27, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''FL'''a'''G''' packet is sent by LFS when a player causes a yellow flag, is being lapped (blue flag), or any of those flags is cleared. {| class="wi...")
Introduction
The FLaG packet is sent by LFS when a player causes a yellow flag, is being lapped (blue flag), or any of those flags is cleared.
| Type | Name | Description |
|---|---|---|
| byte | Size | 8 |
| byte | Type | ISP_FLG |
| byte | ReqI | 0 |
| byte | PLID | player's unique id |
| byte | OffOn | 0 = off / 1 = on |
| byte | Flag | 1 = given blue / 2 = causing yellow |
| byte | CarBehind | unique id of obstructed player |
| byte | Sp3 |
Packet Details
Size
The size of the packet is always 8 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_FLG.
ReqI
ReqI is always equal to zero.
PLID
The player's unique ID.
OffOn
This byte equals 1 if the Flag is shown, or 0 if it is cleared.
Flag
The flag being updated:
- 1: blue flag
- 2: yellow flag
CarBehind
The PLID of the obstructed car, if relevant.