Jump to content

noms || ANGRY

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

5 Neutral

About noms || ANGRY

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You also need to whitelist tazeragdoll.sqf through CfgRemoteExec.hpp
  2. noms || ANGRY

    License Menu

    Just a quick note here, you can easily have the menu skip over licenses you aleady have and only show licenses you don't have in the "Buy" menu by putting the following section inside he foreach loop in fn_licshop_update.sqf _displayName = M_CONFIG(getText,"Licenses",_x,"displayName"); _price = M_CONFIG(getNumber,"Licenses",_x,"price"); if (!(_price isEqualTo -1)) then { _buylic_list lbAdd format["%1 (£%2)",(localize _displayName),[_price] call life_fnc_numberText]; _buylic_list lbSetData [(lbSize _buylic_list)-1,_x]; _buylic_list lbSetValue [(lbSize _buylic_list)-1,_price]; _icon = M_CONFIG(getText,"Licenses",_x,"icon"); if (!(_icon isEqualTo "")) then { _buylic_list lbSetPicture [(lbSize _buylic_list)-1,_icon]; }; }; inside the following if() statement: if(!(call compile format ['license_%1_%2',_side,_x])) then { }; so the end result would look like: { if(!(call compile format ['license_%1_%2',_side,_x])) then { _displayName = M_CONFIG(getText,"Licenses",_x,"displayName"); _price = M_CONFIG(getNumber,"Licenses",_x,"price"); if (!(_price isEqualTo -1)) then { _buylic_list lbAdd format["%1 (£%2)",(localize _displayName),[_price] call life_fnc_numberText]; _buylic_list lbSetData [(lbSize _buylic_list)-1,_x]; _buylic_list lbSetValue [(lbSize _buylic_list)-1,_price]; _icon = M_CONFIG(getText,"Licenses",_x,"icon"); if (!(_icon isEqualTo "")) then { _buylic_list lbSetPicture [(lbSize _buylic_list)-1,_icon]; }; }; }; } forEach _shopLicenses; and finally, move the following section ABOVE the foreach block: _side = switch (playerSide) do {case west:{"cop"}; case civilian:{"civ"}; case independent:{"med"};};
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.