Skip to content

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.

License. RLX is free software under the GNU General Public License v3.0 (the LICENSE file of the package): you can use it, study it, change it and share it. Any version you distribute, changed or not, must stay under the same license and come with its source.

The resources ​

ResourceRole
rlxThe core: players, money, jobs, items, vehicles, companies, database, hooks, API. No web page.
rlx_uiNotifications, menus, inputs, confirmations, progress bar, settings page
rlx_identityCharacter choice, creation, deletion
rlx_skinAppearance editor
rlx_inventoryInventory window, stashes next to it (company, vehicle trunk and glovebox)
rlx_hudMoney in the HUD, status gauges, speedometer, street
rlx_deathUnconsciousness screen, respawn
rlx_whitelistWhitelist (/whitelist)
rlx_chatChat, / commands
rlx_basicsBasic items, /pay, example F6 actions (repair, impound), examples to copy
rlx_policePolice job: cuffs, escort, search, fines, jail, ID and license checks, road objects, gunshot alerts, armory, vehicles
rlx_ambulanceEMS job: revive, treatments, distress call (H), longer respawn while a medic is on duty, pharmacy, hospital reception
rlx_dispatchEmergency calls: /911, /ems, alerts from resources, animated card on screen, flashing blip with a pulsing circle, F6 > Calls
rlx_adminStaff panel (F9): players (sheet, inventory, job, give, sanctions, history, playtime, AFK, watch live), reports, sanctions, self tools, everyone at once, developer tools, journal
rlx_shopsEvery shop of the map (24/7, LTD, Rob's Liquor, hardware stores, Ammu-Nation), configurable
rlx_bankBanks and every ATM of the map (Alt): deposit, withdrawal, transfer
rlx_garageGarages and impound of owned vehicles
rlx_societyBoss menu: account, employees, hiring; company stash
rlx_billingBills (/bill, F6 → Bill, /bills)
rlx_vehicleshopCar dealership: catalogue, purchase, the vehicle is yours
rlx_targetTargeting: hold Alt, aim, click (LS:MP picker)
rlx_voiceProximity voice, radio, calls (LS:MP built-in voice)
rlx_vehiclekeysKeys and locking (L), lockpicking
rlx_doorlockLockable doors: jobs, gangs, items, auto-lock, lockpicking, doors created in game
rlx_fuelFuel, pumps, jerry can
rlx_vehicleSeatbelt (B), vehicle menu (F7)
rlx_clotheshopClothes, barbers, masks, wardrobe
rlx_emotesEmotes, walk styles, hands up, crouch
rlx_iplGTA 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