Jump to content

Crazmanian

Member
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Crazmanian

  1.  

    I doubt that it all fits on a trader menu, at least not in lower resolutions.

     

    Works fine on top right hint box. Looks something like this.

     

    2cwnkl.jpg

     

    In player_traderMenu.sqf or player_traderMenuConfig.sqf or what ever it's called

     

    Find:

    			_header,
    			_File
    

    Replace with:

    			_header,
    			_File,
    			_type,
    			_afile
    

    Find:

        while {count TraderItemList < 1} do { sleep 1; };
        _item = TraderItemList select _index;
    

    Add below:

    	_name = _item select 0;
    	_type = _item select 10;
    	_afile = _item select 11;
    
    	_theName = getText(configFile >> _type >> _name >> "displayName");
    	_image = getText(configFile >> _type >> _name >> "picture");
    	
    	if(_type == "CfgVehicles") then {
    		if (_afile == "trade_backpacks") then {
    			_mags = getNumber (configFile >> "CfgVehicles" >> _name >> "transportMaxMagazines");	
    			
    			hintSilent parseText format ["
    				<t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/>
    				<img size='6' image='%2'/><br/>
    				<t align='center' color='#FFFFFF' size='1.2'> Slots: %3 </t>
    				",
    				_theName,
    				_image,
    				_mags
    			];
    		} else {
    			_seats = getNumber (configFile >> _type >> _name >> "transportSoldier");
    			_weapons = getNumber (configFile >> _type >> _name >> "transportMaxWeapons");
    			_mags = getNumber (configFile >> _type >> _name >> "transportMaxMagazines");
    			_packs = getNumber (configFile >> _type >> _name >> "transportMaxBackpacks");
    			
    			hintSilent parseText format ["
    				<t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/>
    				<img size='6' image='%2'/><br/>
    				<t align='left' color='#FFFFFF' size='1.2'>      Seats: %3 </t><br/>
    				<t align='left' color='#FFFFFF' size='1.2'>      Gear: %4/%5/%6 </t>
    				",
    				_theName,
    				_image,
    				(_seats + 1),
    				_weapons,
    				_mags,
    				_packs			
    			];
    		};
    	} else {
    		_whatIsthis = getText(configFile >> _type >> _name >> "descriptionShort");
    		
    		hintSilent parseText format ["
    			<t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/>
    			<img size='6' image='%3'/><br/>
    			<t align='center' color='#FFFFFF' size='1.2'> %2 </t>
    			",
    			_theName,
    			_whatIsthis,
    			_image
    		];
    	};
    

    Cant get this to work theres no hint box is there something else i need to do to get the hint boxes?

  2. Hi on our server when ever someone picks the ammo or the weapon it pops up cannot play/edit this mission error anyone have any ideas or a fix as ive seen it on other servers and i don't think that error was on there servers. Sorry if there's a fix on here ive looked and couldn't see it.

×
×
  • Create New...