How hattozo/gtr works
gtr runs a Roblox-compatible guest alongside a GTA V host: the guest runs a place and exports a camera-matched image, while the host supplies its world and composites that image into GTA’s picture. The principal path is host camera/input and nearby-world state to the guest, then guest-rendered color/depth back to the host compositor; guest tool effects are also applied to GTA entities. README-described place tools, trainer/RCL content, and sun calibration are retained as product branches. Some subsystem links are documented rather than visible in sampled implementation, so those edges cite the README.
Main entry points: script.cpp Host script · Tools.rbxlx Default place · Bridge.cpp Guest bridge · compositor.cpp Frame compositor
Components 18
Guest simulation
- Guest app
guest/main.cpp - Guest bridge
guest/Bridge.cpp - Host bodies
guest/Bodies.cpp
GTA host
- Host script
host/gta/src/script.cpp - Frame compositor
host/gta/src/compositor.cpp - Passthrough shader
host/gta/shaders/GtrPassthrough.fx
Frame and link transport
- Frame exporter
guest/FrameExporter.cpp - Guest link
guest/HostLink.cpp - Frame protocol
shared/gtr_frame.h - Host link
host/gta/src/link.cpp
Place and calibration
- Default place
places/Tools.rbxlx - Tool scripts
guest/scripts/Pistol.lua - Trainer menu
guest/scripts/Trainer.lua - Rocket launcher
guest/scripts/Rcl.lua - Building bins
guest/scripts/Dress.lua - Sun calibration
host/sun_calibrate.py
Other components
- Player
- GTA V world
Connections 23
- Player → Guest app: plays place
README.md - Player → Host script: controls host
README.md - Guest app → Guest bridge: starts bridge
guest/main.cpp - Guest bridge → Guest link: uses link
- Guest bridge → Host bodies: updates bodies
- Guest bridge → Frame exporter: exports frames
- Host script → Host link: polls link
host/gta/src/script.cpp - Host link → Guest link: exchanges messages
README.md - Host script → GTA V world: controls world
README.md - Host script → Guest bridge: sends camera and input
README.md - Host script → Host bodies: sends nearby entities
README.md - Frame exporter → Frame protocol: publishes frames
- Frame compositor → Frame protocol: reads frames
host/gta/src/compositor.cpp - Host script → Frame compositor: shares host state
- Frame compositor → Passthrough shader: composites guest image
README.md - GTA V world → Host script: provides camera and entities
README.md - Default place → Guest app: loads place
README.md - Default place → Tool scripts: contains tools
README.md - Default place → Trainer menu: adds menu
README.md - Default place → Rocket launcher: adds launcher
README.md - Default place → Building bins: adds bins
README.md - Tool scripts → Host bodies: affects host entities
- Sun calibration → Host script: reloads sun data
host/sun_calibrate.py