//In Globals
typedef void (__cdecl *lpSetConsoleVariable)(unsigned long console,char* szVal);
lpSetConsoleVariable SetConsoleVariable;
//In Present or Endscene
void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
SetConsoleVariable = (lpSetConsoleVariable)(0x0484BC0);
if(GetAsyncKeyState(VK_INSERT)&1){
ptc =! ptc;
}
if(ptc){
SetConsoleVariable(0x8003F0,"ShowFps 1");
} else {
SetConsoleVariable(0x8003F0,"ShowFps 0");
}
}

//In Globals
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)0x00485E10;
//In Present or Endscene
void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
if(GetAsyncKeyState(VK_INSERT)&1){
ptc =! ptc;
}
if(ptc){
pRunConsoleCommand("ShowFPS 1");
} else {
pRunConsoleCommand("ShowFPS 0");
}
}


