# About the Project
GTA.js is a reimplementation of the original 1997 Grand Theft Auto engine written in TypeScript and Three.js. It parses the unaltered gamedata files to bring Liberty City to life directly in the browser.
# Not an Emulator
This project is not a DOSBox wrapper, not an emulator, nor is it decompiled from the original executable. It is a reimplementation built with the help of Google Gemini, referring it to open source reimplementations, public documentation and community notes, or by simply telling it how I recall the game from playing (and editing) GTA a lot back in the day.
Because this is a reimplementation, there are differences compared to the original 1997 game in certain physics behaviors and unimplemented systems.
# Play GTA.js
Play the game in the iframe below. or open it in a new tab.
# Implementation Status
A high-level overview of what is currently playable in GTA.js versus features from the 1997 game that are not implemented.
✓ Implemented
- 3D City & Map Rendering: Stacked block city geometry, 40 slope types, animated water, traffic lights, and 24-bit palette-remapped sprites.
-
Vehicles & Handling: Authentic per-car
.G24rigid-body handling, 4-corner collisions, directional dent and door deltas, skidmarks, horns & emergency sirens, car explosions, working Fire Truck water cannons, and Tanks with rotating missile turrets and car crushing. - Weapons & Crates: Fist, Pistol, Machine Gun, Rocket Launcher, Flamethrower, armor, extra lives, and destructible barrels.
-
MISSION.INIEngine: Multi-process script interpreter, ringing payphones, objective guidance arrows, timers, and HUD briefings. - NPC Traffic & Pedestrians: Ambient traffic vehicles (including buses, coaches, tankers, and fire trucks), carjacking, pedestrian walking/panicking/fleeing AI, and spatial Web Audio effects.
- Cops & Wanted Levels: Police patrol cars, roadblocks, wanted level heads, and getting Busted!
- Dock Cranes: Functional harbour cranes that hoist, swing, and crush vehicles for cash bonuses.
- Kill Frenzy: Hidden timed rampage challenges with unlimited ammo and score multiplier rewards.
- ★ Mobile Touch Controls: Context-sensitive on-screen thumbstick and action buttons for phones and tablets.
- Respray Shops: Drive-in respray shops to get a new color or plates, and get rid of the cops.
- Bomb Shops: Drive-in bomb shops for rigging vehicles with timed explosives.
- Radio Stations & Audio: In-car FM stations and Police Radio with continuous broadcast clocks, HUD station banners, station cycling, and independent Sound/Music volume & Radio/Constant/None mode options.
- Save & Load Games: 4-slot free-roam savegames scoped per gamepack, map, and chapter with progress metadata, accessible from the pause menu and start screen.
- Trains & Trams: Autonomous 4-carriage elevated/subway trains with station stops, sliding doors, block signaling, passenger boarding, hijacking & manual controls, electrified third-rail hazards, and static streetcar trams.
- Full Game, London & Custom Maps: Support for loading the 1997 demo, full GTA 1 (Liberty City, San Andreas, Vice City), GTA: London 1969 & 1961, and custom maps via a gamepack & chapter selector.
- ★ Minimap & Fullscreen City Map: Optional circular HUD minimap with player heading indicator, mission targets, police, vehicle, pedestrian, and shop markers, plus a pause-on-open high-res fullscreen city map (M) with zoom/pan controls and interactive districts.
-
★
Classic+&3D FollowCamera Modes: Optional 3D-extruded vehicles (with steerable wheels), trains, crates, payphone booths, and trees, plus a rotating, speed-tilted3D Followcamera (2 / F2) that smoothly turns the city map and minimap with your heading. - ★ 3D GPS Navigation: Drag-and-drop or long-press map pin with live 3D lane-aware street & bridge routing across the fullscreen map, minimap, in-world route overlay, and savegames.
- ★ Smooth Texture Filtering: Optional real-time edge-directed smoothing and mipmapping for city tiles, sprites, and objective arrows alongside the default crisp pixel rendering.
Not in the original 1997 game engine.
✕ Not Implemented
- Emergency Services: AI-dispatched ambulances responding to injured pedestrians and firetrucks automatically extinguishing burning vehicles (player-driven Fire Truck water cannons are supported).
- Gouranga!: Running over the Hare Krishna conga line for the classic Gouranga! bonus.
- Multiplayer: No support for network play.
# Keyboard Controls
Press ?, Esc, or ` at any time inside the game to open the in-game menu, full controls reference, and options, or H to toggle the Debug HUD.
# Mobile Touch Controls
On phones and tablets, context-sensitive touch controls appear automatically at the bottom of the screen and switch between On Foot and In Vehicle modes.
On Foot
In Vehicle
# Changelog
-
- Add Smooth texture filtering option & 3 (F3) shortcut
- Adjustable default camera tilt in
3D Followmode
-
- Prevent stray weapon firing on 3D camera shortcuts
- Add bloody tire skidmarks
- Exclude UI notifications from Repeat Last Message
- Swap in-car mobile Brake/Reverse & Handbrake buttons
-
- Visual camera mode preview selector & 2 (F2) shortcut
- Enable GPS navigation by default
- 3D vehicle, train, crate & tree rendering refinements in
Classic+and3D Follow - Menu, options & save-slot tweaks
- Car bomb shop & mobile car bomb button tweaks
- Long-press GPS pin drop on the fullscreen map
-
- Add
Classic+camera mode with 3D vehicles & crates - Fullscreen map zoom & label tweaks
- Add optional GPS navigation with draggable map pin
- Minimap & fullscreen map icon and UI tweaks
- Add optional rotating & tilted chase camera mode
- Menu and game mechanic tweaks
- Authentic braking & tire skid audio
- Mobile fullscreen map polish
- Add
-
- Add an optional circular in-game minimap
- Add an fullscreen city map (M or click the minimap, pauses gameplay) with hoverable district outlines & legend
- Minimap and fullscreen map tweaks
- Fix persistent extra-mission car
IS_GOAL_DEADwatchdogs so already-completed bonus car jobs cannot soft-lock post-payphone progression
-
- Dock crane improvements (reject oversized & burning vehicles and police variants, show non-demanded vehicle cues during
DO_GTAmissions, and enforceGTA_DEMANDcolor remaps) - Fix speed-bomb missions (use authentic
.G24max_speedthresholds, exempt speed and RC bombs from low-damage impact fragility, and fix sequentialDISARMMESS) - Display live vehicle speed and active bomb telemetry in the entity outlines debug overlay
- Dock crane improvements (reject oversized & burning vehicles and police variants, show non-demanded vehicle cues during
-
- Add synchronous
.G24map tile animations (animated water, rooftop exhaust fans, and flashing building signs) - Add full single-player
MISSION.INIcommand and trigger support across GTA 1, London 1969/1961, and custom gamepacks (including dynamic map block changes, drive-by shooting, RC hunter cars, and end-of-level pickup helicopters) - Fix startup
MOBILE_BRIEFpager duplication, Vice City multi-hubMPHONESactivation, and NYC Chapter 2 introKILL_DROPfailure cleanup - Add autonomous 4-carriage elevated/subway trains
- Add train station boarding and hijacking and electrified third-rail electrocution hazards
- Add
MISSION.INItrain opcodes (IS_PLAYER_ON_TRAIN,WRECK_A_TRAIN,WRECK_CURR_TRAIN, andIS_A_TRAIN_WRECKED)
- Add synchronous
-
- Overhaul the pre-game menu
- Improvements to Cops and AI traffic vs Slopes
- Implement
GOTO,LOCATE, andLOCATE_STOPPEDmission objectives - Allow saving during free-roam when the chapter-end red arrow is shown
- Redesigned pre-game menu flow
- Added Save & Load Games mechanism (4 slots scoped per gamepack+map+chapter combo)
-
- Add in-car Radio Stations
- Add Grand Theft Auto: London 1969 & London 1961 engine support
- Revised vehicle physics and collisions
- Add playable Tank and Fire Truck with working turret and water cannon
- Gameplay, explosion & UI polish
-
- Graduate Cops from Preview to Stable, with rebalanced pursuit pacing, minimum barricade spacing, and non-queueing police radio chatter
- AI traffic improvements (obstacle honking with distinct car and bike horns, option-gated obstacle bypassing, and smarter traffic flow around police roadblocks)
- Exploding vehicle overhaul (bullet-threshold detonations, staggered chain explosions with doubling score combos, and burning wrecks with smoke puffs)
- Respray Shop improvements (pager notifications with preemption, respraying at wanted level 0, randomized pricing, and automatic stopping)
- Mission, garage, and dock crane polish (live countdown pagers with ticking clock audio, normal-paced mission runners, smoother garage drop-offs, and refined crane handling)
-
- Add full chapter-end flow
- Add Bomb Shops with Fire-key car bomb arming, live detonation pager countdown, impact-fragile bomb vehicles
- Tweak garage doors opening
- Door-Aware NPC Boarding, Sailing Mission Boats, and RC Explosive Buggy Missions
-
- Improvements to Cops and collision physics
- Start-screen UX improvements (keyboard navigation and persistence)
- Add target-score gating for chapter finales
- Add animated garage doors with drive-in car drop-offs and automatic walk-out
- Support for loading multiple gamedata sources (full game & custom maps) with a level and mission selector
-
- Gameplay tweaks (auto-switch empty weapons, slower running speed, walkable cardboard boxes, and Respray Shop wanted check)
- Dedicated crate reward HUD icons, sliding close-range objective arrow, and repeated map edge tiles
- Separate debug toggle for vehicle pathways and vehicle door markers
- Bug fixes for duplicate parked vehicles and NPC car-entry animations
-
- Add Respray Shops
- Improvements to Cops and AI traffic
- Refined vehicle entry and exit behavior
-
- Improvements to Cops
-
- Improvements to Cops
- Improvements to Mobile Touch Controls
- Improvements to AI traffic
-
- Add experimental support for Cops and Wanted Levels
- Add in-game pause menu and Save/Load game support
-
- Scoring improvements (mission multipliers, authentic payouts, and run-over combos)
-
- Overhauled vehicle handling physics
- Add debug entity outlines option
-
- Add Mobile Touch Controls
- Add in-game icon toolbar (Fullscreen, Menu, Mobile Controls)
-
- First release — playable 1997 Liberty City demo loaded directly from a demo
.ziparchive - 3D city & map rendering (slopes, animated water, traffic lights, and 24-bit sprites)
- Vehicles with per-car handling, collisions, damage/door deltas, skidmarks, and explosions
- Weapons & crates (Fist, Pistol, Machine Gun, Rocket Launcher, Flamethrower, armor, and extra lives)
MISSION.INIengine with payphones, objective arrows, timers, HUD briefings, and Kill Frenzy- Ambient NPC traffic, carjacking, pedestrians, Dock Cranes, and spatial Web Audio sound effects
- First release — playable 1997 Liberty City demo loaded directly from a demo
# References & Acknowledgements
Standing on the shoulders of giants: Recreating the GTA1 game engine to play its 1997 gamedata files would have been impossible without the official technical specs published by DMA Design and the extraordinary documentation, modding tools, and open-source research shared by the GTA community over the past three decades.
DMA Design & Core Specs
-
CityScape Data Structure (
cds.doc) & GTA Mission Template Description (mtd.doc) by DMA Design. - The Unofficial GTA Reference Handbook by Michael Mendelsohn.
- Gouranga! mission scripting guides (Luke’s How to Write a Mission in 7 Days).
Engines & Prior Recreations
- gta-webgl (WebGL-GTA) by Niklas von Hertzen — the pioneering WebGL map renderer that sparked this project.
- carnage3d & OpenGTA & gta1-webedition & AmiGTA1 engine reimplementations.
- 2D Vehicles by Pat Kerr — deep dive and interactive recreation of the original GTA vehicle physics system.
Classic Community Tools
- Junction 25 & M1 – the OG map editors.
- GTACars – the OG car editor
- The Cops and FXT2TXT utilities.
Find all resources in bramus/gta-js-resources on GitHub.