[Tutorial] Find SA:MP pointers

Find chat open detection pointer

Find dialog caption pointer


Find server name pointer

Find dialog open detection pointer


Find left / right button text pointer

Find dialog style / type pointer
https://youtu.be/RhAtBapjHAc

Find dialog list item pointer
https://youtu.be/9SiJuFUNovw

Find take screen shot pointer
https://youtu.be/Ym_HHcRGpzs


Find textdraw exist and text pointers
https://youtu.be/BwdTX7FSG0U


Find open or close dialog and chat input pointers
https://youtu.be/iZDIjTeQAiE

Find dialog and chat editbox text input pointers
https://youtu.be/VOm1D4SLv0Q
 
Last edited:

veysileth

Active member
Joined
Mar 23, 2017
Messages
85
Reaction score
6
Yo man, you know how to get ID of your character? I have tried to pick nickname/id but idk if it's even possible only with read memory.
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Yo man, you know how to get ID of your character? I have tried to pick nickname/id but idk if it's even possible only with read memory.
Get nick name 0.3.DL
PHP:
samp.dll+2AC187
or
PHP:
:Get_LocalPlayer_Name
/// 0AB1: call_scm_func @Get_LocalPlayer_Name 0 0@
0AA2: 0@ = loadLib "samp.dll" //samp base offset           
0@ += 0x2ACA24
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stInfo   
0@ += 0x3DE
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPools
0@ += 0x8
0A8D: 0@ = readmem 0@ sz 4 vp 0 //stPlayerPools
0@ += 0x6 //szLocalPlayerName
0AB2: ret 1 0@
ID memory i try get later.., little busy.
 

veysileth

Active member
Joined
Mar 23, 2017
Messages
85
Reaction score
6
I understand, time is tight.
I have one stupid question tho... i get numbers and im a retard with memory. How to convert it to text?

PHP:
            player_nick = memory.read(handle + 0x2AC187, 256, false) --samp.dll+2AC187
            imgui.Text(tostring(player_nick)) --7955798

            ----------------------------------------------------------------------------

            player_nick = memory.read(handle + 0x2ACA24, 4, false)
            imgui.Text(tostring(player_nick)) --629570632

            player_nick = memory.read(player_nick + 0x3DE, 4, false)
            imgui.Text(tostring(player_nick)) --629589640

            player_nick = memory.read(player_nick + 0x8, 4, false)
            imgui.Text(tostring(player_nick)) --629725072

            player_nick = memory.read(player_nick + 0x6, 4, false)
            imgui.Text(tostring(player_nick)) --1634624844

because i can't use by example
memory.read(player_nick + 0x8, 'text' , false)
memory.read(player_nick + 0x8, 'string' , false)
memory.read(player_nick + 0x8, text , false)
memory.read(player_nick + 0x8, string , false)
etc. bold part


OK, me being stupid again. It's working, thanks man. And i got player ID.

PHP:
            player_nick_OOC = memory.tostring(handle + 0x2AC187, 256, false)
            imgui.Text(tostring(player_nick_OOC)) --On my server you can log in with forum nickname. So it's forum not in-game nickname. Cool.

            player_nick_IC = memory.read(handle + 0x2ACA24, 4, false)
            player_nick_IC = memory.read(player_nick_IC + 0x3DE, 4, false)
            player_nick_IC = memory.read(player_nick_IC + 0x8, 4, false)
            player_nick_IC = memory.tostring(player_nick_IC + 0x6, 256, false)
            imgui.Text(tostring(player_nick_IC))

            player_ID = memory.read(handle + 0x2ACA24, 4, false)
            player_ID = memory.read(player_ID + 0x3DE, 4, false)
            player_ID = memory.read(player_ID + 0x8, 4, false)
            player_ID = memory.read(player_ID + 0x0, 1, false)
            imgui.Text(tostring(player_ID))
 
Last edited:

.silent

Well-known member
Joined
Apr 14, 2013
Messages
339
Reaction score
13
Loool is much simpler way...just rename samp.dll to samp.asi and go CMD and write
Code:
more samp.asi
and you get all:
yQlK8SY.png

trust me, im well-known member
 

ini

Well-known member
Joined
Sep 28, 2015
Messages
321
Reaction score
115
Loool is much simpler way...just rename samp.dll to samp.asi and go CMD and write
Code:
more samp.asi
and you get all:
trust me, im well-known member
s3nd b1g program pls
 

SamThapa

Active member
Joined
Jan 22, 2018
Messages
82
Reaction score
2
i need help for finding player interior which is out of steam (not in freeroam) can you help it will be a great help

this dont work :(
077E: get_active_interior_to 0@
094B: v$ACTIVE_INTERIOR_NAME = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string
09E8: $GYMFIGHT_INTERIOR = actor $PLAYER_ACTOR active_interior

Thanks :) in Advance
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
i need help for finding player interior which is out of steam (not in freeroam) can you help it will be a great help

this dont work
077E: get_active_interior_to 0@
094B: v$ACTIVE_INTERIOR_NAME = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string
09E8: $GYMFIGHT_INTERIOR = actor $PLAYER_ACTOR active_interior

Thanks in Advance

Memory return interior ID
0A8D: 0@ = read_memory 0xA4ACE8 size 4 virtual_protect 0
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Could you teach me how to get the memory address of NOP SetPlayerHealth in samp 0.3.7 r3?

Snippet return health and armour
PHP:
:Health_And_Armour
{
0AB1: @Health_And_Armour 0 10@ 20@
}
0A8D: 10@ = read_memory 0xB6F5F0 size 4 virtual_protect 0
10@ += 540
0A8D: 10@ = read_memory 10@ size 4 virtual_protect 0
0A8D: 20@ = read_memory 0xB6F5F0 size 4 virtual_protect 0
20@ += 548
0A8D: 20@ = read_memory 20@ size 4 virtual_protect 0
0AB2: ret 2 10@ 20@
 
Last edited:
Top