If your still having issues feel free to check out this. Altis Life Framework 5.0 Opfor Faction (Updated)
Beiträge von GraveYard
-
-
-
Thanks, Deathman that fixed the issue I was having. I love the new clothing shop.
-
I seem to be having an issue, When I go into the shop it won't change my clothes to the selected clothing and I get this error.
Code19:54:47 Error in expression <hase set[life_clothing_filter,(_control lbValue _selection)]; _data = _control l> 19:54:47 Error position: <lbValue _selection)]; _data = _control l> 19:54:47 Error lbvalue: Type Array, expected Number 19:54:47 File mpmissions\__CUR_MP.Altis\core\shops\fn_changeClothes.sqf..., line 20
Here is the file
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_changeClothes.sqf Author: Bryan "Tonic" Boardwine Description: Used in the clothing store to show a 'preview' of the piece of clothing. */ disableSerialization; private ["_control","_selection","_data","_price","_total","_totalPrice"]; _control = (_this select 0) select 0; _selection = (_this select 0) select 1; _price = (findDisplay 3100) displayCtrl 3102; _total = (findDisplay 3100) displayCtrl 3106; if (_selection isEqualTo -1) exitWith {hint localize "STR_Shop_NoSelection";}; if (isNull _control) exitWith {hint localize "STR_Shop_NoDisplay"}; if (life_cMenu_lock) exitWith {}; life_cMenu_lock = true; life_clothing_purchase set[life_clothing_filter,(_control lbValue _selection)]; _data = _control lbData _selection; if (_data isEqualTo "NONE") then { _item = switch (life_clothing_filter) do { case 0: {uniform player}; case 1: {headGear player}; case 2: {goggles player}; case 3: {vest player}; case 4: {backpack player}; }; [_item,false] call life_fnc_handleItem; } else { [_data,true,nil,nil,nil,nil,nil,true] call life_fnc_handleItem; }; life_cMenu_lock = false; _price ctrlSetStructuredText parseText format [(localize "STR_GNOTF_Price")+ " <t color='#8cff9b'>$%1</t>",[(_control lbValue _selection)] call life_fnc_numberText]; _totalPrice = 0; { if (_x != -1) then { _totalPrice = _totalPrice + _x; }; } forEach life_clothing_purchase; _total ctrlSetStructuredText parseText format [(localize "STR_Shop_Total")+ " <t color='#8cff9b'>$%1</t>",[_totalPrice] call life_fnc_numberText]; [] call life_fnc_playerSkins;
-
Hey guys I was wondering if someone could help me make it so after you die and the timer is up instead of click respawn and the spawn screen shows it auto dose it after the time is up.
I think I would change that here
Code
Alles anzeigen(findDisplay 7300) displaySetEventHandler ["KeyDown","if ((_this select 1) isEqualTo 1) then {true}"]; //Block the ESC menu //Create a thread for something? _unit spawn { private["_maxTime","_RespawnBtn","_Timer"]; disableSerialization; _RespawnBtn = ((findDisplay 7300) displayCtrl 7302); _Timer = ((findDisplay 7300) displayCtrl 7301); if (LIFE_SETTINGS(getNumber,"respawn_timer") < 5) then { _maxTime = time + 5; } else { _maxTime = time + LIFE_SETTINGS(getNumber,"respawn_timer"); }; _RespawnBtn ctrlEnable false; waitUntil {_Timer ctrlSetText format[localize "STR_Medic_Respawn",[(_maxTime - time),"MM:SS"] call BIS_fnc_secondsToString]; round(_maxTime - time) <= 0 || isNull _this}; _RespawnBtn ctrlEnable true; _Timer ctrlSetText localize "STR_Medic_Respawn_2"; };
But I could be wrong. Any help with this would be sweet.
-
So I have a issue.
Code12:24:58 Error in expression < call life_fnc_numberText, _vehicleInfo select 8, _vehicleInfo select 11, _vehic> 12:24:58 Error position: <select 8, _vehicleInfo select 11, _vehic> 12:24:58 Error Zero divisor 12:24:58 File mpmissions\__CUR_MP.Altis\core\shops\fn_vehicleShopLBChange.sqf, line 27
Shows that error then the cam is underwater.
Here is the file.Spoiler anzeigen
#include <macro.h>
/*
File: fn_vehicleShopLBChange.sqf
Author: Bryan "Tonic" Boardwine
Description:
Called when a new selection is made in the list box and
displays various bits of information about the vehicle.
*/
disableSerialization;
private["_control","_index","_className","_basePrice","_vehicleInfo","_colorArray","_ctrl"];
_control = _this select 0;
_index = _this select 1;//Fetch some information.
_className = _control lbData _index;
_vIndex = _control lbValue _index;
_vehicleList = [life_veh_shop select 0] call life_fnc_vehicleListCfg; _basePrice = (_vehicleList select _vIndex) select 1;
_vehicleInfo = [_className] call life_fnc_fetchVehInfo;
_trunkSpace = [_className] call life_fnc_vehicleWeightCfg;
[_className] call life_fnc_vehicleShop3DPreview;
ctrlShow [2330,true];
(getControl(2300,2303)) ctrlSetStructuredText parseText format[
(localize "STR_Shop_Veh_UI_Rental")+ " <t color='#8cff9b'>$%1</t><br/>" +(localize "STR_Shop_Veh_UI_Ownership")+ " <t color='#8cff9b'>$%2</t><br/>" +(localize "STR_Shop_Veh_UI_MaxSpeed")+ " %3 km/h<br/>" +(localize "STR_Shop_Veh_UI_HPower")+ " %4<br/>" +(localize "STR_Shop_Veh_UI_PSeats")+ " %5<br/>" +(localize "STR_Shop_Veh_UI_Trunk")+ " %6<br/>" +(localize "STR_Shop_Veh_UI_Fuel")+ " %7<br/>" +(localize "STR_Shop_Veh_UI_Armor")+ " %8",
[_basePrice] call life_fnc_numberText,
[round(_basePrice * 1.5)] call life_fnc_numberText,
_vehicleInfo select 8,
_vehicleInfo select 11,
_vehicleInfo select 10,
if(_trunkSpace == -1) then {"None"} else {_trunkSpace},
_vehicleInfo select 12,
_vehicleInfo select 9
];_ctrl = getControl(2300,2304);
lbClear _ctrl;
_colorArray = [_className] call life_fnc_vehicleColorCfg;for "_i" from 0 to count(_colorArray)-1 do {
if((_colorArray select _i) select 1 == (life_veh_shop select 2)) then {
_temp = [_className,_i] call life_fnc_vehicleColorStr;
_ctrl lbAdd format["%1",_temp];
_ctrl lbSetValue [(lbSize _ctrl)-1,_i];
};
};if(_className in (__GETC__(life_vShop_rentalOnly))) then {
ctrlEnable [2309,false];
} else {
if(!(life_veh_shop select 3)) then {
ctrlEnable [2309,true];
};
};lbSetCurSel[2304,0];
if((lbSize _ctrl)-1 != -1) then {
ctrlShow[2304,true];
} else {
ctrlShow[2304,false];
};
true; -