Skip to content

Reference

What LS:MP adds ​

WhatHow
Character portraitsThe game draws the ped alone in a render scene, off screen: a sharp photo (256 × 256) on the ID card and the character screen. /photo to take it again. Config.Photos.
Targeting by the imageThe picker finds what is drawn under the eye (map scenery included) and the aimed position (zones).
Built-in voiceChannels, ranges, radio, calls, on the server.
Shared stateGlobal meta and entity meta (IPL, locking, fuel): received by every player, even those arriving later.
Discord presenceThe character's name and job on the player's Discord profile. Config.Discord.
Names above headsHidden or reduced (Config.Nametags); player IDs while holding Home, for staff (rlx_hud, permission rlx.hud.ids).
Native bansrlx_admin bans through LS:MP (account and hardware), listed in the LS:MP admin panel.
Checkpoints the client cannot cheatRLX.StartRoute: the server follows each player's real path between two checks (a checkpoint crossed at full speed counts), the client only draws.
NPCs that keep their ordersRLX.AddPed: the behavior is an LS:MP AI intent, kept by the server and applied again by every player who simulates the NPC in turn: a guard keeps guarding when players come and go.
HTTP from a resourceAny resource can answer HTTP on the server's port (lsmp.http.serve, /res/<resource>/): a JSON API for your website, a webhook.
Clothes set by the serverRLX.SetOutfit: the server dresses the ped for everyone (uniforms).
Synchronized scenesRLX.PlaySyncScene: animations of several players aligned and identical everywhere, started by the server (cuffing).
View of a player's gameRLX.CapturePlayerView: an image of their game, rendered in a frame they do not see, without the interface (moderation). RLX.SpectatePlayer: follow them live.
Live screens in the worldRLX.AddScreen: any web page of your resource on a wall or a vehicle, for everyone, lit like the world (3D browser + decal).
Hot reloadSave a file: with DevReload=auto it reloads by itself in 20 ms, without restarting or disconnecting anyone. RLX takes back the characters in game (details).
Server blipsCreated and deleted by the server, for a job or a list of players, as a circle or on an entity.
Shared clock/time: time, pause, speed (up to real time), identical for everyone without sending anything.
Own keysLS:MP key mappings: the game's own Key Bindings menu, any key or combination, a controller.
Native key iconsOn-screen help and key bars drawn by GTA itself, with the player's keyboard (Config.TextUI, RLX.ShowKeyHints, RLX.ShowHelp).

On-screen cards: RLX.ShowCard(source, { title, subtitle, photo, fields = { { label, value } }, duration }) (ID card, badge, license). The ID card (id_card item, given at creation) is shown to the closest person. Server: RLX.GetCharacterPhoto(citizenid), RLX.ApplySkin(source) (dress again after xPlayer.setSkin).