Skip to content

nuriofernandez/go-gta-sa-memory-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTA SA Memory accessor

A simple and beautiful API to read GTA:SA game in memory data ✨

Usage Example

Code example

func main() {
    gtaSa := new(gtaSa.GtaSa)
    gtaSa.Hook()
    
    money := gtaSa.GetMoney()
    pedLocation := gtaSa.GetPed().GetLocation()
    vehicleLocation := gtaSa.GetVehicle().GetLocation()
    pedStatus := gtaSa.GetPed().GetStatus()
    
    fmt.Println("Ped status: ", pedStatus)
    fmt.Println("User money: ", money)
    fmt.Printf("Ped location: '%f', '%f', '%f'\n", pedLocation.X, pedLocation.Y, pedLocation.Z)
    fmt.Printf("Vehicle location: '%f', '%f', '%f'\n", vehicleLocation.X, vehicleLocation.Y, vehicleLocation.Z)
}

In-game screenshot

Boat Captcha resolve

Code execution output

Trying to find a running GTA:SA instance.
Successfully hooked into a running GTA:SA instance.         
Ped status:  InFloor                                        
User money:  24968                                          
Ped location: '-2174.303467', '-428.641479', '35.335938'    
Vehicle location: '-2171.551025', '-436.249969', '35.251785'

About

A simple and beautiful API to read GTA:SA game in memory data ✨

Topics

Resources

Stars

Watchers

Forks

Languages