Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

ISOFX

Ultimate Modding Thread

Recommended Posts

ISOFX

C++ ULTIMATE MODDING THREAD BY ISOFX

Resources, Simple Functions & More!

 

Resources

Cutscenes

Blips

Pickups

Bone Index's

Screen FX

Speeches

Police Radio's

Fonts & Colours

Particle Effects

Scenarios

Sound Effects

Colours

Weapons & Hashes

Vehicles & Hashes

Peds & Hashes

Input Names

Natural Motion

Formations

Scripts

IPL's

Mobile Phones

Shake Cam Types

Notification Pictures

Driving Styles

Radio Names

 

My Favourite Functions -

Custom License Plate Code

40K Drop Code

Particle Effects Code

 

Simple Functions -

 

Kill Player -

PED::APPLY_DAMAGE_TO_PED(PLAYER::PLAYER_PED_ID(), 200);

Full Armour -

PED::ADD_ARMOUR_TO_PED(PLAYER::PLAYER_PED_ID(), 200);

Max Health -

PED::GET_PED_MAX_HEALTH(PLAYER::PLAYER_PED_ID());

Play Animation - Animations

STREAMING::REQUEST_ANIM_DICT("[email protected][email protected][email protected]_dance1");                    while (!STREAMING::HAS_ANIM_DICT_LOADED("[email protected][email protected][email protected]_dance1"))                        WAIT(0);                    AI::TASK_PLAY_ANIM(playerPed, "[email protected][email protected][email protected]_dance1", "pd_dance_01", 8.0, 0.0, -1, 0, 0, 0, 0, 0); 

Give Weapons - Weapon Hashes

WEAPON::GIVE_DELAYED_WEAPON_TO_PED(PLAYER::PLAYER_PED_ID(), 0xBFEFFF6D, 1, 0);

God Mode -

ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), true);

Add Blip for Bodyguard or Ped etc -

Any Blip1;Blip1 = UI::ADD_BLIP_FOR_ENTITY(YourPedOrBodyguardName);UI::SET_BLIP_AS_FRIENDLY(Blip1, true);

Spawn Ped - Models

Hash model = GAMEPLAY::GET_HASH_KEY("a_c_chimp");	if (STREAMING::IS_MODEL_IN_CDIMAGE(model) && STREAMING::IS_MODEL_VALID(model))	{		STREAMING::REQUEST_MODEL(model);		while (!STREAMING::HAS_MODEL_LOADED(model))			WAIT(0);		Ped spawnedPed = PED::CREATE_PED(26, model, 0.0, 0.0, 0.0, 0.0, false, true);		STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(model);	}

Default Variation -

PED::SET_PED_DEFAULT_COMPONENT_VARIATION(PLAYER::PLAYER_PED_ID()); 

Skip Radio Forward -

if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()) && PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), 0))AUDIO::SKIP_RADIO_FORWARD(); 

Add Cash -

for (int i = 0; i < 3; i++){char statNameFull[32];sprintf_s(statNameFull, "SP%d_TOTAL_CASH", i);Hash hash = GAMEPLAY::GET_HASH_KEY(statNameFull);int val;STATS::STAT_GET_INT(hash, &val, -1);val += 1000000;STATS::STAT_SET_INT(hash, val, 1);}

Wanted Up & Down -

// Wanted Up	PLAYER::SET_PLAYER_WANTED_LEVEL(player, PLAYER::GET_PLAYER_WANTED_LEVEL(player) + 1, 0);PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(player, 0);// Wanted DownPLAYER::SET_PLAYER_WANTED_LEVEL(player, PLAYER::GET_PLAYER_WANTED_LEVEL(player) - 1, 0);PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(player, 0);

Enable Mobile Radio -

AUDIO::SET_MOBILE_RADIO_ENABLED_DURING_GAMEPLAY(true);

Clear Ped Tasks -

AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());

Load IPL's (North Yankton, Red Carpet etc) - IPL's

