NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to move your SA-MP server to open.mp

open.mpUpdated Oct 30, 20265 min read

To move a SA-MP or open.mp server to PlayNHost, upload its gamemodes, filterscripts, scriptfiles and plugins folders under Files, then copy your settings from server.cfg into config.json. open.mp runs SA-MP gamemodes and most SA-MP plugins, so a SA-MP 0.3.7 server usually moves without changes to its scripts.

What should I copy from the old server?

CopyWhy
gamemodes (the .amx files)Your gamemode. The .pwn source is optional
filterscriptsScripts that run beside the gamemode
scriptfilesAccounts, stats and other saved data of most gamemodes
pluginsPlugins, as Linux .so files. A Windows server has .dll files: download the Linux builds of the same plugins
npcmodesOnly if your gamemode uses NPC recordings
samp.banYour SA-MP bans. open.mp reads it at start and copies its bans into bans.json. Delete samp.ban after the first start, or bans you lift come back at the next start
server.cfg or config.jsonKeep it on your PC and copy the settings across by hand, as shown below

Do not copy the old server program (samp03svr, samp-server.exe or omp-server) or the components folder of another open.mp version: your PlayNHost server already has open.mp installed. Some plugins need an open.mp build, and YSF is not needed on open.mp: How to add plugins to your open.mp server.

If your gamemode uses a MySQL database, export it from the old host as well: How to use databases with your server.

Upload the files

  1. Open your server in the panel and take a backup first: Backups, then Start backup.
  2. Stop the server.
  3. On your PC, put the folders from the table, and samp.ban if you have one, in one .zip file, with the folders at the top level of the zip. Leave server.cfg out.
  4. Click Files in the left menu, click Upload and choose the zip.
  5. Tick the zip's box and click Unzip. Your folders now sit next to config.json and omp-server.
  6. Delete the zip.
The Files page of an open.mp server with the gamemodes, filterscripts, scriptfiles and plugins folders

For many files, SFTP is faster: How to connect to your server files with SFTP.

Copy your server.cfg settings into config.json

Do not upload server.cfg to your PlayNHost server. open.mp reads server.cfg after config.json and its lines win, so an old port 7777 line moves the server off its own port and players cannot connect, and its rcon_password line replaces the RCON Password from Game Settings. Copy the values by hand instead.

open.mp's server.cfg and config.json guides describe the same settings under these names:

server.cfg lineWhere it goes on PlayNHost
hostname My ServerName in the config.json settings
password and a passwordPassword in the config.json settings
weburl, language, announce, queryWebsite, Language, Announce, Enable query in the config.json settings
mapname, gamemodetextMap and Mode under Game in the config.json settings
gamemode0 mymode 1"main_scripts": ["mymode 1"] in config.json under Files
filterscripts admin anticheat"side_scripts": ["filterscripts/admin", "filterscripts/anticheat"]
plugins streamer.so mysql.so"legacy_plugins": ["streamer", "mysql"]
rcon_passwordRCON Password under Settings, Game Settings
maxplayersThe Slots row on Overview, up to your plan's limit
portNothing: the panel sets your server's own port

The config.json settings are under Settings, Config files, config.json: open.mp config.json settings reference. The three lists in the pawn part are edited in the file under Files, then Save content.

If your old server already ran open.mp, you can upload its config.json in place of the new one, as long as it is valid JSON. The panel still writes your server's port, the RCON Password and the player limit into it at every start, so log in with the RCON Password from Game Settings, not the old one.

Check the first start

  1. Start the server and click Console.
  2. Look for Loading plugin: for each plugin, your gamemode's start lines, and Legacy Network started on port.
  3. Join with the address from Overview: How to join your open.mp server.

If a line says Could not find: or Could not load plugin:, see open.mp server problems and fixes. The general guide for moving: How to move your existing server to PlayNHost.

Already hosting it somewhere else? Move your server to us

OUR LATEST BLOGS