---
title: "games.script-message@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/games.script-message"
updated: null
---

# games.script-message@1 · OpenVibe.Services

HTML: [games.script-message@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/games.script-message)

# GamesScriptMessage `games.script-message@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: games
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/games/script-message.v1.json`](/docs/contracts/games.script-message.json)

games.script-message@1: game.message(playerId, text), a private announcement to one player in the mod's place, prefixed with the mod's name (games.player.message).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `playerId` | string | yes |  | - `minLength 1` |
| `text` | string | yes |  | - `minLength 1`<br>- `maxLength 280` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: hi

~~~~
{
  "playerId": "plr_1",
  "text": "Welcome to the scrapyard."
}
~~~~

Rejected: empty

~~~~
{
  "playerId": "plr_1",
  "text": ""
}
~~~~

Rejected: long

~~~~
{
  "playerId": "plr_1",
  "text": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('games.script-message@1', value);   // { valid, errors: [{ path, message }] }
~~~~
