Search the Community

Showing results for tags 'coding'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Forum Rules
    • Introduce Yourself
    • Just Say Hi
  • Heret!cMod Discussion
    • Feature Requests
    • Bug Reports
    • Tell Us What You Think
  • Grand Theft Auto V
    • Source Code Releases
    • Modding Resources
    • Modding Help

Categories

  • Files

Found 3 results

  1. coding

    This is a really simple method for creating explosive bullets in your mod menu. Run this in a looped function. GAMEPLAY::SET_EXPLOSIVE_AMMO_THIS_FRAME(PLAYER::PLAYER_ID());
  2. This menu base was developed by: 2Much4U ... This is a great starting place for those of you who wish to create you own menu. Key Features Use of native invoker Infinite scrolling Infinite options Infinite submenus Auto-adjusting background Last submenu and option remembrance Self updating CREDITS: Awakening - Much of the original design for the menu Lachie - Coordinates for right sided design Kurt - Native Invoker Tustin - Code for instructions Kryptus - Sexy notifications and miscellaneous help Sabotage - Native address finder Proditaki - Native table address finder and miscellaneous help GTAMenuBase13.zip
  3. coding

    This is how you can teleport a player to your current location. set a bool somewhere like so bool TeleportingToMe = false; Call the function "TeleportToMe" in your menu void TeleportToMe () { HERETICMOD::MENU::SetupTimer(2000); int Me = PLAYER::PLAYER_PED_ID(); int selectedPed = PLAYER::GET_PLAYER_PED(selectedPlayer); Vector3 MyPosition = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(Me, 0.0, 0.0, 0.0); char* dict = "move_f@sexy@a"; char* anim = "idle"; STREAMING::REQUEST_ANIM_DICT(dict); if (STREAMING::HAS_ANIM_DICT_LOADED(dict)) { int sceneID = NETWORK::NETWORK_CREATE_SYNCHRONISED_SCENE(MyPosition.x, MyPosition.y, MyPosition.z, 0, 0, 0, 2, 0, 1, 1.0f, 0.0f, 1.0f); NETWORK::NETWORK_ADD_PED_TO_SYNCHRONISED_SCENE(selectedPed, sceneID, dict, anim, 8.0f, -8.0f, 65536, 0, 1000, 0); NETWORK::NETWORK_START_SYNCHRONISED_SCENE(sceneID); TeleportingToMe = true; } STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_rcbarry2"); GRAPHICS::_SET_PTFX_ASSET_NEXT_CALL("scr_rcbarry2"); GRAPHICS::START_PARTICLE_FX_NON_LOOPED_ON_ENTITY("scr_clown_appears", selectedPed, 0.0, 0.0, -0.5, 0.0, 0.0, 0.0, 1.0, false, false, false); HERETICMOD::MENU::drawNotification("~b~Teleported To You!"); } Then we will loop the function in our active hook if ( TeleportingToMe == true ) { if ( HERETICMOD::MENU::IsTimerReady() ) { for ( int i = 0; i < 10; i++ ) { AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::GET_PLAYER_PED(selectedPlayer)); } HERETICMOD::MENU::drawNotification("Cleared Players Task"); TeleportingToMe = false; HERETICMOD::MENU::ResetTimer(); } } Hope this helps. If you have a revised or a better version then please do post it.