Skip to content

Quick start

From an empty server to your character in game ​

Seven short steps. Each one points to the full page of the documentation if you want the details.

You need: an up-to-date LS:MP server, and a MySQL or MariaDB database.

Download RLX ​

Get the package on the Download page. It holds the rlx core and every rlx_… resource.

Copy the resources ​

Copy the rlx and rlx_… folders into the server's resources/. Only rlx is required; the others are optional, and each one can be replaced by your own (Replace a part).

Connect the database ​

Create a MySQL / MariaDB database and user, then fill them in rlx/server/config.lua. This file is never sent to players. The tables are created by themselves on the first start.

Take rlx out of the sandbox ​

In resources.json (required for MySQL):

json
"rlx": { "enabled": true, "sandbox": false }

RLX needs no other resource: it spawns the players itself, after the character choice, and brings its own chat. Remove any other resource that does the same.

Give yourself the admin rights ​

In the LS:MP panel, Permissions tab: the admin group has everything (*). For a moderator, allow for example rlx.command.revive and rlx.command.tp.

LS:MP accounts

Characters are tied to the LS:MP account. Without player verification (VerifyLsmpIntegrity, tied to the server Token), a modified client can claim to be another account. Turn it on for a public server.

Restart and check the console ​

Restart the server. The console should show, in this order:

  • [RLX] framework … loaded
  • [RLX] database ready
  • [RLX] synchronous bridge OK

Each resource already declares the LS:MP capabilities it needs: nothing to grant by hand.

Try it in game ​

Join the server and create your character, then:

TryWhat it does
/giveitem me bread 5Gives you five breads (me means yourself).
TabOpens the inventory window.
/car <model>Spawns a vehicle.
F6Opens the job menu, on duty.
F9Opens the staff panel (permission rlx.admin).
/helpLists the commands you may run.

Next ​