Get vehicle speed by some offset

0xNull

Member
Joined
Jul 14, 2018
Messages
24
Reaction score
0
Hello everyone! I'm trying to get seed current vehicle. 

I can't use script simillar "Sampfuncs" and so on.

Bellow my code:

Console.WriteLine(mem.ReadByte(0xC502AA0+0x64));

But he is not working.

You can help me?

I need exactly offset. Please.
 

Squillrex

Active member
Joined
Feb 18, 2014
Messages
27
Reaction score
1
0xNull said:
Hello everyone! I'm trying to get seed current vehicle. 

I can't use script simillar "Sampfuncs" and so on.

Bellow my code:

Console.WriteLine(mem.ReadByte(0xC502AA0+0x64));

But he is not working.

You can help me?

I need exactly offset. Please.
where did u get these adresses?  :surprised: 


get your speed like

vehicleptr = 0xBA18FC

speedX = vehicleptr + 0x44
speedY = vehicleptr + 0x48
speedZ = vehicleptr + 0x4C

speed_result =  sqrt((SpeedX * SpeedX) + (SpeedY * SpeedY) + (SpeedZ * SpeedZ))
 
Top