Jump to content

Sniper Crosshair RGBA Memory Address...


Recommended Posts

Hi,

I’ve managed to find the RGBA memory addresses for other weapon crosshairs in GTA: San Andreas, but I haven’t been able to locate the one for the sniper crosshair specifically.

If anyone knows the memory address for the sniper crosshair’s RGBA or has worked with it before, please let me know.

Thanks in advance! :) 

Link to comment
https://gtaforums.com/topic/1000389-sniper-crosshair-rgba-memory-address/
Share on other sites

A more friendly speech will give you more help

For example, your answer could be:

"Yes I know, but I need to know the memory address

Thanks for answer anyway"

🙂

 

 

Edited by ZAZ

I appreciate the responses, but I think there’s some misunderstanding here. Let me clarify my request:

 

What I Asked For:

I specifically asked for the memory address related to the RGBA color of the sniper scope.

I did not ask about textures, how to change colors, or anything related to .txd files.

 

Why I Need the Memory Address:

I’m working on a project that requires direct manipulation of the RGBA values in memory.

Knowing the memory address allows me to dynamically change the color of the sniper scope during runtime, which is essential for my mod.

 

What I Did Not Ask For:

I did not ask for information about textures or how to modify them.

Saying "It's a texture inside the gun's txd" is irrelevant to my request. I already know how textures work, but that’s not what I’m looking for.

 

"What do you mean address? The address of where the texture is loaded?":

 

No, I’m not asking for the address of where the texture is loaded.

I’m asking for the memory address that stores the RGBA color values of the sniper scope. This is a specific value in memory that controls the color, not the texture itself.

 


If anyone knows the memory address for the RGBA color of the sniper scope, please share it. If you don’t have this information, that’s fine, but please avoid suggesting solutions that don’t address my specific request.

Thank you! :)

Edited by Strs
added details
//top left
0A8C: write_memory 0x58E929 size 4 value 255 virtual_protect 0 //r 
0A8C: write_memory 0x58E924 size 4 value 0 virtual_protect 0   //g
0A8C: write_memory 0x58E912 size 4 value 0 virtual_protect 0   //b
0A8C: write_memory 0x58E901 size 4 value 255 virtual_protect 0 //a

//top right                           
0A8C: write_memory 0x58E998 size 4 value 0 virtual_protect 0   //r 
0A8C: write_memory 0x58E993 size 4 value 255 virtual_protect 0 //g 
0A8C: write_memory 0x58E97F size 4 value 0 virtual_protect 0   //b 
0A8C: write_memory 0x58E978 size 4 value 255 virtual_protect 0 //a 

//bottom left                           
0A8C: write_memory 0x58EA07 size 4 value 0 virtual_protect 0   //r 
0A8C: write_memory 0x58EA02 size 4 value 0 virtual_protect 0   //g 
0A8C: write_memory 0x58E9F0 size 4 value 255 virtual_protect 0 //b 
0A8C: write_memory 0x58E9E7 size 4 value 255 virtual_protect 0 //a 

//bottom right                                                               
0A8C: write_memory 0x58EA76 size 4 value 255 virtual_protect 0 //r 
0A8C: write_memory 0x58EA71 size 4 value 255 virtual_protect 0 //g 
0A8C: write_memory 0x58EA5F size 4 value 255 virtual_protect 0 //b 
0A8C: write_memory 0x58EA56 size 4 value 255 virtual_protect 0 //a 


Here you go. Note - changing colors of the sniper scope will also change the color of missile launcher, HS launcher and camera.

1.jpg

  • Like 2

"Here you go. Note - changing colors of the sniper scope will also change the color of missile launcher, HS launcher and camera." No problem actually its good 

 

Man, you are an absolute genius when it comes to memory addresses! I can’t thank you enough for finding that memory address for me—it’s seriously impressive. You must have been digging deep to figure that out. Bro, you’re on another level! Thanks again, you’re a legend!

BTW if anyone wants it its for weapon Crosshair  ARGB 

 

call  @CrosshairColoring 16 ARGB 255 255 0 0 ARGB 255 255 0 0 ARGB 255 255 0 0 ARGB 255 255 0 0


:CrosshairColoring
//top Left
0A8C: 0x58E461 size 1 value 0@ vp 0 // A
0A8C: 0x58E47C size 1 value 1@ vp 0 // R
0A8C: 0x58E473 size 1 value 2@ vp 0 // G
0A8C: 0x58E466 size 1 value 3@ vp 0 // B
//top right  
0A8C: 0x58E420 size 1 value 4@ vp 0 // A
0A8C: 0x58E433 size 1 value 5@ vp 0 // R
0A8C: 0x58E42A size 1 value 6@ vp 0 // G
0A8C: 0x58E425 size 1 value 7@ vp 0 // B
//bottom left    
0A8C: 0x58E3BF size 1 value 8@ vp 0 // A
0A8C: 0x58E3DA size 1 value 9@ vp 0 // R
0A8C: 0x58E3D1 size 1 value 10@ vp 0 // G
0A8C: 0x58E3C8 size 1 value 11@ vp 0 // B
//bottom right    
0A8C: 0x58E2EC size 1 value 12@ vp 0 // A
0A8C: 0x58E301 size 1 value 13@ vp 0 // R
0A8C: 0x58E2F6 size 1 value 14@ vp 0 // G
0A8C: 0x58E2F1 size 1 value 15@ vp 0 // B
ret 0

 

Edited by Strs
details
6 hours ago, Strs said:

You must have been digging deep to figure that out.

Well, I found them quite a long ago so I knew that they are there. Just had to check my old mods to find where all the crosshair stuff is located.
As for weapon crosshairs - I've made a mod that changes the weapon crosshair color based on target. IIRC it's red when the target is hostile, green when friendly and white when neutral. Google "crosshair color vladvo"

now i code in lua moonloader its challenging but so many thing can be done i am having fun making so many scripts mostly i use imgui and most are for single player for samp i have some like 30 to 40 scripts which i created and yea i saw your crosshair mode in gtainside i created little different only white and red works with sniper vehicles or objects anything  using this 0AA7: call_function 0x56BA00 num_params 12 pop 12 0 0 0 0 _objects 0 _peds 1 _vehicles 1 _buildings 0 _pEntity 1@v _colPoint 8@v _end 5@v _start 2@v _result: 13@ // CWorld::ProcessLineOfSight   

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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