Modules
Every part of the core turns off with one line, in Config.Modules (rlx/shared/config.lua): set it to false. A module that is off does nothing: no loop, no data, no message. Its functions do not fail either: they return nil, "module_disabled:<module>", so the resources that use them can tell and adapt. A module missing from Config.Modules is on.
| Module | What it does | Its functions |
|---|---|---|
inventory | Items with weights and metadata, use, give, the grid and hotbar | UseItem, GiveItem, RegisterUsableItem, OpenInventory… |
weapons | Weapons as items with a serial number, magazine and wear, or a simple list (Config.Weapons) | RegisterWeapon, GetWeaponRegistration, GetWeaponState… |
status | Hunger, thirst, stress… changing over time | RegisterStatus, GetStatus |
licenses | Permits and licenses | RegisterLicense, HasLicense |
death | The death timer and the respawn at the hospital | SetRespawnDelay, GetDeathInfo, Respawn |
paycheck | Automatic paychecks | — |
sleepers | A character who leaves stays asleep in the world (needs peds) | GetSleepers, RemoveSleeper |
afk | Time played, away from keyboard (Config.Afk) | GetPlayerPlaytime, IsPlayerAfk |
stashes | Company stashes, trunks, gloveboxes, your own | RegisterStash, OpenStash… |
drops | Items dropped on the ground become a bag (needs stashes) | DropItem, GetDrops, GetNearbyDrop |
crafting | Recipes and workbenches | AddRecipe, AddCraftingBench, Craft… |
vehicles | Owned vehicles, garages, persistence | AddVehicle, SpawnOwnedVehicle, StoreVehicle… |
societies | Company accounts | GetSocietyMoney, AddSocietyMoney… |
points | Interaction points, markers, blips | AddPoint, AddBlip… |
targets | Targeting options (shown by rlx_target) | AddTarget, RemoveTarget |
jobMenu | The job menu (F6) | RegisterJobAction |
requests | Requests to a player, accepted or refused | RequestPlayer |
world | GTA's own world: wanted level, its police, NPC drops… (Config.World) | — |
instances | Private dimensions | CreateInstance, SetPlayerInstance… |
props | Objects placed for every player | AddProp… |
peds | NPCs placed by resources | AddPed, PlayPedAnim… |
decals | Images projected on the world and vehicles | AddDecal… |
screens | Live pages on walls and vehicles | AddScreen, EmitScreen… |
zones | Zones watched by the server | AddZoneTrigger… |
routes | Checkpoint routes (races, deliveries) | StartRoute… |
effects | Effects, sounds, audio, objects held in hand | PlayEffect, PlayAudio, AttachObject… |
cinema | Camera paths, dialogs with an NPC, countdowns | PlayCamera, OpenDialog, ShowCountdown |
cron | Tasks at a time of day | AddCron |
photos | The portrait of each character (Config.Photos) | TakePhoto, GetCharacterPhoto |
discord | The card on the players' Discord profile (Config.Discord) | — |
spectate | Watching a player, seeing their game (staff) | SpectatePlayer, CapturePlayerView |
logs | Log files and Discord webhooks | Log |
adminCommands / playerCommands | The built-in commands | — |
What is always there: accounts, characters, money, jobs and gangs, the library, hooks, events, states and zones, the interface and the commands system.
RLX.IsModuleEnabled(name) tells a resource whether a module is on. To replace a module by your own resource, see Replace a part.