NexusDev

Developer of **** Hub
Messages
10
Reaction score
9
Points
3
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 :
You do not have permission to view link Log in or register now.


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

Release - Paranormal SPRX BETA | Best Free Menu + Client Control & More (Absolutely free) | CabConModding

check out that dope menu/thread​
 
Last edited:

vinectsi

Well-Known Member
Messages
3
Reaction score
2
Points
203
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.
 

vinectsi

Well-Known Member
Messages
3
Reaction score
2
Points
203
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
 

Dylan57richem

Veteran
Messages
48
Reaction score
33
Points
578
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
Okay thanks, and good night for you
 

NexusDev

Developer of **** Hub
Messages
10
Reaction score
9
Points
3
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
i have not seen that thread in my life if u look i explain it way better and easier my freind sent me just the main part of the code and i just fixed it all up figured it out myself dident think of looking it up
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,998
Reaction score
2,918
Points
1,053
i havent leeched from anything read the updated thread u -sniped- if u think i have that much delete my thread/account but if u do i want my money back i spent on premium if not i can actually take legal actions against this site
I'm not happy to see how you communicate with other member! No one will delete your account or your thread! I please you to use a nice language next time!

Regards,
CabCon.
 
Top