LiDAR-GTA-V is a plugin for Grand Theft Auto V that automatically generates outdoor semantically labeled LiDAR point clouds from the game environment. It is forked from UsmanJafri/LiDAR-GTA-V and extended with the automation feature.
The plugin leverages GTA-Vās rich, photorealistic simulation environment as a source of free, labeled synthetic data for autonomous driving and 3D perception research ā a valuable complement to real-world datasets.

Each captured frame is saved as a .txt file under #game_directory#/data_set/{index}.txt. Every line in the file represents one point in the point cloud with the following fields:
where $(x, y, z)$ is the 3D position, $(r, g, b)$ encodes the semantic label via vertex color, and $(n_x, n_y, n_z)$ is the surface normal.
The RGB color channel is used to encode object categories, enabling automatic semantic segmentation of the point cloud:
| Color | Category |
|---|---|
| š“ Red | Vehicles |
| š¢ Green | Humans & Animals |
| šµ Blue | Game Props |
| āŖ White | Roads, Buildings & other hittable textures |
| ā« Black | No hit (empty rays) |
LiDAR GTA V.asi and the LiDAR GTA V folder from the latest release into your GTA V installation directory (the folder containing GTAV.exe).data_set folder in your GTA V directory.#game_directory#/LiDAR GTA V/LIDAR GTA V.cfg and update the absolute path to this file inside lidar.cpp.F6 to load the config and begin data collection when ready.#game_directory#/data_set/..asi plugin is automatically copied to D:\Games\GTAV\. Update the post-build event path in the project settings to match your GTA V installation.This project is based on UsmanJafri/LiDAR-GTA-V. The GTA V native API reference used during development can be found at docs.fivem.net.