RLX
RLX is a free RP framework for LS:MP. It provides the base of a server (accounts, characters, money, jobs, gangs, items, weapons, vehicles, companies, statuses, licenses, interface, interaction points, commands, logs, saving) and everything is modular:
- each part turns off with one line (modules) and can be replaced by your own resource (Replace a part);
- your resources add their own methods to
xPlayer, or replace the framework's (to plug in another inventory, another bank…); - hooks let you block or change every important action, and you can create your own;
- jobs, items, accounts, statuses, licenses and companies can be added while the server runs;
- more than 50 events, on the server and on the client;
- English and French built in (
Config.Locale), and labels can be written in several languages.
Simple to use: RLX.GetPlayer(source) returns an xPlayer with addMoney, job, addItem… It needs nothing else: no other resource is required to run a server, RLX handles the arrival of players, the characters, the chat and everything around them.
The resources
| Resource | Role |
|---|---|
rlx | The core: players, money, jobs, items, vehicles, companies, database, hooks, API. No web page. |
rlx_ui | Notifications, menus, inputs, confirmations, progress bar, settings page |
rlx_identity | Character choice, creation, deletion |
rlx_skin | Appearance editor |
rlx_inventory | Inventory window, stashes next to it (company, vehicle trunk and glovebox) |
rlx_hud | Money in the HUD, status gauges, speedometer, street |
rlx_death | Unconsciousness screen, respawn |
rlx_whitelist | Whitelist (/whitelist) |
rlx_chat | Chat, / commands |
rlx_basics | Basic items, /pay, example F6 actions (repair, impound), examples to copy |
rlx_police | Police job: cuffs, escort, search, fines, jail, ID and license checks, road objects, gunshot alerts, armory, vehicles |
rlx_ambulance | EMS job: revive, treatments, distress call (H), longer respawn while a medic is on duty, pharmacy, hospital reception |
rlx_dispatch | Emergency calls: /911, /ems, alerts from resources, animated card on screen, flashing blip with a pulsing circle, F6 > Calls |
rlx_admin | Staff panel (F9): players (sheet, inventory, job, give, sanctions, history, playtime, AFK, watch live), reports, sanctions, self tools, everyone at once, developer tools, journal |
rlx_shops | Every shop of the map (24/7, LTD, Rob's Liquor, hardware stores, Ammu-Nation), configurable |
rlx_bank | Banks and every ATM of the map (Alt): deposit, withdrawal, transfer |
rlx_garage | Garages and impound of owned vehicles |
rlx_society | Boss menu: account, employees, hiring; company stash |
rlx_billing | Bills (/bill, F6 → Bill, /bills) |
rlx_vehicleshop | Car dealership: catalogue, purchase, the vehicle is yours |
rlx_target | Targeting: hold Alt, aim, click (LS:MP picker) |
rlx_voice | Proximity voice, radio, calls (LS:MP built-in voice) |
rlx_vehiclekeys | Keys and locking (L), lockpicking |
rlx_doorlock | Lockable doors: jobs, gangs, items, auto-lock, lockpicking, doors created in game |
rlx_fuel | Fuel, pumps, jerry can |
rlx_vehicle | Seatbelt (B), vehicle menu (F7) |
rlx_clotheshop | Clothes, barbers, masks, wardrobe |
rlx_emotes | Emotes, walk styles, hands up, crouch |
rlx_ipl | GTA V and Online IPLs and interiors (standalone) |
The resources other than rlx are facade resources: they use only the public API, exactly like yours. To change one, disable it and put yours. If it is missing, the core copes: nothing breaks (details).
Contents
The documentation has three parts:
Start: install RLX, set it up, write your first resource. Installation · Your first resource · Configuration · Modules · Languages · LS:MP capabilities · Development mode: hot reload · Good to know
Reference: every function, object, hook and event. How the API is named · Server API · The xPlayer object · Hooks · Events · States, zones, net events, instances, decals · Props, aim and placement · Interface · Interaction points and blips · Owned vehicles · Companies · Stashes · Job menu (F6) · Statuses, licenses, weapons · Offline characters · Logs · Commands · Database · Client API and game tools · Keys and settings · What LS:MP adds
Replace a part: turn off what you do not want, put your own resource instead. How to replace a part · Facade resources and their contracts · Extending or replacing xPlayer · The bundled resources