CLEO Help pickup detector

CLEO related
Status
Not open for further replies.

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
Hello,
i am a very new person in this forum and while i was searching google i saw this forum , so i thought of trying it here.
i want a mod by which i can see all the various pickups near me , like there is a feature in trollbiet "pickup text render" , i want exactly the same but i dont want the extra hack that are there in that trollbiet like airbreak and etc. etc. , what i want is only simple pickup text render !
please someone help me with this!

Sorry! i posted this in wrong section , please somebody move it to the request section!
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
{$CLEO}
0000:
wait 3000
03F0: enable_text_draw 1


WHILE TRUE
wait 0
for 30@ = 0x9788C0 to 0x97D620 step 0x20
    if
        30@ > 0
    then
        0A8E: 31@ = 30@ + 0x1A
        0A8D: 31@ = read_memory 31@ size 2 virtual_protect 0
        31@ *= 0x10000
        0A8F: 29@ = 30@ - 0x9788C0
        29@ /= 0x20
        005A: 31@ += 29@
        0B53: samp 0@ = pickup_id_by_handle 31@
        065B: store_pickup 31@ position_to 1@ 2@ 3@
        0AB1: call_scm_func @getScreenXYFrom3DCoords 3 1@ 2@ 3@ to 4@ 5@ 
        if and
            not  4@ > 640.0 
            not  5@ > 480.0 
            4@ >= 0.0 
            5@ >= 0.0 
            00C2:   sphere_onscreen 1@ 2@ 3@ radius 0.0 
        then
            081C: draw_text_outline 1 RGBA 0 0 0 255 
            0340: set_text_draw_RGBA 255 255 255 255 
            033F: set_text_draw_letter_size 0.2 0.6 
            0342: set_text_draw_centered 1 
            045A: draw_text_1number 4@ 5@ GXT 'NUMBER' number 0@
        end
    end
end
END

:getScreenXYFrom3DCoords
0AC7: 14@ = var 0@ offset
0AC7: 15@ = var 3@ offset
0AC7: 16@ = var 6@ offset
0AC7: 17@ = var 9@ offset
0AA5: call 0x70CE30 num_params 6 pop 6 {18@ 18@} 0 0 17@ 16@ 15@ 14@
0007: 12@ = 640.0
0007: 13@ = 448.0
0A8D: 14@ = read_memory 0xC17044 size 4 virtual_protect 0
0A8D: 15@ = read_memory 0xC17048 size 4 virtual_protect 0
0093: 14@ = integer 14@ to_float
0093: 15@ = integer 15@ to_float
0073: 12@ /= 14@
0073: 13@ /= 15@
006B: 3@ *= 12@
006B: 4@ *= 13@
0AB2: ret 2 3@ 4@
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
Thank you, but i dont understand what yo do with those lines? Where do i paste them and how?


sprgfld: no need to quote 10 times.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Compile it. This is cleo help section(scripting mostly), if you wanted a already made cleo you should've posted in REQUEST section.
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
Yes i know , i was very new and just joined so i posted in help section but after i posted it i realised that i should have posted it in request section , at the end of my first post i have typed sorry for posting in wrong section please move to request!
So , please give me a full premade mod ! Thank you
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
Thanks again for this work springfield , now just tell me what to do with this file , i dont know anything about cleo and sobiet never used one of them , so just tell me where to put pickups.cs file i mean in which folder of san andreas / sa-mp ?
 

Simon98

Well-known member
Joined
Feb 18, 2014
Messages
287
Reaction score
0
Keptism link said:
Thanks again for this work springfield , now just tell me what to do with this file , i dont know anything about cleo and sobiet never used one of them , so just tell me where to put pickups.cs file i mean in which folder of san andreas / sa-mp ?

