Elioriel icon

fn_impoundMenu.sqf

Elioriel | PRO | 01/11/19 08:00:34 PM UTC | 0 ⭐ | 180 👁️ | Never ⏰ | []
text |

1.06 KB

|

None

|

0 👍

/

0 👎

#include "..\..\script_macros.hpp"/*    File: fn_impoundMenu.sqf    Author: Bryan "Tonic" Boardwine     Description:    Not actually a impound menu, may act as confusion to some but that is what I wanted.    The purpose of this menu is it is now called a 'Garage' where vehicles are stored (persistent ones).*/private ["_vehicles","_control"];disableSerialization;_vehicles = param [0,[],[[]]]; ctrlShow[2803,false];ctrlShow[2830,false];waitUntil {!isNull (findDisplay 2800)}; if (count _vehicles isEqualTo 0) exitWith {    ctrlSetText[2811,localize "STR_Garage_NoVehicles"];}; _control = CONTROL(2800,2802);lbClear _control; {    _vehicleInfo = [(_x select 2)] call life_fnc_fetchVehInfo;    _control lbAdd (_vehicleInfo select 3);    _tmp = [(_x select 2),(_x select 8),(_x select 9)];    _tmp = str(_tmp);    _control lbSetData [(lbSize _control)-1,_tmp];    _control lbSetPicture [(lbSize _control)-1,(_vehicleInfo select 2)];    _control lbSetValue [(lbSize _control)-1,(_x select 0)];} forEach _vehicles; ctrlShow[2810,false];ctrlShow[2811,false];

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