Introduction
What a Fallout Multiplayer resource is, where it runs, and which page to open for the task in front of you.
Fallout Multiplayer (FMP) puts other players into Fallout 4’s own Commonwealth. Everything that makes a server yours lives in resources: folders of JavaScript or TypeScript the server loads.
| Server half | Client half | |
|---|---|---|
| Runs on | The dedicated server | Every connected player’s game |
| Owns | Everything shared: who is connected, where they spawn, their inventories, loose items, mines, radio stations | Nothing shared. It reads what this machine sees and draws UI |
| Typical jobs | Spawns, chat commands, game rules, economy, persistence | HUD messages, key binds, menus, browser views |
| Reference | Server API in the header | Client API in the header |
Start here
Section titled “Start here”Read Getting started in order:
- Install and run a server: from nothing to standing in your own Commonwealth.
- Write your first resource: a command, a key bind and a server round trip.
- Use TypeScript: autocomplete and type checking for the whole API.
- Structure a larger resource: folders that stay easy to change.
Then build something end to end with a tutorial.
Find it fast
Section titled “Find it fast”| I want to… | Guide |
|---|---|
| Give factions their own voice range, silence the dead, run a radio station | Voice and radio |
| Put an HTML panel on screen and talk to it safely | Settlement terminal |
| Cap, refuse, score and disarm mines | Minefield mode |
| Restock the world’s containers, lock a gate, audit inventories | Loot and locks |
| Spawn a named boss NPC, mark it on every map, pay whoever kills it | Bounty hunt |
| Run a shop with a vendor NPC and server-held prices, let players trade | Shopkeeper and trades |
| Make chat local, add /me, /ooc, /pm and /pay, organise many commands | Roleplay chat |
| Let a player go down instead of dying, and be revived | Downed and revived |
| Keep characters, positions and the world’s clock across restarts | Persistence |
| Set the time, the weather, or one player’s own sky; roll a weather cycle | Time and weather |
| Get an answer only a player’s game has: a raycast, a camera | Ask a player’s game |
The guides from Bounty hunt down each rebuild a feature of fmp-gamemode, the default
gamemode shipped with the server, so its source is a complete, working version to read alongside.
A taste
Section titled “A taste”Two files are a complete resource. The server half greets people and respawns them where they died:
Events.on("playerReady", (player) => { Chat.sendToPlayer(player, `Welcome to the Commonwealth, ${player.nickname}.`, { author: "Server" });});
Events.on("playerDeath", (player) => { setTimeout(() => player.respawn(), 5000);});The client half shows the local player a HUD notification when they press F8:
Key.bind("f8", "down", () => { Hud.notify("Still breathing.");});Write your first resource builds one like it step by step.
One rule explains most of the API
Section titled “One rule explains most of the API”Each player’s own game is the authority for their own body: its health, its position, what it is
wearing. The server is the authority for everything shared. So player.teleport(...) sends that
player’s game a request, and most verbs return whether the request went out, not whether it worked.
Read a value back on the next tick rather than assuming a write landed.
The same rule explains why so many events can be refused. A handler for playerHit, itemDrop,
doorChange or playerExplosion returns false to drop what the player’s game reported, and the
game is told to put it back.
Where the reference comes from
Section titled “Where the reference comes from”Every page under Server API and Client API, which the switcher in the site header opens, is generated from the bindings the server and the client actually register, so when a guide and the reference disagree, the reference wins. Please open an issue so the guide gets fixed.