get target ped

Scraatch

Active member
Joined
Jan 14, 2017
Messages
76
Reaction score
2
Location
Germany
i used this to get the target ped but always when i start the game, it crashes and its because of the address i use

address:
C++:
DWORD getTargetPed(void) {
    return *(DWORD*)((*(DWORD*)0xB6F3B8) + 0x79C);
}

how do i fix this? need it for a triggerbot
 

Scraatch

Active member
Joined
Jan 14, 2017
Messages
76
Reaction score
2
Location
Germany
thank you! is there a solution to avoid shooting at ped behind walls?

//EDIT: It is even shooting if only the green triangle is showing. how can i fix this that it only shoots if i am on the player?
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,112
Solutions
5
Reaction score
878
Location
Lithuania
thank you! is there a solution to avoid shooting at ped behind walls?

//EDIT: It is even shooting if only the green triangle is showing. how can i fix this that it only shoots if i am on the player?
Check obstacles between actor and crosshair
 
Top