Download cleo 4.1 and Install it in your Gta San then download that mod and put it in a folder called "CLEO" which will appear after the installation.
You can always look for Tutorial on youtube for further assistance.
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
dont know whats the problem now ! i downloaded cleo 4.3 and installed it and then i putted that file in the cleo folder , when i opened my game at the time of connecting to the server , the game crashes with this code!-
Code:
SA-MP 0.3z
Exception At Address: 0x00000000
Base: 0x02830000

Registers:
EAX: 0x00000000	EBX: 0x00000001	ECX: 0x038A0978	EDX: 0x00007420
ESI: 0x00000064	EDI: 0x038A0978	EBP: 0x0023FD0C	ESP: 0x0023FD00
EFLAGS: 0x00210212

Stack:
+0000: 0x6B882831   0x038A0978   0x038A0978   0x00000000
+0010: 0x00469FF7   0x00000B53   0x038A0978   0x00000000
+0020: 0x6B8804CF   0x00000000   0x038A0978   0x0046A220
+0030: 0x9B88BE83   0x000001FF   0x0023FD98   0x00000000
+0040: 0x0000000A   0xFFE1E1E1   0x80808080   0xFF000000
+0050: 0x0053BFCC   0x0000001A   0x9B88985D   0x00000000
+0060: 0x0023FD98   0x028AA843   0x9B88985D   0x02895B5D
+0070: 0x0000001A   0x9B88985D   0x00000000   0x0D5C1F60
+0080: 0x0023FD70   0x0023F8F4   0x0023FF7C   0x028E0AA4
+0090: 0x02902EB0   0x00000001   0x74208251   0x0053E986
+00A0: 0x00000001   0x00000001   0x0000000A   0x0053ECC2
+00B0: 0x00000001   0x00619B71   0x0000001A   0x00000001
+00C0: 0x00000001   0x0000000A   0x00748DF0   0x0000001A
+00D0: 0x00000001   0x745D179F   0x00000000   0x0023FF8C
+00E0: 0x7FFD5000   0x01630000   0x4F1B887F   0x01632008
+00F0: 0x00000008   0x00000100   0x00000008   0x00000102
+0100: 0x44000000   0x43C00000   0x00000000   0x00000000
+0110: 0x00000400   0x00000300   0x00000000   0x00000001
+0120: 0x0014041A   0x00000200   0x00000000   0x01800200
+0130: 0xAF954936   0x00000200   0x00000180   0x0000002C
+0140: 0x0023FE30   0x00825EE4   0x0023FF7C   0x00825EE4
+0150: 0x745D179F   0x7FFD5000   0x00821D57   0x00000065
+0160: 0x00000065   0x0023FF8C   0x00824731   0x00400000
+0170: 0x00000000   0x01861E0D   0x0000000A   0x00000094
+0180: 0x00000006   0x00000000   0x00001770   0x00000002
+0190: 0x00000000   0x00000000   0x00000000   0x00000000
+01A0: 0x00000000   0x00000000   0x00000000   0x00000000
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x00000000   0x00000000   0x00000000
+01E0: 0x00000000   0x00000000   0x00000000   0x00000000
+01F0: 0x00000000   0x00000000   0x00000000   0x00000000
+0200: 0x00000000   0x00000000   0x00000000   0x008245C8
+0210: 0x00000000   0x00000000   0x7FFD5000   0xC0000005
+0220: 0x76F1DFCA   0x01861E0D   0x00000044   0x01863D88
+0230: 0x0186D4E8   0x0186E5B0   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0x00000000   0x00000000   0x00000000   0x00000000
+0260: 0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF   0x00000000
+0270: 0x00000000   0x0023FE7C   0x0023F8F4   0x0023FFCC

SCM Op: 0x160, lDbg: 0 LastRendObj: 0

Game Version: EU 1.0

State Information: Ped Context: 0
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
this time the cleo installed properly and worked too , but when i tried running the game with you pickups.cs file in the cleo folder the game crashes with this error

Code:
SA-MP 0.3z
Exception At Address: 0x00000000
Base: 0x02880000

