n1cd Posted September 8, 2022 Share Posted September 8, 2022 How do you writing or reading memory? And how do you finding them Why do people doing memory manipulation with player struct? Why people using TIMERA instead of Wait 0 How to play custom animations in GTA3 V If there's a any answer for some question just tell Link to comment Share on other sites More sharing options...
ZAZ Posted September 13, 2022 Share Posted September 13, 2022 (edited) On 9/8/2022 at 7:39 PM, n1cd said: How do you writing or reading memory? And how do you finding them Check out the script below, press backspace to manipulate Grafity adress {$CLEO .cs} thread 'GRAVITY' // Manipulate Memory Adress Grafity 0x863984 by keypress while true wait 0 0A8D: 1@ = read_memory 0x863984 size 4 virtual_protect 1 //read 03F0: text_draw_toggle 1 045A: text_draw_1number 250.0 40.0 'NUMBER' 1@ if 0AB0: key_pressed 8//-----------------------press Backspace then 0A8C: write_memory 0x863984 size 4 value 2 virtual_protect 1 wait 1000 end if 0AB0: key_pressed 9//-----------------------press TAB then 0A8C: write_memory 0x863984 size 4 value 1006834287 virtual_protect 1 //clear the buffer wait 1000 end end Look in forum section: III, VC, SA > Documentation, the pinned Topic Documenting GTA-SA memory addresses check out Memory Hacker Quote Why do people doing memory manipulation with player struct? struct code gives start adress from item in the folllowing adresses are stored many other properties of the item Script inside spoiler reads memadresses from car struct adress of Remington to check if a tuningpart is installed on "Miscellaneous" Slot Spoiler {$CLEO .cs} :Mod_Check_Misc 03A4: name_thread 'MODDCRM' while true wait 0 if 0256: player $PLAYER_CHAR defined then if and 00DD: actor $PLAYER_ACTOR driving_vehicle_type #REMINGTN 0AB0: key_pressed 48//-----------------------press 0 then 03C0: 10@ = actor $PLAYER_ACTOR car 0A97: 0@ = car 10@ struct //0@ += 1000 0@ += 1000 0A8D: 2@ = read_memory 0@ size 2 virtual_protect 0 4@ = 0 3@ = 0 for 4@ = 0 to 100 03F0: enable_text_draw 1 045A: text_draw_1number 50.0 80.0 'NUMBER' 4@ // value 045A: text_draw_1number 50.0 100.0 'NUMBER' 2@ // value 0@ += 2 0A8D: 2@ = read_memory 0@ size 2 virtual_protect 0 if or 2@ == 1100 2@ == 1123 2@ == 1125 then 0085: 3@ = 2@ // (int) wait 500 break end end while 00DD: actor $PLAYER_ACTOR driving_vehicle_type #REMINGTN wait 0 03F0: enable_text_draw 1 045A: text_draw_1number 50.0 80.0 'NUMBER' 4@ // value 045A: text_draw_1number 50.0 100.0 'NUMBER' 3@ // value if 0AB0: key_pressed 48//-----------------------press 0 then break end end end end end veh_mods.ide 1100, misc_c_lr_rem1, remingtn, 100, 2097152 1123, misc_c_lr_rem2, remingtn, 100, 2097152 1125, misc_c_lr_rem3, remingtn, 100, 2097152 Quote Why people using TIMERA instead of Wait 0 you can use local variables from [email protected] up to [email protected], [email protected] and [email protected] are for 2 internal timers [email protected] and [email protected] can only be used to read the counter time or to reset the counter new sannybuilder have now the keywords: TIMERA and TIMERB for [email protected] and [email protected] Reset and read the time in milli seconds allows to build sequences script below displays the counter, reset counter by keypress Backspace {$CLEO .cs} thread 'timer' while true wait 0 03F0: enable_text_draw 1 045A: draw_text_1number 300.0 200.0 GXT 'NUMBER' number 33@ // TIMERB if 0AB0: key_pressed 8 // press Backspace then 33@ = 0 end end Quote instead of Wait 0 Important rule for gta engine: Every loop must have a wait of at least 0, as the rest of the game is processed and rendered during those waits WHILE true wait 0 END Edited September 13, 2022 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
n1cd Posted September 13, 2022 Author Share Posted September 13, 2022 Thanks @ZAZ you helped me a lot. I'm also found a way to play custom animations (opcode which you shown was a custom from a mod sorry for repeating the same question i just don't got an notification about question) 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