Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

A Lot of questions


n1cd
 Share

Recommended Posts

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

 

 

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 by ZAZ
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.