[C++ 0.3.7] Pls help, get vehicle array for coordinates

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
Hello! I'm making a simple Ai driver that avoids player vehicles and parked ones, I just cant find an easy way to get each vehicles coordinates from an array.
so far with CHEAT ENGINE I only found "(samp.dll + 0x13C600) + 0x724" this seems to be an array of wheels. problem is each offsets to the next vehicle wheel-set is a different size, for cars it seem to be "0xA18" for bikes its different, and sometimes its random, so my program will end up skipping vehicles and not detecting their coordinates.
I tried for too long and I am too stupid :unsure: pls help.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
Hello! I'm making a simple Ai driver that avoids player vehicles and parked ones, I just cant find an easy way to get each vehicles coordinates from an array.
so far with CHEAT ENGINE I only found "(samp.dll + 0x13C600) + 0x724" this seems to be an array of wheels. problem is each offsets to the next vehicle wheel-set is a different size, for cars it seem to be "0xA18" for bikes its different, and sometimes its random, so my program will end up skipping vehicles and not detecting their coordinates.
I tried for too long and I am too stupid :unsure: pls help.
You should read them from vehicle pool or RPC
 

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
You should read them from vehicle pool
If you mean address 0xB74494 from the wiki, I have no idea why nothing showing up even selecting the first vehicle in the pool, thats why im confused. i tried finding the vehicle pool on my own and that wheel pool above is all I found lmao


image (3).png
 

gdzies

Member
Joined
May 10, 2018
Messages
13
Reaction score
1
Writing date: 09/06/2023
Time: 07:43 AM
Location: City of Uterus
Reason for reply: you're f╬kin st0pid
ok cool guy, did you really just make an alt account just for this. I already said im stupid thats why im asking a dumb question. your tip about going and reading open source mod sa. I already thought of it. i have the waypoint seeking thing working already. for the rest it would take me too long to figure out, like days. thats more for people who breath c++. i only do it as hobby very rarely.
 
Top