Skip to content

Start

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.

ModuleWhat it doesIts functions
inventoryItems with weights and metadata, use, give, the grid and hotbarUseItem, GiveItem, RegisterUsableItem, OpenInventory…
weaponsWeapons as items with a serial number, magazine and wear, or a simple list (Config.Weapons)RegisterWeapon, GetWeaponRegistration, GetWeaponState…
statusHunger, thirst, stress… changing over timeRegisterStatus, GetStatus
licensesPermits and licensesRegisterLicense, HasLicense
deathThe death timer and the respawn at the hospitalSetRespawnDelay, GetDeathInfo, Respawn
paycheckAutomatic paychecks—
sleepersA character who leaves stays asleep in the world (needs peds)GetSleepers, RemoveSleeper
afkTime played, away from keyboard (Config.Afk)GetPlayerPlaytime, IsPlayerAfk
stashesCompany stashes, trunks, gloveboxes, your ownRegisterStash, OpenStash…
dropsItems dropped on the ground become a bag (needs stashes)DropItem, GetDrops, GetNearbyDrop
craftingRecipes and workbenchesAddRecipe, AddCraftingBench, Craft…
vehiclesOwned vehicles, garages, persistenceAddVehicle, SpawnOwnedVehicle, StoreVehicle…
societiesCompany accountsGetSocietyMoney, AddSocietyMoney…
pointsInteraction points, markers, blipsAddPoint, AddBlip…
targetsTargeting options (shown by rlx_target)AddTarget, RemoveTarget
jobMenuThe job menu (F6)RegisterJobAction
requestsRequests to a player, accepted or refusedRequestPlayer
worldGTA's own world: wanted level, its police, NPC drops… (Config.World)—
instancesPrivate dimensionsCreateInstance, SetPlayerInstance…
propsObjects placed for every playerAddProp…
pedsNPCs placed by resourcesAddPed, PlayPedAnim…
decalsImages projected on the world and vehiclesAddDecal…
screensLive pages on walls and vehiclesAddScreen, EmitScreen…
zonesZones watched by the serverAddZoneTrigger…
routesCheckpoint routes (races, deliveries)StartRoute…
effectsEffects, sounds, audio, objects held in handPlayEffect, PlayAudio, AttachObject…
cinemaCamera paths, dialogs with an NPC, countdownsPlayCamera, OpenDialog, ShowCountdown
cronTasks at a time of dayAddCron
photosThe portrait of each character (Config.Photos)TakePhoto, GetCharacterPhoto
discordThe card on the players' Discord profile (Config.Discord)—
spectateWatching a player, seeing their game (staff)SpectatePlayer, CapturePlayerView
logsLog files and Discord webhooksLog
adminCommands / playerCommandsThe 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.