SixM
Single player ↗

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

  • /anuncio shows a message at the top of the screen to everyone for duracion seconds (text up to 200 characters).
  • A history of the last historial announcements 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_cada minutes, 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

CommandWhoWhat it does
/anuncio <texto> (/announce)adminshows the announcement to everyone
/anuncios (/announcements)everyoneshows the latest announcements (up to 5) in the chat

Events

Event (client)ArgumentsWhen
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 = {...}):

KeyDefaultWhat it does
consejos_cada10minutes between tips in the chat. 0 = never
consejos3 tipslist of { en, es }: chat and commands (T), phone (M), inventory (I)
duracion8seconds an announcement stays on screen
historial20announcements 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

  • 0.1.0 anuncios.zip

    Nov 30, 2026 · 3.6 KB · 0 downloads

    SHA-256 9911f3267fe17893e762d331b20aa03a11513938f9cb2cd6613de1ebcf9ab58f

    Download

Comments (0)

Log in — Log in to comment and rate.