IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
  Reply to this topicStart new topicStart Poll

 c# teleport to coordonates

 c# help
 
paulicabos  
Posted: Friday, Jul 27 2012, 06:50
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



Hello , i want to teleport to a specific coordonate.
What is the memory acces for x,y and z pos?

I need somethink like

0x....... [float] ( i think is float value )

Can you help me?


About GTA SA i'm talking

This post has been edited by paulicabos on Tuesday, Jul 31 2012, 05:30
PM
  Top
 

 
Barguast  
Posted: Saturday, Jul 28 2012, 15:41
Quote Post


Thy next foe is...
Group Icon
Group: Moderators
Joined: Jul 27, 2002

uk.gif

Member Award




I suspect this is a modding question (is it?). Either way, you're going to need to be a bit more specific about what you're doing and what you're trying to do.
PM
  Top
 

 
K^2  
Posted: Saturday, Jul 28 2012, 15:52
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




For starters, what game?
PMMSN
  Top
 

 
paulicabos  
Posted: Tuesday, Jul 31 2012, 05:30
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



Sorry i forgot to say is GTA San Andreas
PM
  Top
 

 
K^2  
Posted: Tuesday, Jul 31 2012, 06:25
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




SA Memory Addresses - Pedestrians. You want to use the fixed address that contains pointer to player to locate player pedestrian in memory. Then use offsets given relative to it to read/write memory addresses for position.
PMMSN
  Top
 

 
paulicabos  
Posted: Thursday, Aug 2 2012, 07:25
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



QUOTE (K^2 @ Tuesday, Jul 31 2012, 06:25)
SA Memory Addresses - Pedestrians. You want to use the fixed address that contains pointer to player to locate player pedestrian in memory. Then use offsets given relative to it to read/write memory addresses for position.

Thx man but

(CPed+0x14) +0x30 = [dword] XPos
(CPed+0x14) +0x34 = [dword] YPos
(CPed+0x14) +0x38 = [dword] ZPos

I dont understand..what is the actual code? 0x1430 (x) , 0x1434(y) 0x1338 (z) ?
PM
  Top
 

 
K^2  
Posted: Thursday, Aug 2 2012, 13:03
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




Do you understand hex numbers? What is 0x14+0x30? And do you understand how to work with pointers in C#? If not, you need to learn these things.
PMMSN
  Top
 

 
paulicabos  
Posted: Thursday, Aug 2 2012, 19:15
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



QUOTE (K^2 @ Thursday, Aug 2 2012, 13:03)
Do you understand hex numbers? What is 0x14+0x30? And do you understand how to work with pointers in C#? If not, you need to learn these things.

I say this tut
http://tr7network.com/gta-san-andreas-hack...-gta-hack-in-c/


For editing money u use

uint money = 99999999;
EditMemory(0xB7CE50, money);

0xB70153 - [byte] Current Hour
0x8D5104 - [byte] Current blur level
0xB7014E - [byte] Current Weekday (1 through 7)

If i know this i will use

byte x=3;
EditMemory(0xB70153, x);

This changes the current hour in gta..
I cant find out how to edit

(CPed+0x14) +0x30 = [dword] XPos
(CPed+0x14) +0x34 = [dword] YPos
(CPed+0x14) +0x38 = [dword] ZPos
..
I'm really new in the memory thing and i will be grateful if you can help me..
PM
  Top
 

 
K^2  
Posted: Thursday, Aug 2 2012, 19:44
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.

You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled.
PMMSN
  Top
 

 
paulicabos  
Posted: Friday, Aug 3 2012, 06:29
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



QUOTE (K^2 @ Thursday, Aug 2 2012, 19:44)
No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.

You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled.

Thx so much for your posts but what i dont understand is this

(CPed+0x14) +0x30 = [dword] XPos

I need and 0x.......... location...
o i can edit it.. how can i find it

0xB6F5F0 - Player pointer (CPed)
(CPed+0x14) +0x30 = [dword] XPos

Ths means that (0xB6F5F0+0x14) +0x30 = [dword] XPos ?

If i use cheat engine what should i type when i choose manualy the adress?

What I really dont understand is that "+" between..

This post has been edited by paulicabos on Friday, Aug 3 2012, 07:35
PM
  Top
 

 
K^2  
Posted: Friday, Aug 3 2012, 08:15
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




No. At 0xB6F5F0 is an address you need to add 0x14 and 0x30 to. So I can't give you the exact number. Nobody can. It has to be computed on the fly. That's why I'm telling you to read up on how pointers work. You will need to write code to read memory from certain address, convert it to pointer, apply offsets, and only then use it with the function EditMemory, after you modify it appropriately to handle floating point values.

You can't take shortcuts. In order to modify a program, you need to understand how it works.
PMMSN
  Top
 

 
paulicabos  
Posted: Saturday, Aug 4 2012, 06:55
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 27, 2012

XXXXX



QUOTE (K^2 @ Friday, Aug 3 2012, 08:15)
No. At 0xB6F5F0 is an address you need to add 0x14 and 0x30 to. So I can't give you the exact number. Nobody can. It has to be computed on the fly. That's why I'm telling you to read up on how pointers work. You will need to write code to read memory from certain address, convert it to pointer, apply offsets, and only then use it with the function EditMemory, after you modify it appropriately to handle floating point values.

You can't take shortcuts. In order to modify a program, you need to understand how it works.

But if i want to use cheat engine how do I use that ? Because is not working with + .. Will show up error


And in c# will be like

EditMemory(0xB6F5F0+0x14+0x30,DWARD Value); ?
PM
  Top
 

 
K^2  
Posted: Saturday, Aug 4 2012, 16:59
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




No, that is completely wrong. You are not going to get it without learning C#.
PMMSN
  Top
 

 
Bad.boy!  
Posted: Saturday, Aug 4 2012, 19:39
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



It's best to learn c++ if so that you can also call functions.
PM
  Top
 

 
K^2  
Posted: Sunday, Aug 5 2012, 22:20
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




C# calls are also made by reference. You can execute a function via a pointer. It's just a bit more of a pain to set up due to all the "protection".
PMMSN
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG