CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Join the GTA5 Modding Facebook Group!
Join our facebook group now and discuss, request and browse the latest modded GTA5 Mods
Forums
Gaming
Grand Theft Auto 5
Grand Theft Auto 5 PS3
How To Add Glare Header To Menu Base
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NexusDev" data-source="post: 11499" data-attributes="member: 14228"><p>[ATTACH=full]525[/ATTACH]</p><ul> <li data-xf-list-type="ul">1st Go To Ur Menu Source Code</li> <li data-xf-list-type="ul">2nd Add This Code Into Ur Menu</li> </ul><p>Menu Base Used For Presentation : 2much4u</p><p>Code 1:</p><p style="margin-left: 20px">[CODE]</p> <p style="margin-left: 20px">add These 1st:</p> <p style="margin-left: 20px">int gGlareHandle;</p> <p style="margin-left: 20px">int scaleform;</p> <p style="margin-left: 20px">float gGlareDir;</p> <p style="margin-left: 20px">float GlareX = 1.10f;</p> <p style="margin-left: 20px">float GlareY = 0.41f;</p> <p style="margin-left: 20px">float Glarewidth = 0.71f;</p> <p style="margin-left: 20px">float Glareheight = 0.73f;</p> <p style="margin-left: 20px">[/CODE]</p> <p style="margin-left: 20px">[ATTACH=full]526[/ATTACH]</p><p style="margin-left: 20px">Code 2 [Main]</p> <p style="margin-left: 20px">[CODE]</p> <p style="margin-left: 20px">float conv360(float base, float min, float max) {</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px"> float fVar0;</p> <p style="margin-left: 20px"> if (min == max) return min;</p> <p style="margin-left: 20px"> fVar0 = max - min;</p> <p style="margin-left: 20px"> base -= round(base - min / fVar0) * fVar0;</p> <p style="margin-left: 20px"> if (base < min) base += fVar0;</p> <p style="margin-left: 20px"> return base;</p> <p style="margin-left: 20px">}</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">void drawGlare(float PositionX = GlareX, float ositionY = GlareY, float width = Glarewidth, float height = Glareheight, int r = 255, int g = 255, int b = 200)</p> <p style="margin-left: 20px">{</p> <p style="margin-left: 20px"> gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE("MP_MENU_GLARE");</p> <p style="margin-left: 20px"> //gGlareHandle = GRAPHICS::REQUEST_SCALEFORM_MOVIE_INSTANCE("MP_MENU_GLARE");</p> <p style="margin-left: 20px"> // Get Player Camera Rotation</p> <p style="margin-left: 20px"> Vector3 rot = CAM::_GET_GAMEPLAY_CAM_ROT(2);</p> <p style="margin-left: 20px"> // Calculate Glare Rotation</p> <p style="margin-left: 20px"> float dir = conv360(rot.z, 0, 360);</p> <p style="margin-left: 20px"> // Check if custom rotation is necessary for the rotation component.</p> <p style="margin-left: 20px"> if ((gGlareDir == 0 || gGlareDir - dir > 0.5) || gGlareDir - dir < -0.5)</p> <p style="margin-left: 20px"> {</p> <p style="margin-left: 20px"> // Set global variable to current direction</p> <p style="margin-left: 20px"> gGlareDir = dir;</p> <p style="margin-left: 20px"> // Open Data Slot Function</p> <p style="margin-left: 20px"> GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION(gGlareHandle, "SET_DATA_SLOT");</p> <p style="margin-left: 20px"> // Set Data Slot Value/Parameter</p> <p style="margin-left: 20px"> GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_FLOAT(gGlareDir);</p> <p style="margin-left: 20px"> // Close Data Slot Function</p> <p style="margin-left: 20px"> GRAPHICS::_POP_SCALEFORM_MOVIE_FUNCTION_VOID();</p> <p style="margin-left: 20px"> }</p> <p style="margin-left: 20px"> // Draw Scaleform</p> <p style="margin-left: 20px"> //GRAPHICS::_SET_SCREEN_DRAW_POSITION(76, 84);</p> <p style="margin-left: 20px"> //GRAPHICS::_0x76C641E4(-0.0755f, -0.0755f, 0.f, 0.f);</p> <p style="margin-left: 20px"> GRAPHICS::smile:RAW_SCALEFORM_MOVIE(gGlareHandle, GlareX, GlareY, Glarewidth, Glareheight, r, g, b, 255, 0);</p> <p style="margin-left: 20px"> GRAPHICS::_0x3FE33BD6();</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px"> //GRAPHICS::smile:RAW_SCALEFORM_MOVIE_FULLSCREEN(gGlareHandle, 255, 255, 255, 255, 0);</p> <p style="margin-left: 20px">}</p> <p style="margin-left: 20px">[/CODE]</p> <p style="margin-left: 20px">[ATTACH=full]527[/ATTACH]</p><p style="margin-left: 20px"></p> <p style="margin-left: 20px">Code 3: Okay go to where u title/rectangle or what ever is located</p> <p style="margin-left: 20px">[ATTACH=full]528[/ATTACH]</p> <p style="margin-left: 20px">So Myne is right there okay</p> <p style="margin-left: 20px">if need change the coords and location and **** to what urs is edit it to ur desire</p> <p style="margin-left: 20px">so add this code to it :</p> <p style="margin-left: 20px">[CODE]</p> <p style="margin-left: 20px">drawGlare(menuXCoord, 0.1410f, 0.190f, 0.034f, 255, 255, 255);</p> <p style="margin-left: 20px">[/CODE]</p> <p style="margin-left: 20px">ok so it should look like this</p> <p style="margin-left: 20px">[ATTACH=full]529[/ATTACH]</p> <p style="margin-left: 20px">Now Ur Done Just Build ur Project Hope i helped if you need any help add my skype</p> <p style="margin-left: 20px">NexusDeveloper <img src="/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg" class="smilie" loading="lazy" alt=":grinning:" title="Grinning :grinning:" data-shortname=":grinning:" /></p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">All of my Natives : <a href="http://www.mediafire.com/download/qs253xksmavdc51/Natives.h" target="_blank">Natives</a></p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">Look Forward To More GTA C++ Stuff in the future</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">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 [USER=1]@CabCon[/USER] 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</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">apperently credits go to - Kryptus</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">and if you get a error with "round"</p> <p style="margin-left: 20px">just add this</p> <p style="margin-left: 20px">#include <math.h></p> <p style="margin-left: 20px">Thanks. and leave a like on the thread</p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px"><a href="https://cabconmodding.com/threads/paranormal-sprx-beta-best-free-menu-client-control-more-absolutely-free.1657/#post-15095" target="_blank">Release - Paranormal SPRX BETA | Best Free Menu + Client Control & More (Absolutely free) | CabConModding</a></p> <p style="margin-left: 20px"></p> <p style="margin-left: 20px">check out that dope menu/thread</p> </p> </p></blockquote><p></p>
[QUOTE="NexusDev, post: 11499, member: 14228"] [ATTACH=full]525[/ATTACH] [LIST] [*]1st Go To Ur Menu Source Code [*]2nd Add This Code Into Ur Menu [/LIST] Menu Base Used For Presentation : 2much4u Code 1: [INDENT][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] [ATTACH=full]526[/ATTACH] [INDENT]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] [ATTACH=full]527[/ATTACH] [INDENT] Code 3: Okay go to where u title/rectangle or what ever is located [ATTACH=full]528[/ATTACH] 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); [/CODE] ok so it should look like this [ATTACH=full]529[/ATTACH] Now Ur Done Just Build ur Project Hope i helped if you need any help add my skype NexusDeveloper :grinning: All of my Natives : [URL='http://www.mediafire.com/download/qs253xksmavdc51/Natives.h']Natives[/URL] 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 [USER=1]@CabCon[/USER] 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 [url="https://cabconmodding.com/threads/paranormal-sprx-beta-best-free-menu-client-control-more-absolutely-free.1657/#post-15095"]Release - Paranormal SPRX BETA | Best Free Menu + Client Control & More (Absolutely free) | CabConModding[/url] check out that dope menu/thread[/INDENT][/INDENT][/INDENT] [/QUOTE]
Verification
Post reply
Forums
Gaming
Grand Theft Auto 5
Grand Theft Auto 5 PS3
How To Add Glare Header To Menu Base
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top