namespace Buttons
{
int
DPADUp = 0x34,
DPADDown = 0x38,
DPADLeft = 0x3C,
DPADRight = 0x40;
};
bool ButtonPressed(int Client, int Button)
{
if (*(int*)ReadInt(0xF0A7CC + (Client * 0x580
, 1) == Button)
return true;
else return false;
}
void thread_entry(uint64_t arg)
{
for(;
{
if (ButtonPressed(0, Buttons:
PADUp) && InGame() == true)
{
G_Client(0, 0x1
;
G_Client(0, 0x43C);
}
}
}
bool DetectButtonDPAD(int clientIndex, int ActionSlot)
{
int ButtonIndex = *(int*)(0x94641C + ActionSlot);
int B1 = *(int*)Functions::G_Client(clientIndex, 0x56B
;
int B2 = *(int*)Functions::G_Client(clientIndex, 0x56A0);
if ((B1 == ButtonIndex) || (B2 == ButtonIndex))
return true;
return false;
}

enum ButtonsDPAD
{
Up = 0x34,
Down = 0x38,
Left = 0x3C,
Right = 0x40
};
enum ButtonsDPAD
{
Up = 0x34,
Down = 0x38,
Left = 0x3C,
Right = 0x40
};
bool DetectButtonDPAD(int clientIndex, int ActionSlot)
{
int ButtonIndex = *(int*)(0x94641C + ActionSlot);
int B1 = *(int*)G_Client(clientIndex, 0x56B
;
int B2 = *(int*)G_Client(clientIndex, 0x56A0);
if ((B1 == ButtonIndex) || (B2 == ButtonIndex))
return true;
return false;
}
int G_Client(int client, int Mod = 0x00)
{
return 0x1780F28 + (0x5808 * client) + Mod;
}
enum ButtonsDPAD
{
Up = 0x34,
Down = 0x38,
Left = 0x3C,
Right = 0x40
};
int G_Client(int client, int Mod = 0x00)
{
return 0x1780F28 + (0x5808 * client) + Mod;
}
bool DetectButtonDPAD(int clientIndex, int ActionSlot)
{
int ButtonIndex = *(int*)(0x94641C + ActionSlot);
int B1 = *(int*)G_Client(clientIndex, 0x56B
;
int B2 = *(int*)G_Client(clientIndex, 0x56A0);
if ((B1 == ButtonIndex) || (B2 == ButtonIndex))
return true;
return false;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.