Skip to content

docs(overview): replace removed player.showMessage in the server example - #3

Merged
Segfaultd merged 1 commit into
mafia2online:mainfrom
Klo1337:fix/overview-show-message
Aug 30, 2026
Merged

docs(overview): replace removed player.showMessage in the server example#3
Segfaultd merged 1 commit into
mafia2online:mainfrom
Klo1337:fix/overview-show-message

Conversation

@Klo1337

@Klo1337 Klo1337 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

The overview's server example still calls player.showMessage(...), which was removed from the server API when the local-only UI natives moved to the client (Hud.showMessage etc.). Calling it now throws.

This updates the example to the pattern from the migration note: the server sends an intent with player.emit, and the client example draws it with Hud.showMessage. It also happens to illustrate the server/client split the guide ends with.

Vehicle.spawn(32, spawn) is left as is — rotation is optional per the contract.

…owMessage

Player.showMessage was removed from the server API when the local-only UI
natives moved to the client. The overview example now sends an intent with
player.emit and draws the message on the client with Hud.showMessage, which
also illustrates the server/client split the guide describes.
@Segfaultd
Segfaultd merged commit 5451713 into mafia2online:main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants