Search results

  1. monday

    CLEO Help Question about 0C11

    can you post the full code that crashes?
  2. monday

    CLEO Help Question about 0C11

    In the first example you're adding to value instead of a pointer, so youre overwriting the same byte with different values repetitively In the second example you're writing to 0@ instead of 3@, so you're overwriting the same byte repetitively If all you want to do is to reset all bytes to 0...
  3. monday

    APP Release [OPEN SOURCE] LSRP Auto Unscrambler

    Hi, could you help me to compile it? I'm using Visual Studio 2019 but downloaded "C++ Windows XP Support for VS 2017 (v141)" which was set in the properties as "Platform Toolset" when I opened the solution. I'm using Windows 10 in case if it makes difference. Edit: I just changed from x64...
  4. monday

    How would I call a function inside the game?

    Just tested it and it worked properly: // dllmain.cpp : Defines the entry point for the DLL application. #include "pch.h" #define FUNC_SAY 0x5820 void main() { Sleep(16000); DWORD SampDLL = (DWORD)GetModuleHandleA("samp.dll"); void (*say)(const char*) = (void (*)(const char*))...
  5. monday

    How would I call a function inside the game?

    Here's an example in C of how you can define pointer to some function if you know its' address. // tested with: http://www.onlinegdb.com/online_c_compiler #include <stdio.h> void original_game_func(char * to_say){ printf("%s\n", to_say); } void (*my_func)(char *) = 0x400586; int main() {...
  6. monday

    CLEO Help split string

    Hi, it would be good if you specified what you'd like to do with these letters afterwards. That's because there are many ways you could approach it. I bet you don't need to split anything, in the memory the string is stored as numbers sitting next to each other (1 number per 1 character), you...
  7. monday

    Untagged Release diceMastermind (tool)

    nope
  8. monday

    [C++] Timecyc Rainbow - source code

    https://pastebin.com/v0sQsuq7 if (g_Options.Rainbow.bRainbow && g_Options.Rainbow.bRainbowSky) { *(byte*)(0x561760) = 0xC3; *(byte*)(0xB7C4C4) = (BYTE)round(vars->dwRGBColor.x * 255.f); *(byte*)(0xB7C4C6) = (BYTE)round(vars->dwRGBColor.y * 255.f)...
  9. monday

    CLEO Help Question about pointers and offsets

    idk about isDialogOpen, but it looks like in GetDialogCaption you have 1 readMem that is not needed. 0x4026500 is a pointer to the string, so don't read it, return it :GetDialogCaption { 0.3.DL } 0AA2: 1@ = "samp.dll" 1@ += 0x2AC9E0 0A8D: 1@ = readMem 1@ sz 4 vp 0 1@ += 0x40 0AB2: ret 1 1@
  10. monday

    CLEO Help Question about pointers and offsets

    It depends where is the thing that you want. If the pointer leads to the first character of a string, then offset of n-size, will lead to the nth-character of that string. For example: #include <iostream> using namespace std; int main() { const char* str = "abc"; int offset = 1...
  11. monday

    CLEO Help [SOLVED] weird behavior

    https://gtaforums.com/topic/403594-sa-~-cleo-script-tutorial-~/ So if you set 32@ or 33@ to 0, it will automatically increase by 1 per milisecond (1000 per second). You can use it to measure time like this: 32@ = 0 while true if 32@ > 1000 then // 1 second passed 32@ =...
  12. monday

    CLEO Help [SOLVED] cutting floats

    https://gtagmodding.com/opcode-database/opcode/006B/ 006B: 0@ *= 1@ Probably that opcode expected 2 parameters to be variables, I guess this one wouldn't crash: https://gtagmodding.com/opcode-database/opcode/0013/ 0013: 0@ *= 100.0
  13. monday

    CLEO Help [SOLVED] cutting floats

    __________________________________________ alternatively you could use "format" and "scan_string" opcodes like: format str_pointer "%.2f" old_float scan_string str_pointer "%f" new_float
  14. monday

    CLEO Help [SOLVED] cutting floats

    there are opcodes that allow conversion from float to int and from int to float (use opcode search tool in sanny builder or google), using these you can do the following: new_float = float(int(6.214698385312 * 100.0)) / 100.0 new_float becomes 6.21
  15. monday

    CLEO Help [SOLVED] arrays

    yes, check this out: http://ugbase.eu/index.php?threads/snippet-readstringfromlist.15043/
  16. monday

    CLEO Help "Strong" ObjectFinder

    math.ceil(6000 / (math.sqrt(2) * 300)) ** 2 # output = 225 The map is 6000x6000 units (let's say meters). Let's assume streamed-in zone has radius of 300 meters (meaning the square streamed-in zone is sqrt(2) multiplied by 300 so 424x424 meters). So you could spawn 225 bots covering the whole...
  17. monday

    CLEO Help Timing Issues

    there is a range of sampfuncs opcodes that could help you to select and delete the right textdraws, for example: 0C5B: samp textdraw 0@ get_pos 1@ 2@ 0C53: samp textdraw 0@ get_box_enabled 1@ color 2@ size 3@ 4@ You could create a mod (e.g. activated by key press) that will print the position...
  18. monday

    CLEO Help Cleo file

    I used few of these, I don't have sanny builder but you could easily edit one of them if you do. All you have to edit is the "virtual key": key_down 105 And text formatting instruction: 0AD3: 0@v = format "/ta %d" 2@ (put "ant" instead of "ta") Btw check out this 'analysis': # python 3 def...
  19. monday

    Untagged Release diceMastermind (tool)

    it never worked
  20. monday

    Untagged Release diceMastermind (tool)

    but it doesn't work anyway so is there even a point?
  21. monday

    I need help, i need scripter

    It would be necessary for him to have a mod that will post request when he types the command. So you'd have to ask him to get that mod or trick him into getting it
  22. monday

    CLEO Help samp set_current_dialog_item_list is not working.

    as long as you won't make a typo they won't see it just like batonkal said
  23. monday

    CLEO Help samp set_current_dialog_item_list is not working.

    I forgot about it completely but 4 months ago someone told me about the same issue and using "fake keypress" function solved the issue: https://pastebin.com/RaMTP2Pg Btw did you try to change the "4" into "3" as suggested in the comment? I remember that I checked it and using: 0B49: samp...
  24. monday

    Shoutbox

    thanks
  25. monday

    printf question

    This "Pretty_float_print" is not really useful if you have printf function with many params... Printf allows to supply the precision number as an additional parameter if instead of providing precision digit you supply "*" character. You can use ternary operator to do something like this...
  26. monday

    printf question

    If you don't find any better solution you can do something like: #include <stdio.h> void Pretty_float_print(float f){ if ((int)f == f){ printf("%.0f", f); } else{ printf("%.2f", f); } } int main() { float float_num = 1.5; Pretty_float_print(float_num)...
  27. monday

    CLEO Help Question about 0C11

    just edited that post, 1@ should be increased after write_mem, my bad
  28. monday

    CLEO Help Question about 0C11

    http://www.cplusplus.com/reference/cstring/memset/ it has 3 input parameters: destination, value and size. So you can do the following: DEST_PLUS_SIZE = DEST + SIZE for 0@ = DEST to DEST_PLUS_SIZE write_mem pointer 0@ value VALUE size 1 end Alternatively (does the same thing): 1@ = DEST for...
  29. monday

    CLEO Help Object finder?

    The cool feature of that mod is that you can use range of object model IDs. like: /oy 1000 1002 This way it will search for objects that have model id of 1000, 1001 and 1002 You can also specify multiple commands to the objects will be marked with different colours: /oy 1000 /or 1001 /ob 1002...
  30. monday

    CLEO Help Object finder?

    Hi, I don't play samp at all and I don't create/modify any cleo mods anymore (although cleo is cool), but I don't see any reason why the objectFinder.cs wouldn't work with the 0.3.7 version, I tested it with that samp version and it worked well. If you're using the "dl" version then it may not...
  31. monday

    Shoutbox

    bump
  32. monday

    Calling "GetScreenXYFrom3DCoords" from C#.

    Hi, I wish I could help you but I have no idea how to do that. I'd start with checking this: https://stackoverflow.com/questions/51913872/c-sharp-calling-a-function-from-its-memory-address That shows how the function is defined in C++ and asks for the equivalent in C# To see how the 3d_to_2d...
  33. monday

    Need help!

    yeah, just like it's described here: http://ugbase.eu/index.php?threads/sampfuncs-5-3-0-3-7.14796/ under "For developers:"
  34. monday

    Need help!

    did you add the sampfuncs files to sanny builder directory?
  35. monday

    Paying money for someone to port a cleo to 0.3.7

    what cleo mod is it?
  36. monday

    CLEO Help Help sannybuilder

    text preceding variables in cleo is just for description xD (except labels/defines) It won't affect what the opcode actually does, it's all about the opcode itself (e.g. 0B2B) and its' parameters (e.g. 1@) You could try this: 0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR 0B36...
  37. monday

    CLEO Help Anyone know how to fix this? (See the picture).

    this one should work :EasyTaxi_27 wait 0 if and SAMP.IsLocalPlayerSpawned not SAMP.IsDialogActive(-1) else_jump @EasyTaxi_27 alloc 0@ 160 alloc 5@ 200 SAMP.GetChatString(98, 0@, $NOT_USED, $NOT_USED, $NOT_USED) 0A8C: write_memory 5@ size 1 value 0 virtual_protect 0 // just to make sure...
  38. monday

    CLEO Help Anyone know how to fix this? (See the picture).

    It looks like the problem is that it stops on "\" and "n" instead of stopping on newline byte, I'll check it out with different function and I'll let you know
  39. monday

    CLEO Help Anyone know how to fix this? (See the picture).

    the "*" is not there which means that the color will also be extracted and overwrite 5@, the desired text will try to overwrite the next address on the stack (which should be provided and wasn't) so either use: 0AD4: $NOT_USED = scan_string 0@ format "Destination: {%*[^}]}%[^\n]" 5@ or: -add...
  40. monday

    CLEO Help Help sannybuilder

    {$CLEO} 0000: repeat wait 50 until 0AFA: is_samp_available 0B34: samp register_client_command "myid" to_label @cmd_print_my_id 0B34: samp register_client_command "param" to_label @cmd_print_parameter while true wait 0 end :cmd_print_my_id 0B2B: samp 0@ =...
  41. monday

    CLEO Help Anyone know how to fix this? (See the picture).

    the function of * character in the format is to ignore that expression, meaning that you extract only one expression instead of 2, so only 1 output parameter is required (so $NOT_USED could be deleted) if 0AD4: $NOT_USED = scan_string 0@ format "Destination: {%*[^}]}%[^\n]" 4@ Or: 0A8C...
  42. monday

    CLEO Help Anyone know how to fix this? (See the picture).

    maybe try using format like this: "Destination: {%*[^}]}%[^\n]" It works well with sscanf here: https://www.onlinegdb.com/online_c_compiler #include <stdio.h> int main() { char *chatline = "Destination: {33AA33}The Strip"; char parsed[100] = {0}; sscanf(chatline...
  43. monday

    CLEO Help How to break or stop FOR cycle

    @mokinys98 I modified the code so it's much easier to edit/extend, it automatically gets the name of picked option (so the long "if then end" sequence is not needed anymore) {$CLEO .cs} 0000: NOP 0662: printstring "Aurimo radistø script'as." REPEAT Wait 0 Until 0AFA...
  44. monday

    CLEO Help Read Player ID's and Auto Accept Mechanic Call. Need help, please.

    maybe it fails when the name has more than 16 characters because of 1@v being used, but idk
  45. monday

    Shoutbox

    happy new year mofos, I wish you to have a shoutbox in 2019;d
  46. monday

    CLEO Help SAMP Read dialogs and send reply

    it does 0000: repeat wait 50 until 0AFA: is_samp_available alloc 1@ 500 0B34: samp register_client_command "autodrugs" to_label @toggle 31@ = 0 if 0AAB: file_exists "CLEO\autoDrugsSettings.ini" then 0AF0: 10@ = get_int_from_ini_file "CLEO\autoDrugsSettings.ini" section...
  47. monday

    CLEO Help SAMP Read dialogs and send reply

    I made something like this, it worked on IMRP server, you could check it out http://www.mediafire.com/file/y2aop2zob2va1if/autoDrugs.cs/file http://www.mediafire.com/file/u007029btn1s548/autoDrugsSettings.INI/file activation command: /autodrugs It automates the process, it inputs "/buy" and...
  48. monday

    CLEO Help (SOLVED) I need detect if targeted_actor is a NPC - /close

    but it says that the id of the NPC is -1, so why not use it? IF AND 8B64: is_NOT samp is_player 1@ npc 1@ > -1 // or something like: 1@ >= 0 THEN
  49. monday

    CLEO Help Masked Man Checker

    there are 2 code containers in that post, the big one just has to be copied and appended at the end of your code. The small one is how you actually use it which is very simple:
  50. monday

    CLEO Help Masked Man Checker

    did you check the snippet I referenced? and why do you think that it will not work when the player is too far?
  51. monday

    CLEO Help Masked Man Checker

    then why do you assume that getting target actor would not work?
  52. monday

    CLEO Help Masked Man Checker

    but I mean nametag hacks (not normal nametags that you get without any mods), aren't these working properly?
  53. monday

    CLEO Help Masked Man Checker

    why is that? Aren't nametags working properly on the server you are playing?
  54. monday

    CLEO Help Masked Man Checker

    someone correct me if I'm wrong but I see the following issues: lack of "then" or "jf" after if and SAMP.IsPlayerConnected(2@) not 1@ == -1 "jf" is there but after 0AE1 opcode, which actually sets 1@ to be an actor but after the 1@ is checked for -1 (which is PLAYER_ACTOR ? ) First it...
  55. monday

    CLEO Help How to make this Script only work when player actor standing at nearest vehicle?

    then nothing I posted is applicable xD there's a snippet to get nearest car in the snippet section as far as I remember (because that opcode to get nearest car crashes the game if the closest car is too far away)
  56. monday

    CLEO Help How to make this Script only work when player actor standing at nearest vehicle?

    btw there's a difference between "standing at" and "standing near"
  57. monday

    CLEO Help How to make this Script only work when player actor standing at nearest vehicle?

    what is /pvlock command doing? Does it have to be used once after jumping on the car? In such case you could automatically detect when you begin surfing using something like this: 0@ = false :main wait 0 if 0A32: is_char_attached_to_any_car $PLAYER_ACTOR then if 0@ == false then...
  58. monday

    CLEO Help How to make this Script only work when player actor standing at nearest vehicle?

    maybe you could replace it with simple: :main wait 0 if 0A32: is_char_attached_to_any_car $PLAYER_ACTOR then // do some stuff end jump @main https://www.gtagmodding.com/opcode-database/opcode/0A32/ I didn't test it though
  59. monday

    CLEO Help Question about 0AA2: $hLIB = load_library "CLEO\version.dll"

    Is the cheat engine thing you posted a mathematical formula? Or at some point of the equation the memory is read and the result is passed onto the next operation? From what you posted: Cheat engine method = dll + 0x27DFF0 Cleo method = (value_at(dll + 0x27DF78) + 50) * 2 + 20 So these are 2...
  60. monday

    CLEO Help help to find error unknown directive key_down 82

    http://ugbase.eu/Thread-Solution-Unknown-Directive-error-Sanny-Builder
  61. monday

    Shoutbox

    . Edit: tried to put emojis/memes into the the message but it doesn't save them
  62. monday

    new hax screens/vids

    should release it as aimbot on april fools day or something, imagine pressing the activation key and then... surprise dude shit himself xD
  63. monday

    CLEO Help Detect In front

    http://ugbase.eu/index.php?threads/snippet-get-target-car.4910/
  64. monday

    New forums!

    btw I don't know if others also have this problem but the count of all messages is constantly displayed over the "Inbox" using this thing also doesn't help
  65. monday

    New forums!

    nice, looking good
  66. monday

    Camera to Z-player position

    Hello, I think that's what you're looking for: https://www.e-education.psu.edu/natureofgeoinfo/book/export/html/1837 Here's a python code that calculates the slope degree (that 'vertical angle' so you know how far 'vertically rotate' the camera): from math import sqrt , atan, pi pos = dict(...
  67. monday

    Offset to View Matrix

    hi, idk what view matrix is but there's internal gta function at address 0x70CE30 that does the conversion, idk how it does it exactly cleo implementation: http://ugbase.eu/Thread-SNIPPET-Convert-3D-position-to-2D-screencords C++...
  68. monday

    Help gang system

    the first warning is about "specialybe" but there's no definition of it shown in the script, is "specialybe" a function or something? That would explain why it can't be accessed like an array using "[]"
  69. monday

    CLEO Help AUTORUN CHECKPOINT CLEO

    there are opcodes like this important thing is whether there are any obstacles to avoid, like buildings or objects spawned by server
  70. monday

    CLEO Help draw_texture

    if anyone wanted to implement the same then the issue was about 3 files missing in this cool coloured wepon pack: http://camil1999mods.blogspot.com/2013/10/relsa-hd-weapon-icons.html missing IDs are 19,20,21 so it can be fixed in 2 ways: 1. By creating transparent/empty file and using it when...
  71. monday

    CLEO Help draw_texture

    could you send the full code?
  72. monday

    CLEO Help draw_texture

    assuming that you're using all images uncluding "0.png" you should remove: 0@ += 4 and edit: for 29@ = 0 to 46 // 0 instead of 1 also, there are 47 images all together, each taking 4 bytes (integer), so you'll need to allocate at least 188 bytes
  73. monday

    CLEO Help draw_texture

    you could also wrap loading textures and getting specific ones using functions, if you take a look at the source of the mod from link below you'll see I tried to solve the same problem: http://ugbase.eu/Thread-CLEO-shootingIndicator :LoadPictures 0@ += 4//to avoid using 0 as the index value...
  74. monday

    Get all vehicle from vehicle pool

    nice project though. Btw because the code in quotes is the one before I edited it, make sure to change the following line if anyone is going to use it: BYTE inUse = *(BYTE*)byteMap + i; It should be: BYTE inUse = *(BYTE*)(byteMap + i);
  75. monday

    CLEO Help Exists?

    hi, these are called 'triggerbot', there are few of these on this forum e.g mod called TriggerFinger
  76. monday

    Get all vehicle from vehicle pool

    DWORD pVehStruct = (*(DWORD*)gtaVehBase) + i * 0xA18; != int pVehStruct = mem.ReadInt(gtaVehBase + i * 0xA18); ting is working :foreveralone_hurra: namespace GTAPointerTest {    public class main_class    {        private ProcessMemoryReader mem = ProcessMemoryReader.Initialize();      ...
  77. monday

    Get all vehicle from vehicle pool

    btw this part: BYTE inUse = *(BYTE*)byteMap + i; supposed to be: BYTE inUse = *(BYTE*)(byteMap + i);
  78. monday

    Get all vehicle from vehicle pool

    then my code/method is wrong, I thought you'll post the whole thing so I can test it quickly though...
  79. monday

    Get all vehicle from vehicle pool

    If that code is not injected into gta_sa process then it will read memory of the process that actually runs it... You would have to adapt that code with functions like these from: http://www.codingvision.net/security/c-read-write-another-process-memory
  80. monday

    Get all vehicle from vehicle pool

    could you post the full code if that's not a problem so I could test/adjust it quickly?
  81. monday

    Get all vehicle from vehicle pool

    hi, I'm not sure if this will work because I didn't test it but you could give it a try: DWORD gtaVehBase = *(DWORD*)0xB74494; DWORD byteMap = *(DWORD*)(gtaVehBase+4); DWORD numberOfMaxVehs = *(DWORD*)(gtaVehBase+8); DWORD numberOfActiveVehs = *(DWORD*)(gtaVehBase+12); for(int i = 0; i <...
  82. monday

    [Tutorial] Text handling

    Hi, it seems that questions related to text editing/parsing appear quite often so I thought a thread like this would be useful. It doesn't contain a lot of stuff that wasn't posted here previously but there are useful links/resources included through the post. Some of the code in this post...
  83. monday

    mod_sa 2018 rck

    I had problems with posting images and asked in chat
  84. monday

    mod_sa 2018 rck

    thank you all:)
  85. monday

    mod_sa 2018 rck

    just testing
  86. monday

    CLEO Help [SA:MP] Read chat and auto reply

    is there nicknames with multiple words on this server? In other words, can nickname contain a space character? [hr] {$CLEO} {$INCLUDE SF} 0000: repeat wait 50 until 0AFA:  is_samp_available 0B34: samp register_client_command "activate" to_label @activate 0BE3: raknet setup_incoming_rpc_hook...
  87. monday

    CLEO Help [SA:MP] Read chat and auto reply

    btw isn't 20@v going to contain all 16 chars regardless of surname length? I guess it should have [^ ] instead of [^_] in order to match all characters that are not an empty space (instead of matching all characters that are not an underscore) so it would be something like "%[^_]_%[^ ]"
  88. monday

    CLEO Help hidden symbols

    could you show example of a text that has these hidden symbols? Is it in dialog? Some textdraw? Chat? Can only guess if you don't specify. Ideally you could post at which server and how to receive such text with hidden stuff, then someone could actually test it and play with it
  89. monday

    CLEO Help hidden symbols

    what do you mean by "bypass random hidden symbols"?? Do you mean that you have some mod that automates some action based on text received from server and the server tries to prevent such mods by adding random numbers/characters into the text? e.g. "Some t5ext rec8eived from se6rv3er" Is it...
  90. monday

    Chatlog - Discord Bot

    Here's some updated python and netrpc.cpp code if anyone was going to play with it (it's just more comfortable for testing, also python code is not blocking other discord functionality anymore) netrpc.cpp  - https://pastebin.com/ACr0sPCe from bottle import route, run # server to receive data...
  91. monday

    Chatlog - Discord Bot

    hi, I never used RakSAMP but from what I see it would be necessary to modify its source code... in "netrpc.cpp" file there's a "ClientMessage(RPCParameters *rpcParams)" which has : void ClientMessage(RPCParameters *rpcParams) { //if(!iGameInited) return; PCHAR Data =...
  92. monday

    CLEO Help Brigtness level

    @Corey hi, I noticed a weird thing... I play using windowed mode, when I press the button in the right upper corner of the screen to maximise the game (so it's maximised but still windowed) then everything in game becames too dark. When I just drag the corner of the window to match the full...
  93. monday

    CLEO Help Disable/block keyboard and mouse

    @springfield I thought the same but I have no idea how to do it... @CSprite It's adapted to cleo from this: https://www.unknowncheats.me/forum/c-and-c-/83707-setwindowshookex-example.html that's the method I used: http://ugbase.eu/Thread-Tutorial-Using-functions-from-Windows-libraries Only...
  94. monday

    CLEO Help Disable/block keyboard and mouse

    {$CLEO} 0000: repeat wait 50 until 0AFA:  is_samp_available while true wait 0    if key_down 48 // key 0 (not numpad)    then        while key_down 48  // necessary because key needs to be unpressed before setting the hook (because callback will ignore "key_up" message and assume it's...
  95. monday

    CLEO Help [Get/Read] Time from website.

    I just meant that getting it from random website may be complicated... Could be done by parsing the content of the whole page but there's no need to do that because there are various free services around the web. Including one which tells you what time it is in certain location. That service is...
  96. monday

    CLEO Help [Get/Read] Time from website.

    "inspect element", parse response, recreate javascript that updates the time in cleo ...or... make use of my previous suggestion and use link to api I posted:p
  97. monday

    CLEO Help [Get/Read] Time from website.

    http://ugbase.eu/Thread-how-to-do-http-requests-in-cleo + :download_check_status // by some scammer - http://ugbase.eu/Thread-Intriguing-scam-check-if-your-data-was-stolen 1@ = -1 while 1@ == -1   wait 0   0C66: 1@ = get_download 0@ state end 0AB2: ret 1 1@ //0C65: 1@ = download_url 4@...
  98. monday

    how to create cheat menu samp

    Use this to copy the code sample: https://blast.hk/threads/506/ Use this to read about it: https://translate.google.co.uk/translate?sl=ru&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fblast.hk%2Fthreads%2F506%2F&edit-text= see "DIALOG_STYLE_LIST" example, I guess that's one of the easiest...
  99. monday

    Multicheat 100+ Functions, 100% editable

    lol, that's what I see:
  100. monday

    RenderGUI error

    I haveno idea what is the expected value of "style.WindowTitleAlign" and what is the return of "ImVec2" function but you could try casting it to desired type style.WindowTitleAlign = (ImGuiAlign)ImVec2(0.5f, 0.5f); or try to use style.WindowTitleAlign = ImGuiAlign_Center...
Top