Online 8
Join now
Guide · SA-MP mapping

SA-MP mapping guide

How to make a map for your SA-MP or open.mp server, from the first object to the code you paste into your gamemode. Written by the mappers of Unity Roleplay.

Questions

How do I make a map in SA-MP?

Open a SA-MP map editor like MapTogether, pick your GTA San Andreas folder, place and retexture objects, then export the code and paste it into OnGameModeInit. RemoveBuildingForPlayer lines go in OnPlayerConnect.

What is the best program for SA-MP mapping?

We use MapTogether, which we made. It is free, shows every object with a preview, does textures and material text, lets friends map with you live and tests the map in game with one button. Texture Studio is the classic in-game alternative.

Where do I put the map code?

CreateDynamicObject or CreateObject lines go in OnGameModeInit, or OnFilterScriptInit if the map is a filterscript. RemoveBuildingForPlayer lines go in OnPlayerConnect.

How do I remove buildings in SA-MP?

With RemoveBuildingForPlayer(playerid, model, x, y, z, radius) in OnPlayerConnect. In MapTogether press R and click the building, and its LOD is removed with it.

How do I change the texture of an object in SA-MP?

SetObjectMaterial (or SetDynamicObjectMaterial) swaps the texture on one material slot of an object for any texture in the game. In MapTogether you click the part of the object and pick the texture.

Do I need the streamer plugin?

For anything bigger than a small map, yes. CreateDynamicObject only sends players the objects near them, so a map can have thousands of objects.

Start mapping

MapTogether is free for Windows and Android. Download MapTogether or see how the SA-MP map editors compare.