SixM Base — chat and notices
Chat (T), slash commands and on-screen notices that every other SixM resource builds on.
Description
sixm-base is the chat and notice layer of a SixM server. It gives players a text chat, runs the / commands, shows notices at the top right of the screen and remembers the language each player uses, so that other resources can write to them in English or Spanish.
Features
- Chat opened with T. Messages are limited to 200 characters; the chat keeps the last 40 lines, which fade after 12 seconds and reappear when the chat is open. Up and down arrows recall what you typed before.
- Anything that starts with
/is sent to the server as a command. - System lines when a player joins or leaves.
- Notices on screen with four types:
bien(good),error,infoanddinero(money). - Each player's language (
enores) is sent by their client and stored on the server. Any text passed to the exports can be a plain string or a table{ en = "...", es = "..." }, and each player receives their own language.
Commands
| Command | What it does |
|---|---|
/ayuda (/help) | lists the base commands; each resource adds its own |
/jugadores (/players) | connected players with their ids |
/pos | your position written as an aparicion x y z rumbo line, ready to paste into servidor.cfg (it is also printed in the server log) |
Exports
All are server-side.
| Export | What it does |
|---|---|
avisar(id, texto, tipo) | notice at the top right; tipo is bien, error, info or dinero (default info). id -1 = everyone |
decir(id, texto) | system line in the chat. id -1 = everyone |
nombre(id) | the player's name, or #id if unknown |
idioma(id) | "en" or "es": the language that player chose ("en" until known) |
local base = sixm.importa("sixm-base")
base.avisar(id, { en = "Welcome", es = "Bienvenido" }, "bien")
Events
| Event | Where | Arguments | When |
|---|---|---|---|
sixm:idioma_listo | server | id, lang | a player's language has been received or has changed |
sixm:aviso | client | texto, tipo | emit it from a client resource with sixm.emitir to show a notice |
Configuration
None: sixm-base has no configuration file.
Requirements
No dependencies. Most other bundled resources depend on it, directly or through sixm-rp.
Installation
It already ships with the SixM server in recursos/sixm-base. To install or reinstall it, unzip it into the server's recursos/ folder and keep this line in servidor.cfg (put it first, before the resources that use it):
asegura sixm-base
Documentation: Bundled resources.
Versions
- Download
0.1.0 sixm-base.zip
Nov 30, 2026 · 4.8 KB · 0 downloads
SHA-256 41c4d52c5a32898e18c1bd35c371f3eaad472906e86056a1926acf1881cf89d9
Comments (0)
Log in — Log in to comment and rate.