STREAMING::REQUEST_IPL("redCarpet");

Explode Player -

Vector3 GetPlayerCoords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID());FIRE::ADD_EXPLOSION(GetPlayerCoords.X, GetPlayerCoords.Y, GetPlayerCoords.Z, 1, 10f, true, false, 10f);

Start Screen Effect - Screen FX

GRAPHICS::_START_SCREEN_EFFECT("", 5000, false);

OTHER FUNCTIONS -

Notification Above Map:

void NotificationAboveMap ( char * msg )  {         UI :: _0x202709F4C58A0424 (( DWORD *)  "STRING" );         UI :: _ADD_TEXT_COMPONENT_STRING ( msg );         UI :: _0x2ED7843F8F801023 ( FALSE , FALSE );}

An example of using it is like this:

NotificationAboveMap("GTAForums"); 

Displaying Help Text: (jedijosh920) - Inputs

void DisplayHelpTextThisFrame(char* text){   UI::_SET_TEXT_COMPONENT_FORMAT("STRING");   UI::_ADD_TEXT_COMPONENT_STRING(text);   UI::_0x238FFE5C7B0498A6(0, 0, 1, -1);}

An example of using it is like this:

DisplayHelpTextThisFrame("GTAForums"); 

INI FILES TUTORIAL: LINK

 

ISOFX : Ultimate Modding Thread.

 

If You need any help on modding (C++/C#) add me on Skype.

 

Skype: isofxyt

 

Enjoy!

Edited by ISOFX
  • Like 25

Share this post


Link to post
Share on other sites
Rooster Mods

Thank you. Nice Job :)

Share this post


Link to post
Share on other sites
GRANDHEIST

Nice! :lol: Can you add list of Input_context and the rest found here Common.rpf/data/controls/settings.meta

 

 

i only know Input_Context and i would need to know rest of them..

Edited by GRANDHEIST

Share this post


Link to post
Share on other sites
GRANDHEIST

 

 

 

here is something if you want to add :)

 

list of input names:

 

http://pastebin.com/LbkTK5WX

Expired. Upload it again.

 

It's still up. He just had extra characters in the link: http://pastebin.com/LbkTK5WX

 

Oh he had a space in there, thanks for telling me Tustin. How comes you dont upload videos regularly? You upload like once a month. Nice Videos btw :D

 

Oh sorry! :) Well good that you got it anyway!

Share this post


Link to post
Share on other sites
TragicMods

nvm

Edited by TragicMods

Share this post


Link to post
Share on other sites
Hump

So..do you know how to do Money drop?

Share this post


Link to post
Share on other sites
ISOFX

So..do you know how to do Money drop?

 

Credit to Unknown_Modder for this:

void CashDrop(int pedHandle, char* CashModel, int Value){	Vector3 coords = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(pedHandle, 0.0f, 0.0f, 1.0f);	int CashHash = GET_HASH_KEY(CashModel);	int PickupHash = GET_HASH_KEY("PICKUP_MONEY_CASE");	REQUEST_MODEL(CashHash);	while (!HAS_MODEL_LOADED(CashHash)) WAIT(0);	CREATE_AMBIENT_PICKUP(PickupHash, coords.x, coords.y, coords.z, 0, Value, CashHash, false, true);	SET_MODEL_AS_NO_LONGER_NEEDED(CashHash);}

To use it do this:

CashDrop(PLAYER::PLAYER_PED_ID(), "prop_alien_egg_01", 2000); 

MAKE SURE YOU LOOP IT OR IT WILL ONLY SPAWN ONE BAG. also change "prop_alien_egg_01" to whatever object you want. find a whole list of objects here: http://ecb2.biz/releases/GTAV/lists/props.txt

 

Find more info here:

http://gtaforums.com/topic/820670-money-drops-c-code/

Edited by ISOFX

Share this post


Link to post
Share on other sites
alloc8or

Replace the Notification code with this:

