Helpno name exploit

Posts 1–7 of 7 · Page 1 of 1
no name exploit
Hi. I have no clue about coding and need help getting something i can inject with my p2c hack to get a blank name ingame. ik the thing is public but i have 0 clue about coding.

edit:just realised wrong section rip
Code:
bool HideName(CUserCmd* pCmd, CPlayer* pLocal)
{
	if (Config->GetValue("developer", "developer.name.active").m_bValue)
	{
		ConVar* Nick = Interfaces.Cvar->FindVar("name");
		*(int*)((DWORD)&Nick->fnChangeCallback + 0xC) = NULL;
		if (Nick)
		{
			char chCommand[256];
			Nick->SetValue("\n");
		}
	}
	return false;
}
Quote Originally Posted by legit_player View Post
Code:
bool HideName(CUserCmd* pCmd, CPlayer* pLocal)
{
	if (Config->GetValue("developer", "developer.name.active").m_bValue)
	{
		ConVar* Nick = Interfaces.Cvar->FindVar("name");
		*(int*)((DWORD)&Nick->fnChangeCallback + 0xC) = NULL;
		if (Nick)
		{
			char chCommand[256];
			Nick->SetValue("\n");
		}
	}
	return false;
}
Copy pasta gone wrong, you aren't even using chCommand aswell as pCmd and pLocal.
Also, why would you return a bool if you aren't returning anything else than false?
Quote Originally Posted by WasserEsser View Post
Copy pasta gone wrong, you aren't even using chCommand aswell as pCmd and pLocal.
Also, why would you return a bool if you aren't returning anything else than false?
^^
umm, i added pCmd and pLocal cuz testing things. I didnt looked at it much just tested it if its working.
Quote Originally Posted by legit_player View Post
Code:
bool HideName(CUserCmd* pCmd, CPlayer* pLocal)
{
	if (Config->GetValue("developer", "developer.name.active").m_bValue)
	{
		ConVar* Nick = Interfaces.Cvar->FindVar("name");
		*(int*)((DWORD)&Nick->fnChangeCallback + 0xC) = NULL;
		if (Nick)
		{
			char chCommand[256];
			Nick->SetValue("\n");
		}
	}
	return false;
}
my 1337 coding skills are so good that i have 0 idea about how to use this fam. should i just paste this and name it a dll and inject or ? ty for replying tho


edit:nice name btw
Quote Originally Posted by LegitPlayerr View Post
my 1337 coding skills are so good that i have 0 idea about how to use this fam. should i just paste this and name it a dll and inject or ? ty for replying tho


edit:nice name btw

i dont think that giving a reputation for someones name makes them give you a free source.
But here you go lmao..

namehide source (made for you to understand easier u fucking paster):
Code:
 if (your_feature_gets_activated) {
            ConVar* name = pCvar->FindVar("name");
            *(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
            if (name) {
                name->SetValue("\n");
            }
        }
copy and paste that to your source then, if you dont have a convar class or you dont have the shit in it that i have here, you copy and paste this:
~~~~~~~~~~~~~~~
ConVar Class:
Code:
class ConVar
{
public:
    void SetValue(const char* value)
    {
        typedef void(__thiscall* OriginalFn)(void*, const char*); //typedef void(__thiscall* OriginalFn)(void*, const char*);
        return getvfunc<OriginalFn>(this, 14)(this, value);  //return getvfunc<OriginalFn>(this, 14)(this, value);

    }

    void SetValue(float value)
    {
        typedef void(__thiscall* OriginalFn)(void*, float);
        return getvfunc<OriginalFn>(this, 15)(this, value);
    }

    void SetValue(int value)
    {
        typedef void(__thiscall* OriginalFn)(void*, int);
        return getvfunc<OriginalFn>(this, 16)(this, value);
    }

    void SetValue(Color value)
    {
        typedef void(__thiscall* OriginalFn)(void*, Color);
        return getvfunc<OriginalFn>(this, 17)(this, value);
    }

    char* GetName()
    {
        typedef char*(__thiscall* OriginalFn)(void*);
        return getvfunc<OriginalFn>(this, 5)(this);
    }

    char* GetDefault()
    {
        return pszDefaultValue;
    }

    char pad_0x0000[0x4]; //0x0000
    ConVar* pNext; //0x0004 
    __int32 bRegistered; //0x0008 
    char* pszName; //0x000C 
    char* pszHelpString; //0x0010 
    __int32 nFlags; //0x0014 
    char pad_0x0018[0x4]; //0x0018
    ConVar* pParent; //0x001C 
    char* pszDefaultValue; //0x0020 
    char* strString; //0x0024 
    __int32 StringLength; //0x0028 
    float fValue; //0x002C 
    __int32 nValue; //0x0030 
    __int32 bHasMin; //0x0034 
    float fMinVal; //0x0038 
    __int32 bHasMax; //0x003C 
    float fMaxVal; //0x0040 
    void* fnChangeCallback; //0x0044
};//Size=0x0048
1 week has passed and no further replies have been made by the OP. Assuming solved.

/Closed.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us