Skip to content

Fix camera view modes resetting every session - #5292

Open
TheCrazy17 wants to merge 1 commit into
multitheftauto:masterfrom
TheCrazy17:feat/remember-camera-view
Open

Fix camera view modes resetting every session#5292
TheCrazy17 wants to merge 1 commit into
multitheftauto:masterfrom
TheCrazy17:feat/remember-camera-view

Conversation

@TheCrazy17

Copy link
Copy Markdown
Contributor

Summary

GTA only persists the camera view modes (the ones the change camera key cycles through) in its save files, which MTA never loads, so every session starts back on the defaults. The client now keeps both modes in coreconfig.xml: they are restored once the game world is up, and saved with an immediate config flush the moment they change, so an unclean exit cannot lose them.

The stored values are validated strictly since the settings file is hand editable; garbage, out of range or missing entries fall back to the defaults and heal themselves.

Motivation

Requested by @SpeedyFolf in #669.

Test plan

Change the view mode with V (on foot and in a vehicle), quit MTA, reopen and rejoin; both modes are back.

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

GTA only stores the view modes the change camera key cycles through in
its save files, which MTA never uses, so they reset every session.
Restore them from the client settings on startup and store them back
whenever they change.
@TheCrazy17
TheCrazy17 force-pushed the feat/remember-camera-view branch from 4a9fb0d to 49aa0fe Compare August 30, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant