Get vehicle pointer

0xNull

Member
Joined
Jul 14, 2018
Messages
24
Reaction score
0
Hello!

There is such a question:

How can I get a pointer to a machine whose door is pulled by a player?

For example, there is a car, it is closed. When we approach it and try to press G / just to get into the car - it just pulls the handle and can not sit in it. Here you need to get a pointer to this machine.

Or, you need to use offset to get pointers to all machines in the drawing area.

Help me please!

I can not find anywhere.

P.S NEEDED NAME ADDRESS. WITHOUT USING Sampfuncs, lua and other.

P.S.S Sorry for my English, google translate
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,500
Solutions
1
Reaction score
246
Location
( ͡° ͜ʖ ͡°)
You're trying to enter a car by pressing G? 
It will go towards the closest vehicle. 
So all you have to do is to get the closest vehicle to your player.
There is also a adress for last car touched. Its on the Wiki page of gta sa memory adresses..
 

0xNull

Member
Joined
Jul 14, 2018
Messages
24
Reaction score
0
Opcode.eXe said:
You're trying to enter a car by pressing G? 
It will go towards the closest vehicle. 
So all you have to do is to get the closest vehicle to your player.
There is also a adress for last car touched. Its on the Wiki page of gta sa memory adresses..

I found only this:

  • CPed +0x58C = [dword] The last or current car you drove (CarPointer)
and 

  • CPed +0x568 = [dword] Current car

But if i touch any door of the car - car pointer is not changed: c
 
Top