About This File
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(), ¤tWeapon, 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now