james227uk Posted November 24, 2008 Share Posted November 24, 2008 A couple of mins ago, I tried manipulating memory (using my friends gta install). This is my script: {$CLEO .cs}thread 'NEWCHEAT':STARTwait 0 msifPlayer.Defined($PLAYER_CHAR)jf @STARTif00E1: player 0 pressed_key 10jf @START:SECONDwait 1000 ms0A8C: write_memory 0x00439600 size 4 value 1 virtual_protect 1 The game crashes after I press key 10 (N). Any ideas? P.S- Don't bother telling me to try turning the virtual protect off, I tried it off and on Link to comment Share on other sites More sharing options...
Donny78 Posted November 24, 2008 Share Posted November 24, 2008 It's not a memory address it's a function address, you would somehow have to call it. I know nothing about the 0AA* Opcodes though sorry but I think this is your problem. Link to comment Share on other sites More sharing options...
james227uk Posted November 25, 2008 Author Share Posted November 25, 2008 It's not a memory address it's a function address, you would somehow have to call it. I know nothing about the 0AA* Opcodes though sorry but I think this is your problem. I tried the normal memory address as well, virtual protect on and off, still crashing Link to comment Share on other sites More sharing options...
Donny78 Posted November 25, 2008 Share Posted November 25, 2008 It's because you are trying to write a value into a function address and not a memory address. Change: 0A8C: write_memory 0x00439600 size 4 value 1 virtual_protect 1 To: 0AA5: call 0x00439600 num_params 0 pop 0 0 See how that goes, honestly I have no clue about these opcodes but it makes more sense to me that calling a function would work rather than trying to modify it with writing values to it's position in memory (I don't even know what that actually does). Link to comment Share on other sites More sharing options...
james227uk Posted November 25, 2008 Author Share Posted November 25, 2008 I'll give it a try Even if it don't work, your going on my respect list Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now