SixM
Single player ↗

Bundled resources

What the server package includes: chat, spawning, stores, phone, Esc menu, gestures, appearance, announcements, NPCs and clearing.

The server package includes these resources in datos-servidor/recursos/, already set in the default servidor.cfg. They are plain Lua and JS files in the package: read them as examples, change them or remove them.

ResourceLanguageDepends onWhat it does
sixm-baseLua—chat (T), / commands and on-screen notices
aparecerLua—puts the player in the world and removes the loading screen
cargaHTML—the default loading screen (pantalla_carga carga)
vaciarLuasixm-baseremoves police, traffic and peds from the base game
sixm-rpLuasixm-basethe roleplay framework
tiendasLuasixm-rpstores with a catalog: red circle and E
npcsLuasixm-rpfixed NPCs placed from in-game
telefonoLuasixm-rpthe mobile phone (M) with bank, messages, contacts, job and settings
anunciosJSsixm-base, sixm-rp/anuncio and tips in the chat
aspectoLuasixm-rpeach character's appearance creator (F7)
gestosLuasixm-basehands up (X) and /e
menuLua—the Esc menu
sin_prologoLua—experimental: skips the story's prologue scenes (not in the default servidor.cfg)

All of them answer each player in their own language (English or Spanish). The commands whose name is a Spanish word also have an English alias: see English aliases.

sixm-base

The chat and the notices everyone uses. T opens the chat; anything starting with / is a command. Commands: /ayuda, /jugadores and /pos (your location as an aparicion line for servidor.cfg). It exports avisar, decir, nombre and idioma (Exports).

It also keeps each player's language: their client reports it on joining (sixm.idioma(), "en" or "es") and idioma(id) returns it ("en" until it arrives). avisar and decir accept a plain text or { en = "...", es = "..." } and pick the language of each player, also with id -1. When a player's language arrives, the server emits the event sixm:idioma_listo(id, idioma) (Events): resources use it to resend what they had already sent in another language.

aparecer

