FiveMobileFiveMobile

Эта страница ещё не переведена на русский. Показана английская версия.

Your first server

Folder layout

server/
├── MTA Server64.exe          (or the Linux binary)
└── mods/deathmatch/
    ├── mtaserver.conf        server configuration
    ├── acl.xml               permissions
    └── resources/
        ├── spawn/            a resource
        └── fivemobile_plataforma/

mtaserver.conf

The fields that matter at first:

<config>
    <servername>My RP Server</servername>
    <serverport>22030</serverport>   <!-- game port (UDP) -->
    <httpport>22031</httpport>       <!-- resource file downloads (TCP) -->
    <maxplayers>64</maxplayers>
    <resource src="spawn" startup="1" />
    <resource src="fivemobile_plataforma" startup="1" />
</config>

Each <resource ... startup="1"/> starts a resource when the server boots.

Ports

Open them in your firewall and router:

Port Protocol What for
22030 UDP player connections
22031 TCP resource file downloads

Test from your phone

With the server running, point the app at your PC's IP on the same Wi-Fi network and port 22030. If your player spawns and walks around, you're ready to start writing resources.

Next step

Read Resources and Lua scripts to build your first resource.