[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:

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
@Parazitas,

Nvm, I found what I needed!

0.3.7 R1 static addreses:

1. LocalPlayer Name: "samp.dll" + 0x13D190, Offset: 0xA
2. ServerName: "samp.dll" + 0x21A0F8, Offset: 0x121
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
@Parazitas,

Nvm, I found what I needed!

0.3.7 R1 static addreses:

1. LocalPlayer Name: "samp.dll" + 0x13D190, Offset: 0xA
2. ServerName: "samp.dll" + 0x21A0F8, Offset: 0x121
This two you can find very easy way, just scan like string.
Also you can get ip and port which is stored like string in cheat engine
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
How did you get textdraw id, i am on 0.3.dl


PHP:
{$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

for 0@ = 0 to 2304
if
0AB1: @IsSampTextDrawExist 1 0@
then
    wait 1500
    0AB1: @HideSampTextDraw 1 0@
    0AD1: show_formatted_text_highpriority "Hided Textdraw ID %d" time 1000 0@
end
end

end

:IsSampTextDrawExist
{
    0.3.DL
}
0AA2: 1@ = load_library "samp.dll"
1@ += 0x2ACA24
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x1B8
0A8D: 1@ readMem 1@ sz 4 vp 0
0@ *= 0x4
005A: 1@ += 0@
0A8D: 1@ readMem 1@ sz 4 vp 0
if
1@ == 1
then
    0485:  return_true
else
    059A:  return_false
end
0AB2: 0

:HideSampTextDraw
{
    0.3.DL
}
0AA2: 1@ = load_library "samp.dll"
1@ += 0x2ACA24
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x4
0A8D: 1@ readMem 1@ sz 4 vp 0
1@ += 0x1B8
0A8D: 1@ readMem 1@ sz 4 vp 0
0@ *= 0x4
005A: 1@ += 0@
0A8C: writeMem 1@ sz 4 vl 0 vp 0
0AB2: 0
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Added tutorial - How get chat or dialog editbox text .
More videos can find in the channel.

Example
PHP:
:GetDialogInputEditBoxText
{
    0.3.7 - R1
    0AB1: @GetDialogInputText 0 _Return: 0@
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x21A0B8            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
   
    0A8E: 5@ = 2@ + 0x81030 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method 5@ struct 4@ num_params 0 pop 0 _Return: 0@
end
0AB2: 1 0@

:GetChatInputEditBoxText
{
    0.3.7 - R1
    0AB1: @GetChatInputEditBoxText 0 _Return: 0@
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x21A0E8            // SAMP_CHAT_INPUT_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pChatInput;
    0A8E: 4@ = 3@ + 0x8                // pChatInput->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
   
    0A8E: 5@ = 2@ + 0x81030 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method 5@ struct 4@ num_params 0 pop 0  _Return: 0@
end
0AB2: 1 0@
 
Last edited:

Kriso_Anderson

Active member
Joined
Apr 27, 2014
Messages
44
Reaction score
1
Get Chat String for 0.3.dl, and if you can actor_handle_by_samp_player_id
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Get Chat String for 0.3.dl, and if you can actor_handle_by_samp_player_id
PHP:
:GetChatEntryText
{
    0AC8: 0@ = allocate_memory_size 145
    0AB1: @getChatEntryText 1 id 99 to 0@ 
    0.3.DL
} 
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x2ACA10
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x132
    0@ *= 0xFC
    005A: 1@ += 0@
    1@ += 0x20
    0AA3: 1@
END
0AB2: ret 1 1@
 

Kriso_Anderson

Active member
Joined
Apr 27, 2014
Messages
44
Reaction score
1
Set_current_dialog_list_item for 0.3.dl

Code:
:Set_current_dialog_list_item
0AA2: 1@ = "samp.dll"
1@ += 0x180610
0A8D: 1@ = readMem 1@ sz 1 vp 0
1@ += 143
0A8C: writeMem 1@ sz 1 vl 0@ vp 0
0AB2: 0
This one is crashing
 
Last edited:

Herka

Member
Joined
Dec 23, 2018
Messages
5
Reaction score
0
Thanks !
Do you have ImgUI hook for 0.3dl please ?
I want to create new dialog style, client & server

thanks
 
Top