void Notification(char* text){	UI::_SET_NOTIFICATION_TEXT_ENTRY("STRING");	UI::_ADD_TEXT_COMPONENT_STRING3(text);	UI::_DRAW_NOTIFICATION(0, 1); // if first param = 1, the message flashes 1 or 2 times}

Make sure that's included in natives.h:

static void _SET_NOTIFICATION_TEXT_ENTRY(char* type) { invoke<Void>(0x202709F4C58A0424, type); } // 0x202709F4C58A0424 0x574EE85C
static void _ADD_TEXT_COMPONENT_STRING3(char* text) { invoke<Void>(0x5F68520888E69014, text); } // 0x5F68520888E69014 0x0829A799
static void _DRAW_NOTIFICATION(BOOL blink, BOOL p1) { invoke<Void>(0x2ED7843F8F801023, blink, p1); } // 0x2ED7843F8F801023 0x08F7AF78

Edited by Unknown_Modder

Share this post


Link to post
Share on other sites
Mr.Arrow

did anyone find the ability to deploy flares for the aircraft?

 

It was on last gen xbox 360 and ps3 but for some reasons,R* patch disable the flares ( Only AI can use flares and this is for military aircraft only)

 

Current gen doesn't have flares, even the AI can't use it when being lock by missles.

Edited by Cyberzone2

Share this post


Link to post
Share on other sites
ISOFX

Thread Updated.

- Added More Resources.

- Made Thread Look Better

- Added Help Text Notification Tutorial [Credit to jedijosh920]

 

If you want anything else to be in here comment below and ill do my best to get it up here :)

Enjoy :)

Edited by ISOFX

Share this post


Link to post
Share on other sites
ragingh0m0

ENTITY::SET_ENTITY_INVINCIBLE(player, (true == true) ? (1) ? (TRUE) ? (TRUE == TRUE) : (TRUE) : TRUE : (TRUE ? TRUE : TRUE));

Share this post


Link to post
Share on other sites
qiangqiang101

do you know what is the asset for these ptfx? "ent_amb_shower_steam" and "ent_amb_shower"

 

I found this code on ob_mp_shower_med.c4 but didn't get their asset

void sub_4fdf9() {    l_19D = GRAPHICS::START_PARTICLE_FX_LOOPED_AT_COORD("ent_amb_shower", g_256BD8._f51, g_256BD8._f54, 1.0, 0, 0, 0, 1);    l_19E = GRAPHICS::START_PARTICLE_FX_LOOPED_AT_COORD("ent_amb_shower_steam", g_256BD8._f57, g_256BD8._f5A, 1.0, 0, 0, 0, 1);    if ((sub_4fe9a(g_256BD8._f18) == 4) || (sub_4fe9a(g_256BD8._f18) == 5)) {        AUDIO::PLAY_SOUND_FROM_ENTITY(g_256BD8._f17, "GTAO_MP_APARTMENT_SHOWER_PLASTIC_MASTER", PLAYER::PLAYER_PED_ID(), 0, 0, 0);    } else {        AUDIO::PLAY_SOUND_FROM_ENTITY(g_256BD8._f17, "MP_APARTMENT_SHOWER_MASTER", PLAYER::PLAYER_PED_ID(), 0, 0, 0);    }    g_256BD8._f4 = 1;}

Share this post


Link to post
Share on other sites
ISOFX

@qiangqiang101

Yeah, i found a lot of particles but i cba to find their assets but there aren't many assets so i would try some obvious ones, i cant remember the name of the water splash (small) particle is but i would try that asset, or try some other water particle assets.
Sorry for late reply, haven't been on GTA5-Mods or GTAForums in a while.
Edited by ISOFX

Share this post


Link to post
Share on other sites
ghost30812

Bro u did a good job with this thread it helped me alot when i was little. Lets trade Tomorrow if ya know what i mean ;)

Share this post


Link to post
Share on other sites
sollaholla

Is there a way to create a "search area" on the map, kind of like the Vinewood Souvenirs mission?

Edited by sollaholla

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.