# Live SA:MP map in the browser

> A live SA:MP web map: a Lua script sends positions from the game, a PHP, Node.js or FastAPI server stores them, and an HTML/JS client shows players on the San Andreas map.

- URL: https://pakulichev.com/en/projects/samp-web-map
- Author: Pakulichev (https://pakulichev.com/)
- Language: en
- Updated: 2026-10-15
- Whole site for LLMs: https://pakulichev.com/llms.txt (index), https://pakulichev.com/llms-full.txt (full text)

## Facts

- **Type:** Web service + Lua script
- **In-game client:** Lua (MoonLoader)
- **Server:** PHP / Node.js / Python FastAPI
- **Web:** HTML, JavaScript
- **Published:** September 13, 2022
- **Built with:** ca4tuk, Conradk10
- **My part:** code, build, turnkey installation

# Live SA:MP map in the browser

The **live SA:MP map** is a 2022 project: open a page in your browser and see where players are on the San Andreas map right now. I published it on BLAST.HK on **September 13, 2022**. I built it together with **ca4tuk** and **Conradk10**. My part was code, the build and turnkey installation on hosting.

## How it works

1. A Lua script for MoonLoader sends the player's coordinates from the game to the server.
2. The server receives and stores the current positions. It comes in three versions, **PHP**, **Node.js** and **Python FastAPI**, so it can run on any hosting.
3. A web client in HTML and JavaScript shows the map and updates the markers.

## What it's for

The map makes it easy to track where your group or faction is and to coordinate play together.

If you didn't want to set up a server yourself, I could install a private map for you, turnkey – for free or for a small fee.

## FAQ

### How does the live SA:MP map work?

A Lua script in the game periodically sends coordinates to the server, the server stores the current positions, and the web page polls it and draws players on the San Andreas map.

### What can the map server run on?

The server comes in three implementations to choose from: PHP, Node.js or Python (FastAPI).
