REDNODE / GAME API

UserSettings

classnative name userSettingsUserSettingsnative

extends IScriptable › ISerializable

The game's settings, the values of its Settings menu. GameInstance.GetSettingsSystem() returns it. Settings are in groups by path, such as /audio/volume; each setting is a userSettingsVar of a type such as Int, Bool or ListString, with GetName() and GetValue().

Each call to GetGroup, GetGroups or GetVars makes new objects. REDnode keeps them alive while a mod holds them (REDnode 0.23.1 and later).

Measured in game on 2.31 (2026-10-16, Sound API spike): /audio has the groups volume (MasterVolume, SfxVolume, DialogueVolume, MusicVolume, CarRadioVolume, RadioportVolume, Ints from 0 to 100), dynamicrange (SpeakerSetup, EnableControllerSpeaker) and misc (MuteDetectionUISounds, StreamerMode, MuteInBackground). A read after the player changes a slider shows the new value; a marked retest the same day confirmed it for MusicVolume (set to 30, read 30 once the menu closed).

const settings = await api.GameInstance.GetSettingsSystem(game.instance);
const volume = await settings.GetGroup('/audio/volume');
const master = await (await volume.GetVar('MasterVolume')).GetValue(); // 0 to 100

Methods 24

native func ConfirmChanges()
native func DisplayPurgeModCacheSuccessPopup()
native func GetGroup(groupPath: CName) -> ref<ConfigGroup>
native func GetMenuIndex() -> Int32
native func GetRootGroup() -> ref<ConfigGroup>
native func GetUserSettingsLoadStatus() -> UserSettingsLoadStatus
native func GetVar(groupPath: CName, varName: CName) -> ref<ConfigVar>
native func HasGroup(groupPath: CName) -> Bool
native func HasVar(groupPath: CName, varName: CName) -> Bool
native func NeedsConfirmation() -> Bool
native func NeedsLoadLastCheckpoint() -> Bool
native func NeedsRestartToApply() -> Bool
native func RejectChanges()
native func RejectLoadLastCheckpointChanges()
native func RejectRestartToApply()
native func RequestConfirmationDialog()
native func RequestLoadLastCheckpointDialog()
native func RequestNeedsRestartDialog()
native func RequestRejectConfirmationDialog()
native func RequestRestoreDefaultDialog(isPreGame: Bool, onlyVisible: Bool, opt groupPath: CName)
native func RequestStartReplayTutorialDialog(settingsMain: ref<IScriptable>)
native func RestoreVarToDefault(groupPath: CName, varName: CName)
native func SetMenuIndex(index: Int32)
native func WasModifiedSinceLastSave() -> Bool