Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuriofernandez/go-gta-sa-driver
A simple and beautiful API to drive vehicles in GTA:SA 🚗🚌🚙
https://github.com/nuriofernandez/go-gta-sa-driver
bot gta gta-sa self-driving-car
Last synced: 2 days ago
JSON representation
A simple and beautiful API to drive vehicles in GTA:SA 🚗🚌🚙
- Host: GitHub
- URL: https://github.com/nuriofernandez/go-gta-sa-driver
- Owner: nuriofernandez
- Created: 2022-10-01T23:00:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T14:12:12.000Z (about 2 years ago)
- Last Synced: 2024-01-03T14:36:01.013Z (10 months ago)
- Topics: bot, gta, gta-sa, self-driving-car
- Language: Go
- Homepage:
- Size: 19 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GTA SA Vehicle driver
A simple and easy to use GTA SA vehicle driver. 🚗
## Usage example
```go
func main() {
driver := driver.New()
driver.DriveToPos(-2137, -351)
driver.DriveToPos(-2073, -356)
driver.DriveToPos(-1991, -374)
driver.DriveToPos(-1943, -412)
driver.DriveToPos(-1926, -460)
driver.DriveToPos(-1920, -502)
driver.DriveToPos(-1914, -578)
driver.DriveToPos(-1913, -745)
driver.DriveToPos(-1913, -919)
driver.DriveToPos(-1910, -1039)
driver.DriveToPos(-1908, -1132)
driver.DriveToPos(-1907, -1305)
}
```## Video demonstration
## Clarifications
At the previous example there were very few checkpoints.
In order to generate a smooth drive the amount of checkpoints must be significantly higher than the one used for this example.
This can be achieved by using a pathfinder or something similar.The purpose of this repository is only to take control of the car. Not to map the game's map or know where to drive to.