Jump to content

Old Lantern 1.0.1

A mod to replace the normal lantern with the lantern that Arthur uses in the first mission.
   (0 reviews)

1 Screenshot

A mod to replace the normal lantern with the lantern that Arthur uses in the first mission.

 

Just put the asi file in the game directory. 

 

Some antiviruses flag this as a virus. This is a false positive. Please add this mod to the exclusions list if you use any of the following: Cylance, MaxSecure, and SecureAge.

 

Source code:

bool LanternGiven = false;

void Update()
{
	Hash currentWeapon = NULL;

	WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &currentWeapon, NULL, 0, NULL);

	if (currentWeapon == 0x4A59E501) 
	{
		WEAPON::GIVE_WEAPON_TO_PED(PLAYER::PLAYER_PED_ID(), 0xF62FB3A3, 0, true, true, -1, false, 0.5, 1.0, 0x2CD419DC, true, 0.5, NULL);
		WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), 0xF62FB3A3, true, 0, NULL, NULL);	
		LanternGiven = false;
	}
	if (currentWeapon == 0xA2719263 && LanternGiven == false)
	{
		WEAPON::GIVE_WEAPON_TO_PED(PLAYER::PLAYER_PED_ID(), 0x4A59E501, 0, false, true, -1, false, 0.5, 1.0, 0x2CD419DC, true, 0.5, NULL);
		LanternGiven = true;
	}
}

 

Edited by WesternGamer

What's New in Version 1.0.1   See changelog

Released

Fixed issue where players without the old lantern in their inventory are unable to use the mod. The mod will now give you the item upon attempting to use the normal lantern.

 Share

You may also like

  • More Stars (modified dark nights)
    By Yojimbo
       9235   12   0
  • Dark Nights
    By Alsharad
       50885   47   1
  • User Feedback

    Recommended Comments

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...