Wayne Posted May 23 Report Share Posted May 23 I am now using the 5.0 framework, does anybody know how to add virtual items to the loadouts for cops e.g. handcuffs etc Thanks. Quote Link to comment Share on other sites More sharing options...
Drunken Cheetah Posted May 23 Report Share Posted May 23 You need to add it in Config_vItems.hpp Once added there, you can then add it to the shops you want. For cops to only access them it requires more. Quote Link to comment Share on other sites More sharing options...
Wayne Posted May 23 Author Report Share Posted May 23 I mean adding to the Config_Loadouts Quote Link to comment Share on other sites More sharing options...
gustavseitztestarma3 Posted May 28 Report Share Posted May 28 (edited) I haven't tested it but I don't see why it shouldn't work. In Config_Loadouts.hpp add vItems like this: {"item",amount} class CIV { uniform[] = { {"U_C_Poloshirt_blue", "!life_is_arrested"}, {"U_C_Poloshirt_burgundy", "!life_is_arrested"}, {"U_C_Poloshirt_stripped", "!life_is_arrested"}, {"U_C_Poloshirt_tricolour", "!life_is_arrested"}, {"U_C_Poloshirt_salmon", "!life_is_arrested"}, {"U_C_Poloshirt_redwhite", "!life_is_arrested"}, {"U_C_Commoner1_1", "!life_is_arrested"} }; vest[] = {}; backpack[] = {}; weapon[] = {}; mags[] = {}; items[] = {}; linkedItems[] = { {"ItemMap", ""}, {"ItemCompass", ""}, {"ItemWatch", ""} }; vItems[] = { {"waterBottle",5} }; }; and in core\functions\fn_startLoadout.sqf add private _vItems = M_CONFIG(getArray,"Loadouts",str(playerSide),"vItems"); if !(_vItems isEqualTo []) then { { [true,(_x select 0),(_x select 1)] call life_fnc_handleInv; } forEach _vItems; }; It's not perfect as I just came up with it on the fly but hope it lays a foundation. Edited May 28 by gustavseitztestarma3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.