[GTA:SA] C++ Triggerbot

ketotap

Member
Joined
Nov 25, 2018
Messages
8
Reaction score
2
Hello,

I made a simple triggerbot and i have a problem.

Whenever i reset the ped pointer, like suggested in another thread on this forum and shown in Triggerfinger cleo source, the game will start ignoring input and i'm no longer able to do anything.

Does anyone know why this happens?

pEnt = *(uintptr_t*)(0xB6F3B8);

*(uintptr_t*)(pEnt + 0x79C) = 0;

p.s Only happen in SAMP
 
Last edited:

ketotap

Member
Joined
Nov 25, 2018
Messages
8
Reaction score
2
There's no problem in single player.

I'm talking about multi player, SA:MP 0.3.7 R2.

When you aim at somebody and you reset that pointer, no matter what the game after a while will start to ignore input to the window, i'm starting to think that there's some kind of detection for this.

as for the code its in the first post, just reset the ptr and you will notice that the game will continue running but no longer accept input.
 

ketotap

Member
Joined
Nov 25, 2018
Messages
8
Reaction score
2
Resetting LocalPlayer + 0x79C still makes the game ignore input

I read LocalPlayer, check for nullptr, then i read for WeaponSlot, check if it's above 0, thats all i do before this code.

Code:
#define ADDR_CINPUT 0xB73458

enum etInput
{
    Right                = 0x0,
    Left                = 0x1,
    Backwards            = 0x2,
    Forward                = 0x3,
    Look_Right            = 0x4,
    Look_Left            = 0x5,
    Look_Down            = 0x6,
    Look_Up                = 0x7,
    Action                = 0x8,
    Previous_Weapon        = 0xA,
    Aim_Weapon            = 0xC,
    Next_Weapon            = 0xE,
    Group_CTRL_Forward    = 0x10,
    Group_CTRL_Back        = 0x12,
    Conversatin_NO        = 0x14,
    Conversation_YES    = 0x16,
    Change_Camera        = 0x1A,
    Jump                = 0x1C,
    Enter_Exit            = 0x1E,
    Sprint                = 0x20,
    Fire                = 0x22,
    Crouch                = 0x24,
    Look_Behind            = 0x26,
    Unused                = 0x28,
    Walk                = 0x2A
};

uintptr_t pTarget = *(uintptr_t*)(pLocalPlayer + 0x79C);

if (pTarget)
{
    float Health = *(float*)(pTarget + 0x540);

    if (Health > 0)
    {
        *(uint8_t*)(ADDR_CINPUT + etInput::Fire) = 255;

        if (GetTickCount() - Tick > 100)
        {
            *(uintptr_t*)(pLocalPlayer + 0x79C) = 0;

            Tick = GetTickCount();
        }
    }
}
 
Last edited:

user88

Well-known member
Joined
Jun 29, 2017
Messages
426
Reaction score
165
Location
LINK CLEO DICE HACK HERE!
i tried few years ago with that shit but this input things are not the best in my opinion..

u can check my pTrigger source aswell, its prtty good
http://ugbase.eu/index.php?threads/ptrigger-exe-autohotkey.15665/

C++:
0x60B8A0 -> 0x9090 2 byte
0x60B8A2 -> 0x90909090 4 byte

patch those addresses (triangle timer), and the green triangle will dissapear instantly if u dont aiming on the skin
 
Top