Like FiveM's spawnmanager: with the loading screen up, it waits for the player, takes them to the aparicion point of servidor.cfg, waits for them to have ground under them and calls sixm.carga_fin(). If something gets stuck, it removes the screen after two minutes anyway. Its config.lua chooses the player's model (by default, whatever the game gives; each character's body is set by aspecto).

Settings in config.lua: modelo, copiar_peaton (false), radio_peaton, espera_peaton, nunca (models never copied from a ped), terminar_tras_fundido (empty), precargar_destino (false), radio_precarga and contar (writes what it tries to the log). Experimental: modelo has no effect in this game version (the game keeps its model) and the other options were tests that are switched off; config.lua explains each one.

tiendas

Points of sale with the server's catalog. Each store appears as a red circle on the ground; inside it, E opens the store. Payment is in cash and what is bought goes to the sixm-rp inventory.

  • config.lua: distancia (distance) for buying, the fijas (fixed) stores (by default, businesses of the roleplay area), the tipos (types) with their items and prices (ultramarinos, farmacia, ferreteria, electronica) and alias, the English names accepted as a type (grocery, pharmacy, hardware, electronics). Names can be a text or { en = "...", es = "..." }; item names come from sixm-rp.
  • Admin: /tienda_aqui <tipo> [nombre] places one where you are standing (it is saved) and /tienda_quitar removes the nearest one placed that way (within 10 m); the fijas are only changed in config.lua.
tipos = {
  taller = {
    nombre = "Taller",
    articulos = { { objeto = "llave_inglesa", precio = 40 } },
  },
}

telefono

A custom phone in HTML, with M (or the game's phone key, which stays blocked). You need to carry the telefono item. Each character has their own number (555-XXXX). Apps:

  • Banco (Bank): balance and transfers to another number (only if that number is connected at that moment).
  • Mensajes (Messages): to other numbers; they arrive even if the other person is not connected.
  • Contactos (Contacts): saved per character.
  • Trabajo (Job): job, rank, salary and going on or off duty.
  • Ajustes (Settings).

Esc opens the SixM menu (the game's pause menu doesn't come up): continue, character (opens the appearance creator), keys, connected players and quit the game. With another interface open, Esc goes to that one.

gestos

X raises and lowers the hands. /e shows the list and /e <gesture> performs one: manos, esposado, cubrirse, sentarse, bordillo, pared, barandilla, barra, esperar, movil. /e no cancels it (/e stop works too). The names in English are accepted as well: hands, cuffed, cower, sit, curb, wall, rail, bar, wait, phone. Other players see the gesture on your ped.

Experimental: /fantasma a|b|c (/ghost) is a test command that changes how you see the other players (a frozen, b loose, c walking). The gesture code also has unlisted test gestures (such as manos5 to manos7 and sonda) that /e accepts; they are for trying things out and may change or disappear.

aspecto

The character creator: when creating a character (or with F7 or /personaje) you choose the body with a sample ped in front of you, and it is saved with that character; others see you with it. If you don't choose, each character gets a different one. The list of models is in modelos.lua. In the creator: the left and right arrows change the body, H and M switch between male and female, R picks one at random, Enter saves and Esc goes back to the previous one.

Experimental: the body change works by swapping the player's ped, because setting the player model has no effect in this game version; this resource is still being tested.

anuncios

Written entirely in JavaScript, as an example. Admin: /anuncio <texto> shows it at the top to everyone (and to anyone who joins in the next 10 minutes; up to 200 characters). /anuncios shows the latest five. Everything is in config.js:

SettingWhat it does
consejos_cadaminutes between tips in the chat (0 = never)
consejosthe tips, each one { en = "...", es = "..." } (in JS, { en: '...', es: '...' }); every player gets theirs in their language
duracionseconds an announcement stays on screen
historialhow many announcements are kept (for /anuncios and for whoever joins late)

npcs

Fixed NPCs that everyone sees in the same place (shop assistants, guards, background people). Admin: /npc_aqui [quieto|pasea] [0xmodelo] [nombre] places one where you are standing, facing the way you face, and /npc_quitar removes the nearest one (within 5 m). The mode is quieto (still, the default) or pasea (wanders). Other resources place them with the poner and quitar exports.

vaciar

Removes from the base game whatever the server doesn't want, every frame. In config.lua:

SettingWhat it does
policiafalse: no wanted level and no random police (the police is provided by the roleplay)
trafico, aparcadosdensity of moving and parked cars (0.0 to 1.0)
peatones, escenariosdensity of peds and of those performing scenes
controlesgame controls that are blocked, by name ("INPUT_...")
detectar_controlestrue: every control you press appears in the log, so you can learn its name
horafixed server time (0-23) or nil
parar_guionesgame scripts to stop as soon as they appear, by key as /guiones shows it. Experimental: it does not work yet in this game version, so it ships empty
limpiar_radio, limpiar_banderasclears the area around the player every 3 seconds (radius in meters, 0 = off) using those flags. It ships at 0: with the tested flags the game crashed
pruebas/guiones (/scripts) and /parar <KEY> or /parar todos (/stopscript) in the chat, to see what each of the game's scripts does while you prepare the server. It ships as true and the commands are open to every player: set it to false on a real server

The densities only stop new peds and cars from spawning; the ones already there stay (that is what the cleaning is for). Some settings are still experimental: config.lua itself explains which ones.

Experimental and not enabled in the default servidor.cfg. It tries to get the game out of the story's prologue (skipping its scenes and asking it to exit) so that the base game stops waiting for it. Everything in its config.lua is a test not yet confirmed in play: prologo (which script it is), saltar_s (seconds of skipping), pedir_salida, sin_mision and sondas (read-only checks). Each step writes what it sees to the log.

English aliases

The commands whose name is a Spanish word also work in English:

SpanishEnglishResource
/ayuda, /jugadores/help, /playerssixm-base
/yo, /dinero, /servicio/whoami, /money, /dutysixm-rp
/dar_dinero, /trabajo, /dar_objeto/give_money, /job, /give_itemsixm-rp
/tienda_aqui, /tienda_quitar/shop_here, /shop_removetiendas
/npc_aqui, /npc_quitar/npc_here, /npc_removenpcs
/anuncio, /anuncios/announce, /announcementsanuncios
/personaje/characteraspecto
/fantasma/ghostgestos
/guiones, /parar/scripts, /stopscriptvaciar

/pos and /e are the same in both languages. In /npc_here the modes can also be still and wander; in /shop_here the types can also be grocery, pharmacy, hardware and electronics.