Registers:
EAX: 0x0000001C	EBX: 0x00000001	ECX: 0x037F0A58	EDX: 0x00007420
ESI: 0x00000064	EDI: 0x00000000	EBP: 0x00000000	ESP: 0x0023FD10
EFLAGS: 0x00210212

Stack:
+0000: 0x690D2052   0x037F0A58   0x037F0A58   0x00469FF7
+0010: 0x00000B53   0x037F0A58   0x00000000   0x0046A220
+0020: 0x3A3CF336   0x000001A4   0x0023FD98   0x00000000
+0030: 0x0000000B   0xFFE1E1E1   0x80808080   0xFF000000
+0040: 0x0053BFCC   0x0000001A   0x3A3CCD15   0x00000000
+0050: 0x0023FD98   0x028FA843   0x3A3CCD15   0x028E5B5D
+0060: 0x0000001A   0x3A3CCD15   0x00000000   0x0D081F60
+0070: 0x0023FD70   0x0023F904   0x0023FF7C   0x02930AA4
+0080: 0x02952EB0   0x00000001   0x74208251   0x0053E986
+0090: 0x00000001   0x00000001   0x0000000A   0x0053ECC2
+00A0: 0x00000001   0x00619B71   0x0000001A   0x00000001
+00B0: 0x00000001   0x0000000A   0x00748DF0   0x0000001A
+00C0: 0x00000001   0x745D179F   0x00000000   0x0023FF8C
+00D0: 0x7FFDC000   0x015A0000   0x4E68F2CF   0x015A1FD8
+00E0: 0x00000008   0x00000100   0x00000008   0x00000102
+00F0: 0x44000000   0x43C00000   0x00000000   0x00000000
+0100: 0x00000400   0x00000300   0x00000000   0x00000001
+0110: 0x00D9066E   0x00000200   0x00000000   0x01800200
+0120: 0xAFF2D95C   0x00000200   0x00000180   0x0000002C
+0130: 0x0023FE30   0x00825EE4   0x0023FF7C   0x00825EE4
+0140: 0x745D179F   0x7FFDC000   0x00821D57   0x00000065
+0150: 0x00000065   0x0023FF8C   0x00824731   0x00400000
+0160: 0x00000000   0x018F1E0D   0x0000000A   0x00000094
+0170: 0x00000006   0x00000000   0x00001770   0x00000002
+0180: 0x00000000   0x00000000   0x00000000   0x00000000
+0190: 0x00000000   0x00000000   0x00000000   0x00000000
+01A0: 0x00000000   0x00000000   0x00000000   0x00000000
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x00000000   0x00000000   0x00000000
+01E0: 0x00000000   0x00000000   0x00000000   0x00000000
+01F0: 0x00000000   0x00000000   0x00000000   0x008245C8
+0200: 0x00000000   0x00000000   0x7FFDC000   0xC0000005
+0210: 0x76F1DFCA   0x018F1E0D   0x00000044   0x018F3D88
+0220: 0x018FD680   0x018FE370   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF   0x00000000
+0260: 0x00000000   0x0023FE7C   0x0023F904   0x0023FFCC
+0270: 0x00825EE4   0x00888078   0x00000000   0x0023FF98

SCM Op: 0x160, lDbg: 0 LastRendObj: 0

Game Version: EU 1.0

State Information: Ped Context: 0
I think there is something wrong with the mod pickups.cs ?
 

Simon98

Well-known member
Joined
Feb 18, 2014
Messages
287
Reaction score
0
Keptism link said:
this time the cleo installed properly and worked too , but when i tried running the game with you pickups.cs file in the cleo folder the game crashes with this error

Code:
SA-MP 0.3z
Exception At Address: 0x00000000
Base: 0x02880000

