Jump to content

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.0

See changelog

Released

No changelog available for this version.

User Feedback

Recommended Comments

Madrok

Members

Does this lantern give off more light than the regular lantern?

Create an account or sign in to comment