Skip to content

Configuration Reference

Every option in config.lua, with its default. Nothing here has to be changed for the resource to work.

General

OptionDefault
Config.Framework'auto'vorp, rsg, redemrp, qbr, standalone, or auto detect
Config.Locale'en'en de es fr ja nl ru
Config.DebugfalseState transitions to the console. Leave off in production
Config.PlayerCommandstrueRegister /lantern, /lanternplace, /lanterncolour, /lanternbright
Config.TuningCommandsfalseRegister the nine offset tuning commands

Controls

OptionDefault
Controls.UsePromptstrueNative RDR2 prompts rather than silent key listening
Controls.PromptGroupName'Lantern'Title shown above the prompt group
Controls.UseCustomKeyfalseUse CustomKey instead of R / B
Controls.CustomKey'K'Must exist in Config.Keys
Controls.UseCustomControllerfalseLT/L2 + D-Pad Right instead of B / Circle
Controls.HoldTime350Milliseconds before a hold counts as place / pick up
Controls.TapMaxTime250Guard so a hold never also fires the tap
Controls.BlockWeaponWheelWhileStowedtrueStops the game re-equipping a stowed lantern

Config.Keys and Config.Inputs hold the raw hashes. Leave them alone unless you know what you are changing — see Controls.

Carrying

OptionDefault
Config.MountedStoragetrueStow onto the horse when mounted instead of the rider
Config.KeepLanternOnHorsefalsetrue leaves it hanging when you dismount
Config.HorseReachDistance3.5How close to the horse to take it off from the ground
Config.AdoptExistingStowedtrueOffer to take out a lantern the engine already holds
Config.PedCarryStyle'auto'auto, satchel, gunbelt
Config.HorseAttachPoint'weightbag'weightbag, saddle, horn, rear
Config.RemoveWeaponOnHorsetrueSaddled lantern leaves the rider — stops a second appearing on the belt

Config.PedBones and Config.HorseAttachPoints define the bones and offsets. See Carrying & attach points.

Placement

OptionDefault
Config.LanternPlacementtrueHold to place and pick up
Config.UnlimitedPlacementfalsefalse = one per player at a time
Config.MaxPlacedPerPlayer8Cap when unlimited. 0 = no cap
Config.MaxPlacedGlobal200Server wide cap. 0 = no cap
Config.AllowForeignPickuptruePlayers may pick up others' lanterns
Config.RemoveWeaponOnPlacetrueA placed lantern leaves the owner's hands entirely
Config.PlaceDistance1.8How far in front a lantern is set down
Config.PickupDistance2.0How close to pick one up
Config.RenderDistance120.0How far a client draws placed lanterns

See World placement.

Lighting

OptionDefault
Config.ColourChangingtrueColour cycling on / off
Config.BrightnesstrueBrightness control on / off
Config.NotifyLightingChangestrueShow a notification on change
Config.Colours10 entriesName and RGB per colour
Config.BrightnessLevels6 entriesMultiplier per level
Config.MinBrightness-5
Config.MaxBrightness0Default and maximum

See Colour & brightness.

Lanterns and inventory

OptionDefault
Config.Lanterns4 entriesWeapon hash → prop, item, offsets
Config.DefaultLanternUsed for any lantern not listed
Inventory.RequireItemfalseRequire the item to place
Inventory.ConsumeOnPlacefalseTake the item while it is on the ground

See Lanterns & items.

Persistence

OptionDefault
Persistence.PlacedfalseKeep placed lanterns across restarts
Persistence.SettingstrueKeep each character's colour and brightness
Persistence.Mode'json'json or mysql
Persistence.SaveInterval120Seconds between saves

See Persistence.

Notifications

OptionDefault
Config.NotifyStyle'auto'auto uses your framework, native forces on-screen text, none is silent
Config.NotifyDuration3000Milliseconds

Animations

OptionDefault
Anims.dict'mech_pickup@system@rh'
Anims.placeNear'ground_near'
Anims.placeFar'ground_far_swipe'
Anims.duration1200

These are base game animations. Changing them is not recommended.

Options worth changing first

Most servers touch only these:

lua
Config.Locale = 'en'                   -- your language
Config.HorseAttachPoint = 'weightbag'  -- where it hangs on the saddle
Config.KeepLanternOnHorse = false      -- dismount behaviour
Config.UnlimitedPlacement = false      -- one placed lantern, or many
Config.MaxPlacedGlobal = 200           -- server wide cap

Documentation for RedMorrow. Scripts are licensed per server — redistribution is not permitted.