Skip to content

The free roleplay framework for LS:MP

RLX gives your LS:MP server everything it needs, on its own: characters, money, jobs, items, vehicles, an interface, police, EMS and staff tools. Every part turns off with one line, and any part can be replaced by your own resource.

Your first resourceRead the guide
lua
lsmp.onClient("shop:buy", function(source, item)
  local xPlayer = RLX.GetPlayer(source)
  if not xPlayer then return end
  if xPlayer.removeMoney(5, "shop") then
    xPlayer.addItem(item, 1)
  else
    xPlayer.showNotification("Not enough money", "error")
  end
end)

Who it is for

RLX serves two kinds of people, and often they are the same person.

Server owners

You want a complete server that runs.

  • Copy the folders, fill in the database, restart: no other resource is needed.
  • Turn off any part with one line in Config.Modules.
  • Police, EMS, emergency calls, shops, bank, garages, a staff panel (F9) and a whitelist are included.
  • English and French built in, every text in its own file.
Install RLX

Developers

You write your own resources.

  • One library to load, @rlx/lib/rlx.lua, and an xPlayer with its methods.
  • Hooks that block or change every important action, and more than 50 events.
  • Replace a method of the framework everywhere with RLX.OverridePlayerMethod.
  • Hot reload in development mode: save a file and it reloads by itself, without disconnecting anyone.
Read the reference

29 bundled resources

Each one uses only the public API, exactly like yours. Disable any of them and put yours: if one is missing, the core copes.

Questions

Is RLX free?

Yes. RLX is a free RP framework for LS:MP.

What do I need?

An up-to-date LS:MP server and a MySQL or MariaDB database. No other resource: RLX spawns the players itself and brings its own chat.

Installation
Can I remove or replace a part?

Yes. Every part of the core turns off with one line in Config.Modules, and every rlx_… resource can be disabled and replaced by yours. If one is missing, the core copes: nothing breaks.

How to replace a part
Do I copy a library into my resource?

No. Your manifest loads @rlx/lib/rlx.lua, exported by rlx: every resource uses the library of the RLX it runs with.

The library
Which languages?

English and French are built in (Config.Locale). Every resource keeps its texts in its locales/ folder: to add a language, copy locales/en.lua and translate it.

Languages
Where is the documentation?

On this site, in three parts: Start, Reference and Replace a part, with search.

Open the documentation

Ready to build your server?

Install RLX, then write your first resource in a few lines.