CLEO SNIPPET [SNIPPET] Samp TextDraw

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,409
Likes
153
Points
78
Location
Lithuania
Website
ugbase.eu
15
#1
Tutorial: Youtube
Simple example how to get active TEXTDRAW ID :
PHP:
{$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

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

end

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

:HideSampTextDraw
{
    0.3.DL
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x2ACA24
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected]
0A8C: writeMem [email protected] sz 4 vl 0 vp 0
0AB2: 0
Snippets:
PHP:
:IsSampTextDrawExist
{
    0.3.7 - R3
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x26E8DC
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected]
0A8D: [email protected] readMem [email protected] sz 4 vp 0
if
[email protected] == 1
then
    0485:  return_true
else
    059A:  return_false
end
0AB2: 0

:TextDrawText
{  
    0.3.7 - R3
    0AB1: @TextDrawText 1 ID 2054 _ReturnText [email protected]
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x26E8DC
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected] /// Pointer to textdraw active
[email protected] += 0x2400  // Text offset 1
0A8D: [email protected] readMem [email protected] sz 4 vp 0
0AB2: 1 [email protected]
PHP:
:IsSampTextDrawExist
{
    0.3.DL
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x2ACA24
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected]
0A8D: [email protected] readMem [email protected] sz 4 vp 0
if
[email protected] == 1
then
    0485:  return_true
else
    059A:  return_false
end
0AB2: 0

:TextDrawText
{  
    0.3.DL
    0AB1: @TextDrawText 1 ID 2054 _ReturnText [email protected]
}
0AA2: [email protected] = load_library "samp.dll"
[email protected] += 0x2ACA24
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x4
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] += 0x1B8
0A8D: [email protected] readMem [email protected] sz 4 vp 0
[email protected] *= 0x4
005A: [email protected] += [email protected] /// Pointer to textdraw active
[email protected] += 0x2400  // Text offset
0A8D: [email protected] readMem [email protected] sz 4 vp 0
0AB2: 1 [email protected]
 
Last edited:

Ayamabi

Well-Known Member
Joined
Mar 8, 2018
Messages
196
Likes
112
Points
48
1
#2
i told you guys parazitas have all addresses from 0.3.7 r2 r3 r4 r5 he is kalcor spy wth good job ma frend
 
Top