Registers:
EAX: 0x0000001C	EBX: 0x00000001	ECX: 0x037F0A58	EDX: 0x00007420
ESI: 0x00000064	EDI: 0x00000000	EBP: 0x00000000	ESP: 0x0023FD10
EFLAGS: 0x00210212

Stack:
+0000: 0x690D2052   0x037F0A58   0x037F0A58   0x00469FF7
+0010: 0x00000B53   0x037F0A58   0x00000000   0x0046A220
+0020: 0x3A3CF336   0x000001A4   0x0023FD98   0x00000000
+0030: 0x0000000B   0xFFE1E1E1   0x80808080   0xFF000000
+0040: 0x0053BFCC   0x0000001A   0x3A3CCD15   0x00000000
+0050: 0x0023FD98   0x028FA843   0x3A3CCD15   0x028E5B5D
+0060: 0x0000001A   0x3A3CCD15   0x00000000   0x0D081F60
+0070: 0x0023FD70   0x0023F904   0x0023FF7C   0x02930AA4
+0080: 0x02952EB0   0x00000001   0x74208251   0x0053E986
+0090: 0x00000001   0x00000001   0x0000000A   0x0053ECC2
+00A0: 0x00000001   0x00619B71   0x0000001A   0x00000001
+00B0: 0x00000001   0x0000000A   0x00748DF0   0x0000001A
+00C0: 0x00000001   0x745D179F   0x00000000   0x0023FF8C
+00D0: 0x7FFDC000   0x015A0000   0x4E68F2CF   0x015A1FD8
+00E0: 0x00000008   0x00000100   0x00000008   0x00000102
+00F0: 0x44000000   0x43C00000   0x00000000   0x00000000
+0100: 0x00000400   0x00000300   0x00000000   0x00000001
+0110: 0x00D9066E   0x00000200   0x00000000   0x01800200
+0120: 0xAFF2D95C   0x00000200   0x00000180   0x0000002C
+0130: 0x0023FE30   0x00825EE4   0x0023FF7C   0x00825EE4
+0140: 0x745D179F   0x7FFDC000   0x00821D57   0x00000065
+0150: 0x00000065   0x0023FF8C   0x00824731   0x00400000
+0160: 0x00000000   0x018F1E0D   0x0000000A   0x00000094
+0170: 0x00000006   0x00000000   0x00001770   0x00000002
+0180: 0x00000000   0x00000000   0x00000000   0x00000000
+0190: 0x00000000   0x00000000   0x00000000   0x00000000
+01A0: 0x00000000   0x00000000   0x00000000   0x00000000
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x00000000   0x00000000   0x00000000
+01E0: 0x00000000   0x00000000   0x00000000   0x00000000
+01F0: 0x00000000   0x00000000   0x00000000   0x008245C8
+0200: 0x00000000   0x00000000   0x7FFDC000   0xC0000005
+0210: 0x76F1DFCA   0x018F1E0D   0x00000044   0x018F3D88
+0220: 0x018FD680   0x018FE370   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF   0x00000000
+0260: 0x00000000   0x0023FE7C   0x0023F904   0x0023FFCC
+0270: 0x00825EE4   0x00888078   0x00000000   0x0023FF98

SCM Op: 0x160, lDbg: 0 LastRendObj: 0

Game Version: EU 1.0

State Information: Ped Context: 0
I think there is something wrong with the mod pickups.cs ?

You have gta_sa EU 1.0 version, You need US 1.0 version.

Here this from my own gta folder:
http://www.mediafire.com/download/1dsi0rupiysrzi0/gta_sa.exe
 

Kenpagi

Active member
Joined
Jun 12, 2014
Messages
96
Reaction score
0
still the same -
Code:
SA-MP 0.3z
Exception At Address: 0x00000000
Base: 0x02A10000

Registers:
EAX: 0x0000001C	EBX: 0x00000001	ECX: 0x015D0A58	EDX: 0x00007420
ESI: 0x00000064	EDI: 0x00000000	EBP: 0x00000000	ESP: 0x0023FD10
EFLAGS: 0x00210212

