PS3 Tutorial How To Add Glare Header To Menu Base

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

RealCFW

Avid Poster
Determined Poster
Active Member
Sep 12, 2016
903
758
163
uk




Hello CC,



  • 1st Go To Ur Menu Source Code
  • 2nd Add This Code Into Ur Menu
Menu Base Used For Presentation : 2much4u
Code 1:
Code:
add These 1st:
int gGlareHandle;
int scaleform;
float gGlareDir;
float GlareX = 1.10f;
float GlareY = 0.41f;
float Glarewidth = 0.71f;
float Glareheight = 0.73f;


Code 2 [Main]
Code:
float conv360(float base, float min, float max) {

float fVar0;
if (min == max) return min;
fVar0 = max - min;
base -= round(base - min / fVar0) * fVar0;
if (base < min) base += fVar0;
return base;
}

void drawGlare(float PositionX = GlareX, float ositionY = GlareY, float width = Glarewidth, float height = Glareheight, int r = 255, int g = 255, int b = 200)
{
gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE("MP_MENU_GLARE");
//gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE_INSTANCE("MP_MENU_GLARE");
// Get Player Camera Rotation
Vector3 rot = CAM::_GET_GAMEPLAY_CAM_ROT(2);
// Calculate Glare Rotation
float dir = conv360(rot.z, 0, 360);
// Check if custom rotation is necessary for the rotation component.
if ((gGlareDir == 0 || gGlareDir - dir > 0.5) || gGlareDir - dir < -0.5)
{
// Set global variable to current direction
gGlareDir = dir;
// Open Data Slot Function
GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION(gGlareHandle, "SET_DATA_SLOT");
// Set Data Slot Value/Parameter
GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_FLOAT(gGlareDir);
// Close Data Slot Function
GRAPHICS::_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
}
// Draw Scaleform
//GRAPHICS::_SET_SCREEN_DRAW_POSITION(76, 84);
//GRAPHICS::_0x76C641E4(-0.0755f, -0.0755f, 0.f, 0.f);
GRAPHICS::smile:RAW_SCALEFORM_MOVIE(gGlareHandle, GlareX, GlareY, Glarewidth, Glareheight, r, g, b, 255, 0);
GRAPHICS::_0x3FE33BD6();

//GRAPHICS::smile:RAW_SCALEFORM_MOVIE_FULLSCREEN(gGlareHandle, 255, 255, 255, 255, 0);
}



Code 3: Okay go to where u title/rectangle or what ever is located

So Myne is right there okay
if need change the coords and location and **** to what urs is edit it to ur desire
so add this code to it :
Code:
drawGlare(menuXCoord, 0.1410f, 0.190f, 0.034f, 255, 255, 255);

ok so it should look like this

Now Ur Done Just Build ur Project Hope i helped if you need any help add my skype
NexusDeveloper

All of my Natives : Natives

Look Forward To More GTA C++ Stuff in the future



and if you get a error with "round"
just add this
#include <math.h>
Thanks. and feel free to leave a like on the thread.


Credits go to - RealCFW.
 
  • Like
Reactions: Douglas Oliveira
Thank you Realcfw :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Chat Bot:
    QM|T has joined the room.
  • Chat Bot:
    Diabloron is our newest member. Welcome!
  • Chat Bot:
    mr kiki is our newest member. Welcome!
  • Chat Bot:
    NorwayVon is our newest member. Welcome!
  • Chat Bot:
    QM|T has joined the room.
  • Chat Bot:
    cynthia is our newest member. Welcome!
  • Chat Bot:
    LilBoat100 has joined the room.
  • @ LilBoat100:
    been a min
  • @ LilBoat100:
    i have uncharted 3, (digital) my disc aint working for shit lol, so whenever i try finding "LAN Party" its not on digital, only on disc. so if theres like a eboot maybe, or something i can do to activate the LAN Party to play offline, that shit would be dope bro. anyone.
  • @ LilBoat100:
    or maybe if i download it as iso? idk
  • Chat Bot:
    tazl is our newest member. Welcome!
  • Chat Bot:
    LilBoat100 has joined the room.
  • Chat Bot:
    QM|T has joined the room.
  • Chat Bot:
    salih01barwari has left the room.
  • Chat Bot:
    ImMike is our newest member. Welcome!
  • Chat Bot:
    ImMike has posted a new reply in the thread "PS4 v3.50 Neighborhood".
  • Chat Bot:
    QM|T has joined the room.
  • Chat Bot:
    nhandinhkeonhacaidee is our newest member. Welcome!
  • Chat Bot:
    go88ttacom is our newest member. Welcome!
  • Chat Bot:
    Christo has joined the room.
  • Chat Bot:
    hitclub69com1 is our newest member. Welcome!
  • Chat Bot:
    toli is our newest member. Welcome!
  • Chat Bot:
    QM|T has joined the room.
  • Chat Bot:
    Christo has joined the room.
      Chat Bot: Christo has joined the room.