Hi Everyone,
So I have installed the handcuff mod and it works, have changed it so trader dont get cuffed as well, what I have done is allowed heros with +20000 humanity and bandits with -10000 humanity to be able to cuff, unfortunately they show the same "Investigation Menu" in the scroll options, what I want is 1 for heros and 1 for bandits, first script is what I have, second is what might work, what I need to know is will it work?
Current Script:
if ((player getVariable"humanity") >= 20000 or (player getVariable"humanity") >= -10000) then { if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then { if (s_player_arrest < 0) then { s_player_arrest = player addaction ['<t color="#0074E8">' + "Investigation Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""]; }; } else { player removeAction s_player_arrest; s_player_arrest = -1; }; };
Looking at replacing it with this, but will it work?
if ((player getVariable"humanity") >= 20000 then { if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then { if (s_player_arrest < 0) then { s_player_arrest = player addaction ['<t color="#0074E8">' + "Investigation Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""]; }; } else ((player getVariable"humanity") <= 10000 then { if (_isMan and _isAlive and !inSafeZone and !_isZombie and !_isAnimal && !(_traderType in serverTraders)) then { if (s_player_arrest < 0) then { s_player_arrest = player addaction ['<t color="#0074E8">' + "Robbery Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""]; } else { player removeAction s_player_arrest; s_player_arrest = -1; }; };