chadbell

Member
Messages
40
Reaction score
12
Points
18
Great tut I do Beleave you would be great at a full tut buddy but with 1.3 of to much base or somthing thanks for this tho
 

jdfsk:slqm

New Member
Messages
1
Reaction score
0
Points
0
View attachment 525
  • 1st Go To Ur Menu Source Code
  • 2nd Add This Code Into Ur Menu
Menu Base Used For Presentation : 2much4u
Code 1:
Code:
[/INDENT]
[INDENT]add These 1st:[/INDENT]
[INDENT]int gGlareHandle;[/INDENT]
[INDENT]int scaleform;[/INDENT]
[INDENT]float gGlareDir;[/INDENT]
[INDENT]float GlareX = 1.10f;[/INDENT]
[INDENT]float GlareY = 0.41f;[/INDENT]
[INDENT]float Glarewidth = 0.71f;[/INDENT]
[INDENT]float Glareheight = 0.73f;[/INDENT]
[INDENT]
Code 2 [Main]​
Code:
[/INDENT]
[INDENT]float conv360(float base, float min, float max) {[/INDENT]
[INDENT][/INDENT]
[INDENT]    float fVar0;[/INDENT]
[INDENT]    if (min == max) return min;[/INDENT]
[INDENT]    fVar0 = max - min;[/INDENT]
[INDENT]    base -= round(base - min / fVar0) * fVar0;[/INDENT]
[INDENT]    if (base < min) base += fVar0;[/INDENT]
[INDENT]    return base;[/INDENT]
[INDENT]}[/INDENT]
[INDENT][/INDENT]
[INDENT]void drawGlare(float PositionX = GlareX, float ositionY = GlareY, float width = Glarewidth, float height = Glareheight, int r = 255, int g = 255, int b = 200)[/INDENT]
[INDENT]{[/INDENT]
[INDENT]    gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE("MP_MENU_GLARE");[/INDENT]
[INDENT]    //gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE_INSTANCE("MP_MENU_GLARE");[/INDENT]
[INDENT]    // Get Player Camera Rotation[/INDENT]
[INDENT]    Vector3 rot = CAM::_GET_GAMEPLAY_CAM_ROT(2);[/INDENT]
[INDENT]    // Calculate Glare Rotation[/INDENT]
[INDENT]    float dir = conv360(rot.z, 0, 360);[/INDENT]
[INDENT]    // Check if custom rotation is necessary for the rotation component.[/INDENT]
[INDENT]    if ((gGlareDir == 0 || gGlareDir - dir > 0.5) || gGlareDir - dir < -0.5)[/INDENT]
[INDENT]    {[/INDENT]
[INDENT]        // Set global variable to current direction[/INDENT]
[INDENT]        gGlareDir = dir;[/INDENT]
[INDENT]        // Open Data Slot Function[/INDENT]
[INDENT]        GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION(gGlareHandle, "SET_DATA_SLOT");[/INDENT]
[INDENT]        // Set Data Slot Value/Parameter[/INDENT]
[INDENT]        GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_FLOAT(gGlareDir);[/INDENT]
[INDENT]        // Close Data Slot Function[/INDENT]
[INDENT]        GRAPHICS::_POP_SCALEFORM_MOVIE_FUNCTION_VOID();[/INDENT]
[INDENT]    }[/INDENT]
[INDENT]    // Draw Scaleform[/INDENT]
[INDENT]    //GRAPHICS::_SET_SCREEN_DRAW_POSITION(76, 84);[/INDENT]
[INDENT]    //GRAPHICS::_0x76C641E4(-0.0755f, -0.0755f, 0.f, 0.f);[/INDENT]
[INDENT]    GRAPHICS::smile:RAW_SCALEFORM_MOVIE(gGlareHandle, GlareX, GlareY, Glarewidth, Glareheight, r, g, b, 255, 0);[/INDENT]
[INDENT]    GRAPHICS::_0x3FE33BD6();[/INDENT]
[INDENT][/INDENT]
[INDENT]    //GRAPHICS::smile:RAW_SCALEFORM_MOVIE_FULLSCREEN(gGlareHandle, 255, 255, 255, 255, 0);[/INDENT]
[INDENT]}[/INDENT]
[INDENT]
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:
[/INDENT]
[INDENT]drawGlare(menuXCoord, 0.1410f, 0.190f, 0.034f, 255, 255, 255);[/INDENT]
[INDENT]
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 :grinning:
All of my Natives :
Please, Log in or Register to view URLs content!
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​
check out that dope menu/thread​
umm i can't seem to find GRAPHICS::smile:RAW_SCALEFORM_MOVIE in your natives no one'll respond but i tried thx in advance if you do guys <3
 
Top