Stack:
+0000: 0x6B3F2052   0x015D0A58   0x015D0A58   0x00469FF7
+0010: 0x00000B53   0x015D0A58   0x00000000   0x0046A220
+0020: 0x12B34CCC   0x000001C7   0x0023FD98   0x00000000
+0030: 0x00000009   0xFFE1E1E1   0x80808080   0xFF000000
+0040: 0x0053BFCC   0x0000001A   0x12B32567   0x00000000
+0050: 0x0023FD98   0x02A8A843   0x12B32567   0x02A75B5D
+0060: 0x0000001A   0x12B32567   0x00000000   0x0C1D1F60
+0070: 0x0023FD70   0x0023F904   0x0023FF7C   0x02AC0AA4
+0080: 0x02AE2EB0   0x00000001   0x74208251   0x0053E986
+0090: 0x00000001   0x00000001   0x0000000A   0x0053ECC2
+00A0: 0x00000001   0x00619B71   0x0000001A   0x00000001
+00B0: 0x00000001   0x0000000A   0x00748DA0   0x0000001A
+00C0: 0x00000001   0x745D179F   0x00000000   0x0023FF8C
+00D0: 0x7FFD7000   0x01680000   0x4D95988E   0x01681FD8
+00E0: 0x00000008   0x00000100   0x00000008   0x00000102
+00F0: 0x44000000   0x43C00000   0x00000000   0x00000000
+0100: 0x00000400   0x00000300   0x00000000   0x00000001
+0110: 0x00030840   0x00000200   0x00000000   0x01800200
+0120: 0xB003F926   0x00000200   0x00000180   0x0000002C
+0130: 0x0023FE30   0x00825EA4   0x0023FF7C   0x00825EA4
+0140: 0x745D179F   0x7FFD7000   0x00821D17   0x00000065
+0150: 0x00000065   0x0023FF8C   0x008246F1   0x00400000
+0160: 0x00000000   0x018D1E15   0x0000000A   0x00000094
+0170: 0x00000006   0x00000002   0x000023F0   0x00000002
+0180: 0x00000000   0x00000000   0x00000000   0x00000000
+0190: 0x00000000   0x00000000   0x00000000   0x00000000
+01A0: 0x00000000   0x00000000   0x00000000   0x00000000
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x00000000   0x00000000   0x00000000
+01E0: 0x00000000   0x00000000   0x00000000   0x00000000
+01F0: 0x00000000   0x00000000   0x00000000   0x00824588
+0200: 0x00000000   0x00000000   0x7FFD7000   0xC0000005
+0210: 0x76F1DFCA   0x018D1E15   0x00000044   0x018DA168
+0220: 0x018DEF88   0x018DFA68   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF   0x00000000
+0260: 0x00000000   0x0023FE7C   0x0023F904   0x0023FFCC
+0270: 0x00825EA4   0x00888078   0x00000000   0x0023FF98

SCM Op: 0x160, lDbg: 0 LastRendObj: 0

Game Version: US 1.0

State Information: Ped Context: 0
the game crashes with the pickups.cs  :eek:key:
 

Simon98

Well-known member
Joined
Feb 18, 2014
Messages
287
Reaction score
0
Well, I WISH YOU EXPLAIN MORE HOW IT CRASH, I don't understand those codes you put.
It crashes in the loading screen?
It crashes when you activate it?
It crash when SAMP start loading the world?

Anyways try to use SAMP-Funcs 3.1.2
Put them right when you put gta_sa.exe and run the game..this time just put it, it won't tell you to replace anything, check the attachment.

And you may also need a asi loader same Installation as SAMP-Funcs
You can get it here:
http://www.gtagarage.com/mods/show.php?id=21709
 

Attachments

  • SAMPFUNCS v3.1.2.asi
    145 KB · Views: 38
Status
Not open for further replies.
Top