Tutorials & Guides

Do you want to know how to ? Check the useful topics here.
In this thread you will learn everything about Cleo and SampFunctions. This is Official thread which means that it will be always updated. If you have any questions or problems related to Cleo or SampFuncs please post them under this thread.  I also ask the users of UG-BASE to guide the new users (or users with problems) to this thread. Keywords Cleo Cleo library (or simply CLEO) is a hugely popular extensible plugin for the Grand Theft Auto games series by Rockstar Games. Cleo library allows the usage of thousands of unique mods which change or expand the gameplay. SampFunctions SAMPFUNCS (abbreviated SF) is a mod, created and maintained by FYP, that expands the CLEO 4 library and adds extended support for SA-MP related functions...
SUPER-FIX BY Mr.Ze Your game is crashing? CLEO mods seem to crash your game upon activation? CLEO just seems to be constantly freezing your game? Well, here is how to fix it! Sanny Builder 3 1. Download Sanny Builder. 2. Run a full installation, as administrator if necessary. 3. Install all components within the installation, except CLEO that is bundled with Sanny Builder 3 installation. TIP: Installing a CLEO (ticking the box) that is bundled with Sanny Builder 3 will install CLEO 3, while you are looking for CLEO 4. CLEO 4 4. Download CLEO 4.1. 5. Run a full installation, as administrator if necessary. 6. Install all components, including the SDK. Downgrade Patch 7. Download the Downgrade Patch. 8. Access the...
First you will need SannyBuilder: sannybuilder.com Download and install that. Open Sannybuilder and click on decompile as such: Or just press F5. Locate your Cleo mod/hack, I prefer putting the ones in a separate folder called something like "My cleo scripts" When you open it look for this line or something similar: 0AB0:  key_pressed  57 The number "57" is a virtual key code. (Your activation key) Virtual Key Codes: Key        Number Mouse 1        1 Mouse 2        2 Mouse 3        4 Mouse 4        5 Mouse 5        6 Space        32 Tab        9 Enter        13 Shit        16 Alt        18 F1        112 F2        113 F3        114 F4        115 F5        116 F6        117 F7        118 F8        119 F9   ...
[b]How to PROPERLY Install CLEO & SAMPFUNCS + CLEO MODS AND SF-PLUGINS Every single day someone or the other asks a simple question where to place the .cs file or how to install sampfuncs properly etc. so to end this i made a video tutorial for the new guys who want to learn this stuff who sometimes find this confusing. This is a video tutorial completely in english, even though i dont have very good english accent, so i have also done some editing to make it as easy to understand as possible (sorry russians  :yesyes: ) I have tried my best to make it as easy as possible to understand for someone who is installing a cleo for the first time in his life. So i hope this video tutorial will help, reducing the spammy posts which keep...
This section is only for CLEO Tutorial&Guide threads. This section is mainly for posting any Guides & Tutorials which other users can use to learn or develop their own cleo, for example; "How to make simple GodMode". Do not post any releases, help, snippet or tutorials&guides threads in this section. If you would like to release a new cleo, visit: >> https://ugbase.eu/releases-6/ If you need to ask for help or help other users about something to do with cleo, visit >> https://ugbase.eu/help-7/ If you would like to view or release a new snippet, visit: >> https://ugbase.eu/snippets/ If you would like to request or help to develop a cleo, visit: >> https://ugbase.eu/requests-10/ Posting different threads which do not have anything...
I want to code a mod(hack) fot GTA:SA-MP, but the cleo library is too hard, it seems like assembly. Is there a way I can code my own code in C++, or other static strongly typed language?
in this tutorial i will explain how to install needed files to start your journey with scripting. you better do this so you guys follow me from the first and don't lost your way into the installing process . PS: This made by BlackHat . This is the first cleo tutorial by me. [hr] Let's start: 1) install clean gta >> if you don't have CD , install the torrent http://thepiratebay.se/torrent/7164828/Grand_Theft_Auto__San_Andreas_1.0_Cracked 2)after installing , install SAMP >> http://sa-mp.com/download.php << choose SA-MP 0.3z Client Mirror by SA-MP Team. 3)then  download this  full version of sannybuilder and put in on the desktop or anywhere (we are going to use this one) >> https://www.mediafire.com/?15agjxi1a9lzooc 4)install...
Hi, there used to be a topic like this created few years ago. It was deleted by an unknown person (the forum section where it was located was not configured properly allowing anyone to use moderator/admin privileges). There was some useful information about the topic, if anyone is interested, here's a snapshot of it from 29/09/2019: https://web.archive.org/web/20190929033143/http://ugbase.eu/index.php?threads/decrypting-cleos.18877/ All thanks to "archive.org" which holds 70+ petabytes of websites states from the past.
In this topic, I'll be teaching you how to properly Setup the tools you'll need to Code GTASA Cleo Scripts(especially for SAMP). Why do you need to do this? To avoid Sanny Builder Related problems/errors of course! To make sure that every cleo script gets compiled properly. To make sure thay every cleo files gets decompiled properly(as long as it isn't encrypted). 1. Install ASI Loader to your GTASA 2. Install Cleo Plugin to your GTASA 2. At the Bottom right side of the SB Window, make sure that the Sanny Builder Editor Mode is in GTA San Andreas. You'll see the gtasa logo if it's currently in gtasa, if not then click it this region to change the editor mode. 3. Makes sure you have the same settings as seen on these pictures...
Hey there, anybody guide me how can i hide, CLEO & SAMPFUNCS From Pause Menu, is it possible? Thanks in Advance
I was wondering this. Basically I want to type a command, open the menu and get the information from within it without the user being interrupted by the menu opening.
Using windows libraries brings a lot of functionality to cleo. For example it allows to create an accurate FPS counter which wouldn't be possible using CLEO timers. Or things like setting the position and size of the GTA window, producing a beeping sound, retrieving current time and date. Potentially even executing a file (which I could never get to work properly). How to call such functions in CLEO If the function returns some value (0AA7): 0AA2: 0@ = load_library "kernel32.dll" if 0AA4: 1@ = get_proc_address "GetTickCount" library 0@ then 0AA7: call_function 1@ num_params 0 pop 0 2@ If the function doesn't return any value (0AA5): 0AA2: 0@ = load_library "kernel32.dll" if 0AA4: 1@ = get_proc_address "GetTickCount"...
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
When admin is spectating you ( /recon) to show in chat. Like admin X is spectating/watching you
So I have this cmd: {$CLEO} 0662: "InstructorCMD creat de MrPopeye pentru School Instructors Las Venturas(OG-Times)." thread "InstructorCMD creat de MrPopeye pentru School Instructors Las Venturas(OG-Times)." wait 2500 0B34: samp register_client_command "comenzi" to_label @cmd_1 0B34: samp register_client_command "gun" to_label @cmd_2 0B34: samp register_client_command "fly" to_label @cmd_3 0B34: samp register_client_command "boat" to_label @cmd_4 0B34: samp register_client_command "g1" to_label @cmd_5 0B34: samp register_client_command "g2" to_label @cmd_7 0B34: samp register_client_command "g3" to_label @cmd_8 0B34: samp register_client_command "g4" to_label @cmd_9 0B34: samp register_client_command "g5" to_label @cmd_10 0B34...
Hi, I was searching for any tutorial about it but didn't find any which would be made using simple language. There is one here but I found it difficult to understand when I saw it for the first time. Why is it useful? Cleo is limited to 31 variables (+2 timers) which may cause some confusion while making complex scripts. By correct usage of 0AB1 it's possible to make a complex script look clean and organised. Each function has its own "internal variables" and changing them doesn't affect the script where the function is called, that's why it's so useful. By using it you can: -make calculations using a lot of variables without affecting your base script -pass a result of your calculations back to your base script -set something (e.g...
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 was not tested
Short tutorial. Hello , i'm not good with tutorials , but i tried xD Maybe someone can explain better , i'm sure a lot peoples don't know how to do that. So What is memory?? By wiki: Memory is the faculty of the brain by which data or information is encoded, stored, and retrieved when needed. It is the retention of information over time for the purpose of influencing future action. How we read / write memory?? Examples when need read / write samp memory with pointers.: With one offset // use 0AB1: call_scm_func @example params 0 // Read :EXAMPLE 0AA2: 0@ = "samp.dll" // get samp.dll adr and store to 0@ 0@ += 0x2AC9E0 /// samp.dll adr + pointer = full pointer 0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0 /// read memory to...
hello, since there is many asking how , here is how this will check if players is away from you around 100 meter or less , you can change it {$CLEO} 0000: NOP :START wait 0 IF AND 056D:  actor $PLAYER_ACTOR defined 0AB0:  key_pressed 49 //key 1 to start the loop then  REPEAT wait 0 // GET ALL STREAMED PEDS    0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0 000A: 29@ += 0x4 0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0 for 30@ = 0 to 35584 step 0x100     0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0     000A: 29@ += 0x1     if and         0029:  31@ >= 0x00         001B:  0x80 > 31@     then         005A: 31@ += 30@         // GOT THE PED. 31@ = THE PLAYER (PED) IF 056D:  actor 31@ defined   ...
First of all, what does syntax mean? I'm too dumb to explain it myself so i'll quote wikipedia  :trollface: How does that relate to SB? Well, sanny can understand and compile code in two syntaxes; - Low level coding/statements - High level coding/statements Low level is mostly relying on labels(:start, @start, jump @start, jf @start) It's messy and hard to understand if you code is bigger or more complex. It's also the way sanny outputs decompiled scripts. Example; High level is logical, simpler to use and easier with bigger and complex scripts. It also looks more clean. Example; They basically work the same, there's nothing you can do in one and not the other. It all depends on how easier each one is for you. If you're new...
A list of Cleo coding tips and things that "are supposed to work" but in practice don't work for some reason. 1. "wait 1000" will not work within command callbacks. More info 2. "alloc 0@ 1000" makes sure that the memory region can be used safely by the cleo mod. After using it the 0@ variable will hold an address (which is a number) to the begining of that memory. Most often it's used for storing text from what I see but any type of data can be stored there. To store text at that memory region it's possible to use: format 0@ "some text" To store integer and float next to each other the following opcodes could be used: 0A8C: write_memory 0@ size 4 value 77 virtual_protect 0 0@ += 4 0A8C: write_memory 0@ size 4 value 77.0...
Most often it happens because of using sampfuncs based opcodes without having sampfuncs plugin added to the Sanny Builder files. Solution: http://ugbase.eu/Thread-ASI-SAMPFUNCS-5-3-0-3-7
Hello ugbase comunity, since i saw recently some guys asking anout npc bots for samp , decided to explain how eassy you can add npc's into servers using samp-npc.exe  You can get the binaries from here basically you can execute cmd from windows, place on the same folder with samp-npc.exe and paste that line:  samp-npc.exe -h IP -p PORT -n NPC NAME -m SCRIPT NAME You can also build your own application for joing them: //c++ solution use CreateProcess if you want pass the arguments  https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx //vb solution  Dim procNPC As Process = System.Diagnostics.Process.Start("samp-npc.exe", "-h IP -p PORT -n NPC NAME -m SCRIPT NAME")
hello guys , this is off topic xD this means it is kinda related to the tutorial series but it is just for open source codes :P this will read your command like (/get , /spawn , /kill) ..etc and do something about the following code generally  took from TH3RM4L , i wanted to share it because it is very simple and easy to understand , i got it from some cleo that he made (open source) -- you better say thanks to him too. i edit some of it to make it easier and the explanations are in comments in the place you need it . big mistakes has been fixed ! {$CLEO .cs} 0000: NOP 0B34: samp register_client_command "target" to_label @start //now when you type "/target id" it will run //to change just replace target with any word you like...
Take and good luck, i just little edit it, added if any dialog active then don't work fake walk. Commands.: "play" "stopplay" "record" "stoprecord" Credits.: @Opcode.eXe [Vehicle recoding default code] @SpexxTr0n [not sure for him] >> >> @springfield know better.
Yo, whatsup? Im new in this community, i got no idea how to work in c++, i wanna learn how to make scripts like a aimbot/wallhack and more.  Can someone help me up? :D :D :D
Hello, I'm new here, well I wanted someone to explain to me, how do I edit an aimbot by sanny builder, I wanted to move on the fob of the aimbot and on his appeal, to leave less appeal or more appeal, I hope someone explains , The aimbot is a spring.
This is a small mod pack I made which lets you fully bot materials and other basic checkpoint jobs on role-play servers. This pack includes the following mods. - Cleo 4 - Asi loader - SampFuncs - Path creator (Fixed and working version) - Path driver (Fixed and working version) - Auto get mats - Auto drive to checkpoint (Just a extra this will auto drive to selected checkpoints press Z to start) Controls: - C+P to record - C+Q to play Some servers have anti bot protection and make you fill out a captcha so I would watch this for a bit. Video: https://youtu.be/0dVli0Ds098 Do not use a motorcycle when using this pack the recording mod messes up the turning angles but it works perfect in a car I get 5-10k mats per hour depending on the...
The code below creates and executes a batch file with instructions to download an image and execute it immediately. The interesting part is that it also could be used for any other application, like malware for example. Or to do some damage to the PC directly from the command line Tested with: -Cleo 4.1 -Sampfuncs 5.3.1 -Samp 0.3.7 /* The code seems more comlex than the actual working mechanism because of the "wooden" string handling. It seems that "0A9E: writefile" opcode doesn't work if a string pointer is used so the string is cut and step by step written to the file. Also it seems that using too long strings causes the code to ignore them so that's why there are multiple "@write_file" calls instead of 1 with a 1 simple long...
VPN on Windows step by step guide (Using SoftEther VPN) 1. Install SoftEther VPN Client with VPN Gate Client Plug-in (only once at the first time) Download the special version of SoftEther VPN with the VPNGate Client Plug-in: Download Extract all of the contents you have downloaded to a new folder. As the above figure, a setup program and some DLL files are extracted. Execute the setup program which the filename begins with "vpngate-client-", and proceed with installation. The installer should be like this: You have to choose "SoftEther VPN Client" in the "Select Software Components to Install" window. You can also install "SoftEther VPN Client Manager" to host your own VPN. (more on that later). After the installation...
Top