1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial How To Add Glare Header To Menu Base

Discussion in 'Grand Theft Auto 5 PS3' started by NexusDev, Sep 4, 2016.

  1. NexusDev

    NexusDev Developer of Porn Hub

    10
    10
    3
    Credits:
    12
    upload_2016-9-4_13-30-39.png
    • 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;
    
    upload_2016-9-4_13-36-27.png
    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);
    }
    
    upload_2016-9-4_13-37-40.png

    Code 3: Okay go to where u title/rectangle or what ever is located
    upload_2016-9-4_13-39-0.png
    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
    upload_2016-9-4_13-41-15.png
    Now Ur Done Just Build ur Project Hope i helped if you need any help add my skype
    NexusDeveloper :grinning:

    All of my Natives : Please login or register to view links or downloads!

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

    well apparently i have to give credits to somebody's thread iv never seen in my life dont change my thread please and add credits iv never seen the thread in my life i got the main part of the code of a friend as he told me to figure it out so i did for him and i thought id make a tutorial so i never leeched or what ever i just explained it and fixed the code op like a freind wanted me to so please ask me before you change my thread @CabCon ik your the site owner and trying to help me out but i never leeched anything of that thread so there for i dont need to leave credits and i explained it way better then tha thread anyways

    apperently credits go to - Kryptus

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

    Please login or register to view links or downloads!

    check out that dope menu/thread​
     
    Last edited: Nov 21, 2016
  2. Harry

    Harry Dev Since 10 Years Old

    624
    385
    63
    Credits:
    1,494
    Sick. Thank you :heart:
     
  3. NexusDev

    NexusDev Developer of Porn Hub

    10
    10
    3
    Credits:
    12
    Thanks.
     
  4. NexusDev

    NexusDev Developer of Porn Hub

    10
    10
    3
    Credits:
    12
    If you need natives i just updated the post and added my natives
     
  5. Harry

    Harry Dev Since 10 Years Old

    624
    385
    63
    Credits:
    1,494
    Alrighty. Once I'm done with my bo2 sprx ima move into gtav :grinning:
     
  6. VerTical

    VerTical Trial Moderator Staff Member Donator

    535
    785
    93
    Credits:
    1,408
    Nice Tutorial :grinning:
     
  7. NexusDev

    NexusDev Developer of Porn Hub

    10
    10
    3
    Credits:
    12
    Thank You. :grinning:
     
  8. VerTical

    VerTical Trial Moderator Staff Member Donator

    535
    785
    93
    Credits:
    1,408
    Np :grinning:
     
  9. Dylan57richem

    Dylan57richem Member

    9
    3
    3
    Credits:
    86
    None credit for Kryptus? Tssss
     
  10. vinectsi

    vinectsi New Member

    3
    1
    3
    Credits:
    10
    Since im using a RGH, and im using 2much4u's base and i'm getting an error saying that 'round' is undefined? any ideas? thanks.
     
  11. vinectsi

    vinectsi New Member

    3
    1
    3
    Credits:
    10
    FIXED! dw :grinning: great post bud!
     
  12. BaDSooD

    BaDSooD Old CCM Member

    616
    359
    63
    Credits:
    29
    Realy nice thread :grinning:
     
    CabCon likes this.
  13. Dylan57richem

    Dylan57richem Member

    9
    3
    3
    Credits:
    86
    Really nice leech thread whitout credits :smile:
     
  14. BaDSooD

    BaDSooD Old CCM Member

    616
    359
    63
    Credits:
    29
    Leech or not the thread is good, and, it's not the question.
     
  15. vinectsi

    vinectsi New Member

    3
    1
    3
    Credits:
    10
    he's not really taking credit, he's showing people how to do the glare effect lol. Ya'll so mad cause its basically released to the public now lol
     
    CabCon likes this.
  16. Dylan57richem

    Dylan57richem Member

    9
    3
    3
    Credits:
    86
    Maybe, but none credits added in this thread?
    This is the original thread posted on NGU by Kryptus:

    Please login or register to view links or downloads!
     
    CabCon likes this.
  17. CabCon

    CabCon Head Administrator Staff Member

    2,563
    1,485
    113
    Credits:
    25,676
    If this is correct, we should add credits to him.
     
  18. Dylan57richem

    Dylan57richem Member

    9
    3
    3
    Credits:
    86
    Compare the thread NGU at thid thread and You will see that it is the same
     
  19. BaDSooD

    BaDSooD Old CCM Member

    616
    359
    63
    Credits:
    29
    The problem is going to be resolved(I have seen the CabCon reply)
    If you see a thread who is 100% the thread of an other person, send a report with the reason and a link to the original thread :grinning:

    Have a great night
     
    CabCon likes this.
  20. Dylan57richem

    Dylan57richem Member

    9
    3
    3
    Credits:
    86
    Okay thanks, and good night for you
     

Share This Page