Need help with menu!
Im making a simple menu for island life and i need to know what to do with both of these scripts, they are weapon and vehicle script. I took these from infastar menu by the way. Need help ASAP, Thanks!
_cfgweapons = configFile >> "cfgWeapons";
for "_i" from 0 to (count _cfgweapons)-1 do
{
_weapon = _cfgweapons select _i;
if (isClass _weapon) then {
_wpn_type = configName(_weapon);
if ((getNumber (_weapon >> "scope") == 2) && (getText (_weapon >> "picture") != "")) then {
thfile = thfile + [_wpn_type,format[_execx,_wpn_type],"0","0","0","0",[]];
};
};
};
---------------------------------------------------------------------------------------------------------------------------------------
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do
{
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then
{
_veh_type = configName _vehicle;
if ((getNumber (_vehicle >> "scope") == 2) && (getText (_vehicle >> "picture") != "") && (((_veh_type isKindOf "Air"))) && !((_veh_type isKindOf "ParachuteBase") or (_veh_type isKindOf "BIS_Steerable_Parachute"))) then
{
thfile = thfile + [_veh_type,format[_execx,_veh_type],"0","0","0","0",[]];
};
};
};