Announcements — timed notices and chat tips
Admin announcements shown at the top of the screen, a history, and rotating tips in the chat. Written in JavaScript.
Description
anuncios lets administrators show a message to every player at the top of the screen and posts tips in the chat at regular intervals. It is written entirely in JavaScript, which makes it a small example of a JS resource that imports Lua exports from sixm-base and sixm-rp.
Features
/anuncioshows a message at the top of the screen to everyone forduracionseconds (text up to 200 characters).- A history of the last
historialannouncements is saved on the server. - A player who joins within 10 minutes of the latest announcement sees it a few seconds after joining.
- Tips are posted in the chat every
consejos_cadaminutes, in order, while at least one player is connected. Each tip is written in English and Spanish and each player gets their own language. - Only administrators can announce.
Commands
| Command | Who | What it does |
|---|---|---|
/anuncio <texto> (/announce) | admin | shows the announcement to everyone |
/anuncios (/announcements) | everyone | shows the latest announcements (up to 5) in the chat |
Events
| Event (client) | Arguments | When |
|---|---|---|
anuncios:mostrar | { de, texto, cuando, duracion } | an announcement has to be shown; the resource's interface displays it |
Configuration
config.js (server side, var Config = {...}):
| Key | Default | What it does |
|---|---|---|
consejos_cada | 10 | minutes between tips in the chat. 0 = never |
consejos | 3 tips | list of { en, es }: chat and commands (T), phone (M), inventory (I) |
duracion | 8 | seconds an announcement stays on screen |
historial | 20 | announcements kept for /anuncios and for late joiners |
Requirements
Depends on sixm-base and sixm-rp.
Installation
It already ships with the SixM server in recursos/anuncios. To install or reinstall it, unzip it into the server's recursos/ folder and add or keep this line in servidor.cfg:
asegura anuncios
Documentation: Bundled resources.
Versions
- Download
0.1.0 anuncios.zip
Nov 30, 2026 · 3.6 KB · 0 downloads
SHA-256 9911f3267fe17893e762d331b20aa03a11513938f9cb2cd6613de1ebcf9ab58f
Comments (0)
Log in — Log in to comment and rate.