Wait for a console line to appear
wait_for_consoleBlock execution until a console line matching a regex appears on the FiveM server or client. Use after fire-and-forget commands to detect startup banners, errors, or RESULT: lines.
Instructions
Block until a line matching a regex appears. 'client' watches the live devcon stream; 'server' polls FIVEM_SERVER_LOG for newly written lines (only lines appended after the call count). Use after a fire-and-forget command, to watch for a resource's startup banner, an error, or a scripted RESULT: line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | 'server' = the FXServer console (UDP RCON; needs rcon_password). 'client' = the F8 console of a running FiveM Legacy client (devcon 29200/29300) — LOCAL console commands only (connect, quit, tooling); RegisterCommand chat commands are not console commands. | |
| pattern | Yes | JS regex, e.g. 'Started resource breeze-chat' | |
| afterSeq | No | client only: ignore lines up to this sequence number | |
| timeoutMs | No | Default 10000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | ||
| channel | Yes | ||
| message | Yes |